File indexing completed on 2021-12-21 14:40:04

0001 /*
0002     SPDX-FileCopyrightText: 2005 Brian S. Stephan <bssteph@irtonline.org>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-or-later
0005 */
0006 
0007 #ifndef PRIVACYACTION_H
0008 #define PRIVACYACTION_H
0009 
0010 #include <QTreeWidgetItem>
0011 
0012 class PrivacyAction : public QTreeWidgetItem
0013 {
0014    public:
0015       PrivacyAction(QTreeWidgetItem * parent, const QString &name, const QString &desc = QString());
0016       ~PrivacyAction() override = default;
0017       
0018       QString getErrMsg() const { return errMsg; }
0019       
0020       virtual bool action() = 0;
0021       virtual QString configKey() const = 0;
0022       
0023    protected:
0024       QString errMsg;
0025 };
0026 
0027 #endif
0028 
0029 // kate: tab-width 3; indent-mode cstyle; replace-tabs true;