~ted/ubuntu-app-launch/snappy-backend-no-snap

« back to all changes in this revision

Viewing changes to libubuntu-app-launch/application.h

Updating to trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    */
63
63
    static std::shared_ptr<Application> create(const AppID& appid, const std::shared_ptr<Registry>& registry);
64
64
 
 
65
    virtual ~Application() = default;
 
66
 
65
67
    /* System level info */
66
68
    /** Get the Application ID of this Application */
67
69
    virtual AppID appId() = 0;
84
86
        struct DescriptionTag;
85
87
        /** \private */
86
88
        struct IconPathTag;
 
89
        /** \private */
 
90
        struct DefaultDepartmentTag;
 
91
        /** \private */
 
92
        struct KeywordsTag;
87
93
 
88
94
        /** \private */
89
95
        typedef TypeTagger<NameTag, std::string> Name;
91
97
        typedef TypeTagger<DescriptionTag, std::string> Description;
92
98
        /** \private */
93
99
        typedef TypeTagger<IconPathTag, std::string> IconPath;
 
100
        /** \private */
 
101
        typedef TypeTagger<DefaultDepartmentTag, std::string> DefaultDepartment;
 
102
        /** \private */
 
103
        typedef TypeTagger<KeywordsTag, std::vector<std::string>> Keywords;
 
104
 
 
105
        virtual ~Info() = default;
94
106
 
95
107
        /** Name of the application */
96
108
        virtual const Name& name() = 0;
98
110
        virtual const Description& description() = 0;
99
111
        /** Path to the icon that represents the application */
100
112
        virtual const IconPath& iconPath() = 0;
 
113
        /** Default department of the application */
 
114
        virtual const DefaultDepartment& defaultDepartment() = 0;
 
115
        /** Path to the screenshot of the application */
 
116
        virtual const IconPath& screenshotPath() = 0;
 
117
        /** List of keywords for the application */
 
118
        virtual const Keywords& keywords() = 0;
101
119
 
102
120
        /** Information to be shown on the app splash screen */
103
121
        struct Splash
189
207
    class Instance
190
208
    {
191
209
    public:
 
210
        virtual ~Instance() = default;
 
211
 
192
212
        /* Query lifecycle */
193
213
        /** Check to see if the instance is currently running. The object can
194
214
            exist even after the instance has stopped running. */