Unity 8
quicklistentry.h
1 /* Copyright (C) 2013, 2015 Canonical, Ltd.
2  *
3  * Authors:
4  * Michael Zanetti <michael.zanetti@canonical.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 3.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef QUICKLISTENTRY_H
20 #define QUICKLISTENTRY_H
21 
22 #include <QString>
23 
24 class QuickListEntry
25 {
26 public:
27  QuickListEntry();
28 
29  QString actionId() const;
30  void setActionId(const QString &actionId);
31 
32  QString text() const;
33  void setText(const QString &text);
34 
35  QString icon() const;
36  void setIcon(const QString &icon);
37 
38  bool clickable() const;
39 
40  bool operator==(const QuickListEntry & other);
41 
42 private:
43  QString m_actionId;
44  QString m_text;
45  QString m_icon;
46 };
47 
48 #endif // QUICKLISTENTRY