1 | /** |
2 | * Copyright (C) 2005 Brian S. Stephan ( bssteph at irtonline dot org ) |
3 | * |
4 | * This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU Lesser General Public License as published |
6 | * by the Free Software Foundation; either version 2.1 of the License, or |
7 | * (at your option) any later version. |
8 | * |
9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU Lesser General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU Lesser General Public License |
15 | * along with this program; if not, write to the Free Software |
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | */ |
18 | |
19 | #ifndef PRIVACYACTION_H |
20 | #define PRIVACYACTION_H |
21 | |
22 | #include <QTreeWidgetItem> |
23 | |
24 | class PrivacyAction : public QTreeWidgetItem |
25 | { |
26 | public: |
27 | PrivacyAction(QTreeWidgetItem * parent, const QString &name, const QString &desc = QString()); |
28 | ~PrivacyAction(); |
29 | |
30 | QString getErrMsg() const { return errMsg; } |
31 | |
32 | virtual bool action() = 0; |
33 | virtual QString configKey() const = 0; |
34 | |
35 | protected: |
36 | QString errMsg; |
37 | }; |
38 | |
39 | #endif |
40 | |
41 | // kate: tab-width 3; indent-mode cstyle; replace-tabs true; |
42 | |