~larryprice/ubuntu-app-launch/better-icon-themes

« back to all changes in this revision

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

  • Committer: Bileto Bot
  • Author(s): Ken VanDine
  • Date: 2017-02-15 15:09:13 UTC
  • mfrom: (249.6.32 ual_focus_app)
  • Revision ID: ci-train-bot@canonical.com-20170215150913-s2nw6er5n94nsj9u
Adds Application::Instance::focus and Application::findInstance(pid_t) API

Approved by: Ted Gould

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
        /** Stop, or send SIGTERM, to the PIDs in this Application::Instance, if
252
252
            the PIDs do not respond to the SIGTERM they will be SIGKILL'd */
253
253
        virtual void stop() = 0;
 
254
        /** Signal the shell to focus the Application::Instance */
 
255
        virtual void focus() = 0;
254
256
    };
255
257
 
256
258
    /** A quick check to see if this application has any running instances */
269
271
        \param urls A list of URLs to pass to the application command line
270
272
    */
271
273
    virtual std::shared_ptr<Instance> launchTest(const std::vector<URL>& urls = {}) = 0;
 
274
 
 
275
    /** Get a a pointer to the running instances of this application based on the pid
 
276
 
 
277
        \param pid The pid to find the instance of
 
278
    */
 
279
    virtual std::shared_ptr<Instance> findInstance(const pid_t& pid) = 0;
272
280
};
273
281
 
274
282
}  // namespace app_launch