Lomiri
Loading...
Searching...
No Matches
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
24class QuickListEntry
25{
26public:
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 void setHasSeparator(bool hasSeparator);
41 bool hasSeparator() const;
42
43 bool operator==(const QuickListEntry & other);
44
45 bool isPrivate() const;
46 void setIsPrivate(bool isPrivate);
47
48private:
49 QString m_actionId;
50 QString m_text;
51 QString m_icon;
52 bool m_hasSeparator;
53 bool m_isPrivate;
54};
55
56#endif // QUICKLISTENTRY