~mterry/unity-mir/appurl

« back to all changes in this revision

Viewing changes to src/modules/Unity/Application/applicationcontroller.h

  • Committer: CI bot
  • Author(s): Gerry Boland
  • Date: 2014-05-16 12:20:55 UTC
  • mfrom: (219.1.16 shortAppIds)
  • Revision ID: ps-jenkins@lists.canonical.com-20140516122055-e5jw3w0k5obulsdr
Add support for short appIds

Shells should use only short AppIds (i.e. appId without the version string). In order to support this, needed to
- slightly decouple appId from the desktop file path, now need to ask the ApplicationController implementation for the path to the desktop file
- DesktopFileReader now just a dumb file reader
- in the upstart ApplicationController interface & implementation, convert any long appIds to short appIds
- in ApplicationManager, to ease transition, have startApplication support both long & short appIds. But otherwise it uses short appIds only. Fixes: 1239750

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <QObject>
22
22
#include <QString>
23
23
#include <QStringList>
 
24
#include <QFileInfo>
24
25
 
25
26
namespace unitymir
26
27
{
47
48
    virtual bool stopApplicationWithAppId(const QString& appId) = 0;
48
49
    virtual bool startApplicationWithAppIdAndArgs(const QString& appId, const QStringList& arguments) = 0;
49
50
 
 
51
    virtual QFileInfo findDesktopFileForAppId(const QString &appId) const = 0;
 
52
 
50
53
Q_SIGNALS:
51
54
    void applicationAboutToBeStarted(QString id);
52
55
    void applicationStarted(QString id);