~ci-train-bot/ubuntu-app-launch/ubuntu-app-launch-ubuntu-zesty-2264

« back to all changes in this revision

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

  • Committer: Bileto Bot
  • Author(s): Ted Gould
  • Date: 2017-04-04 21:48:00 UTC
  • mfrom: (307.4.10 instance-compare)
  • Revision ID: ci-train-bot@canonical.com-20170404214800-1pdzt8y1btammbx8
Provide equality operators for Application and Application::Instance objects. (LP: #1677345)

Approved by: Pete Woods

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
    static std::shared_ptr<Helper> create(Type type, AppID appid, std::shared_ptr<Registry> registry);
87
87
 
88
88
    /** Get the AppID for this helper */
89
 
    virtual AppID appId() = 0;
 
89
    virtual AppID appId() const = 0;
90
90
 
91
91
    /** Running instance of a a Helper */
92
92
    class Instance
101
101
 
102
102
        /** Stop a running helper */
103
103
        virtual void stop() = 0;
 
104
 
 
105
        bool operator==(const Instance& b) const;
 
106
        bool operator!=(const Instance& b) const;
104
107
    };
105
108
 
106
109
    /** Check to see if there are any instances of this untrusted helper */
128
131
        \param exec The exec line to use for the helper with the AppID given
129
132
    */
130
133
    static void setExec(std::vector<std::string> exec);
 
134
 
 
135
    bool operator==(const Helper& b) const;
 
136
    bool operator!=(const Helper& b) const;
131
137
};
132
138
 
133
139
}  // namespace app_launch