Switch to unified view

a/src/utils/appformime.h b/src/utils/appformime.h
...
...
31
    class AppDef {
31
    class AppDef {
32
    public:
32
    public:
33
        AppDef(const std::string& nm, const std::string& cmd)
33
        AppDef(const std::string& nm, const std::string& cmd)
34
            : name(nm), command(cmd)
34
            : name(nm), command(cmd)
35
            {}
35
            {}
36
        AppDef() {}
37
36
        std::string name;
38
        std::string name;
37
        std::string command;
39
        std::string command;
38
    };
40
    };
39
41
40
    /** Build/Get the db for the standard fdo directory */
42
    /** Build/Get the db for the standard fdo directory */
...
...
62
     * @param[output] apps applications 
64
     * @param[output] apps applications 
63
     * @return true 
65
     * @return true 
64
     */
66
     */
65
    bool allApps(vector<AppDef> *apps);
67
    bool allApps(vector<AppDef> *apps);
66
68
69
    /** 
70
     * Get app with given name 
71
     */
72
    bool appByName(const string& nm, AppDef& app);
73
67
    typedef map<string, vector<DesktopDb::AppDef> > AppMap;
74
    typedef map<string, vector<DesktopDb::AppDef> > AppMap;
68
75
69
private:
76
private:
70
    /** This is used by getDb() and builds a db for the standard location */
77
    /** This is used by getDb() and builds a db for the standard location */
71
    DesktopDb();
78
    DesktopDb();