1
// This file is part of QtUbuntu, a set of Qt components for Ubuntu.
2
// Copyright © 2013 Canonical Ltd.
4
// This program is free software: you can redistribute it and/or modify it under
5
// the terms of the GNU Lesser General Public License version 3, as published by
6
// the Free Software Foundation.
8
// This program is distributed in the hope that it will be useful, but WITHOUT
9
// ANY WARRANTY; without even the implied warranties of MERCHANTABILITY,
10
// SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11
// Lesser General Public License for more details.
13
// You should have received a copy of the GNU Lesser General Public License
14
// along with this program. If not, see <http://www.gnu.org/licenses/>.
25
DesktopData(QString appId);
28
QString appId() const { return appId_; }
30
QString name() const { return entries_[kNameIndex]; }
31
QString comment() const { return entries_[kCommentIndex]; }
32
QUrl icon() const { return QUrl(entries_[kIconIndex]); }
33
QString exec() const { return entries_[kExecIndex]; }
34
QString path() const { return entries_[kPathIndex]; }
35
QString stageHint() const { return entries_[kStageHintIndex]; }
36
bool loaded() const { return loaded_; }
39
static const int kNameIndex = 0,
50
QVector<QString> entries_;
54
#endif // DESKTOPDATA_H