Switch to side-by-side view
--- a/src/utils/appformime.h +++ b/src/utils/appformime.h @@ -33,6 +33,8 @@ AppDef(const std::string& nm, const std::string& cmd) : name(nm), command(cmd) {} + AppDef() {} + std::string name; std::string command; }; @@ -64,6 +66,11 @@ */ bool allApps(vector<AppDef> *apps); + /** + * Get app with given name + */ + bool appByName(const string& nm, AppDef& app); + typedef map<string, vector<DesktopDb::AppDef> > AppMap; private: