~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/application.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:
66
66
 
67
67
    /* System level info */
68
68
    /** Get the Application ID of this Application */
69
 
    virtual AppID appId() = 0;
 
69
    virtual AppID appId() const = 0;
70
70
 
71
71
    /** \brief Information and metadata about the application for programs that
72
72
            are displaying the application to users
255
255
        virtual void stop() = 0;
256
256
        /** Signal the shell to focus the Application::Instance */
257
257
        virtual void focus() = 0;
 
258
 
 
259
        bool operator==(const Instance& b) const;
 
260
        bool operator!=(const Instance& b) const;
258
261
    };
259
262
 
260
263
    /** A quick check to see if this application has any running instances */
279
282
        \param pid The pid to find the instance of
280
283
    */
281
284
    virtual std::shared_ptr<Instance> findInstance(const pid_t& pid) = 0;
 
285
 
 
286
    bool operator==(const Application& b) const;
 
287
    bool operator!=(const Application& b) const;
282
288
};
283
289
 
284
290
}  // namespace app_launch