MagicSmoke  $VERSION$
acltabs.h
Go to the documentation of this file.
1 //
2 // C++ Interface: overview
3 //
4 // Description:
5 //
6 //
7 // Author: Konrad Rosenbaum <konrad@silmor.de>, (C) 2007-2011
8 //
9 // Copyright: See README/COPYING.GPL files that come with this distribution
10 //
11 //
12 
13 #ifndef MAGICSMOKE_ACLTABS_H
14 #define MAGICSMOKE_ACLTABS_H
15 
16 #include <QDialog>
17 #include <QItemDelegate>
18 #include <QWidget>
19 
20 class QAction;
21 class QCheckBox;
22 class QComboBox;
23 class QLabel;
24 class QLineEdit;
25 class QPushButton;
26 class QSpinBox;
27 class QStandardItemModel;
28 class QTabWidget;
29 class QTableView;
30 
31 class MSInterface;
32 
34 class MUserTab:public QWidget
35 {
36  Q_OBJECT
37  public:
39  MUserTab(QString);
40  public slots:
42  void updateUsers();
43  private slots:
45  void newUser();
47  void deleteUser();
49  void editUserDescription();
51  void editUserRoles();
53  void editUserHosts();
55  void setUserPassword();
57  void editFlags();
58 
59  private:
60  //the profile associated with this session
61  QString profilekey;
62  //widgets
63  QTableView*usertable;
64  QStandardItemModel*usermodel;
65 };
66 
68 class MHostTab:public QWidget
69 {
70  Q_OBJECT
71  public:
73  MHostTab(QString);
74  public slots:
76  void updateHosts();
77  private slots:
79  void newHost();
81  void deleteHost();
83  void changeHostKey();
85  void importHost();
87  void exportHost();
89  void exportKey(QString name,QString key);
90 
91  private:
92  //the profile associated with this session
93  QString profilekey;
94  //widgets
95  QTableView*hosttable;
96  QStandardItemModel*hostmodel;
97 
98  QString key2hash(QString);
99 };
100 
102 class MRoleTab:public QWidget
103 {
104  Q_OBJECT
105  public:
106  MRoleTab(QString);
107  public slots:
108  void updateRoles();
109  void newRole();
110  void deleteRole();
111  void editDescription();
112  void editFlags();
113  void editRights();
114  private:
115  //the profile associated with this session
116  QString profilekey;
117  //widgets
118  QTableView*roletable;
119  QStandardItemModel*rolemodel;
120 };
121 
123 class MFlagTab:public QWidget
124 {
125  Q_OBJECT
126  public:
127  MFlagTab(QString);
128  public slots:
129  void updateFlags();
130  void addFlag();
131  void removeFlag();
132  void changeFlag();
133  private:
134  //the profile associated with this session
135  QString profilekey;
136  //widgets
137  QTableView*table;
138  QStandardItemModel*model;
139 };
140 
141 #endif
role admin tab
Definition: acltabs.h:102
void updateUsers()
update list of users
Definition: acltabs.cpp:113
void deleteRole()
Definition: acltabs.cpp:680
void newRole()
Definition: acltabs.cpp:661
void editRights()
Definition: acltabs.cpp:750
void addFlag()
Definition: acltabs.cpp:845
void editFlags()
Definition: acltabs.cpp:713
MFlagTab(QString)
Definition: acltabs.cpp:796
void updateHosts()
update list of hosts
Definition: acltabs.cpp:370
void updateRoles()
Definition: acltabs.cpp:645
host admin tab
Definition: acltabs.h:68
void updateFlags()
Definition: acltabs.cpp:829
MUserTab(QString)
construct the window QSettings-key for current profile
Definition: acltabs.cpp:64
user admin tab
Definition: acltabs.h:34
void changeFlag()
Definition: acltabs.cpp:882
MHostTab(QString)
construct the window QSettings-key for current profile
Definition: acltabs.cpp:330
MRoleTab(QString)
Definition: acltabs.cpp:604
flag admin tab
Definition: acltabs.h:123
void removeFlag()
Definition: acltabs.cpp:863
the MagicSmoke specific interface class - enhances the basic interface by some functionality needed i...
Definition: msinterface.h:29
void editDescription()
Definition: acltabs.cpp:697