root / modules / encryption / keys_manager.h @ 18636b4a
History | View | Annotate | Download (998 Bytes)
| 1 | #ifndef KEYSMANAGER_H
|
|---|---|
| 2 | #define KEYSMANAGER_H
|
| 3 | |
| 4 | #include <QtGui/QWidget> |
| 5 | |
| 6 | #include "usergroup.h" |
| 7 | #include "userlistelement.h" |
| 8 | |
| 9 | class QDialog; |
| 10 | class QPushButton; |
| 11 | class QTextEdit; |
| 12 | class QTreeWidget; |
| 13 | class QTreeWidgetItem; |
| 14 | |
| 15 | /**
|
| 16 | Dialog umo�liwiaj�cy zarz�dzanie list� kluczy |
| 17 | **/ |
| 18 | class KeysManager : public QWidget |
| 19 | {
|
| 20 | Q_OBJECT |
| 21 | |
| 22 | QTreeWidget *lv_keys; |
| 23 | QTextEdit *e_key; |
| 24 | QPushButton *pb_del; |
| 25 | QPushButton *pb_on; |
| 26 | void getKeysList(QStringList &uins);
|
| 27 | void getKeyInfo();
|
| 28 | void turnEncryptionBtn(bool on); |
| 29 | QString bool2text(bool on);
|
| 30 | QTreeWidgetItem *getSelected(); |
| 31 | |
| 32 | private slots: |
| 33 | void removeKey();
|
| 34 | void selectionChanged();
|
| 35 | void keyPressEvent(QKeyEvent *);
|
| 36 | void turnEncryption();
|
| 37 | void turnEncryption(QTreeWidgetItem *);
|
| 38 | public:
|
| 39 | KeysManager(QDialog *parent = 0);
|
| 40 | ~KeysManager(); |
| 41 | void turnContactEncryptionText(QString id, bool on); |
| 42 | void refreshKeysList();
|
| 43 | |
| 44 | signals:
|
| 45 | void keyRemoved(UserListElement ule);
|
| 46 | void turnEncryption(UserGroup* group, bool on); |
| 47 | }; |
| 48 | #endif
|