~ubuntu-branches/ubuntu/trusty/qtubuntu/trusty

« back to all changes in this revision

Viewing changes to src/modules/application/desktopdata.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Michael Zanetti, Gerry Boland, Ubuntu daily release
  • Date: 2013-09-12 22:45:06 UTC
  • mfrom: (1.1.18)
  • Revision ID: package-import@ubuntu.com-20130912224506-69xe5b08491jqr7a
Tags: 0.52+13.10.20130912.1-0ubuntu1
[ Michael Zanetti ]
* register application interface types with QML.

[ Gerry Boland ]
* Fix click package execution, and correct icon path.

[ Ubuntu daily release ]
* Automatic snapshot from revision 175

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    ~DesktopData();
27
27
 
28
28
    QString appId() const { return appId_; }
29
 
    QString file() const;
 
29
    QString file() const { return file_; };
30
30
    QString name() const { return entries_[kNameIndex]; }
31
31
    QString comment() const { return entries_[kCommentIndex]; }
32
32
    QUrl icon() const { return QUrl(entries_[kIconIndex]); }
34
34
    QString path() const { return entries_[kPathIndex]; }
35
35
    QString stageHint() const { return entries_[kStageHintIndex]; }
36
36
    bool loaded() const { return loaded_; }
 
37
    QString findDesktopFile(const QString &appId) const;
37
38
 
38
39
private:
39
40
    static const int kNameIndex = 0,
47
48
    bool load();
48
49
 
49
50
    QString appId_;
 
51
    QString file_;
50
52
    QVector<QString> entries_;
51
53
    bool loaded_;
52
54
};