diff options
author | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2008-09-29 17:12:22 +0000 |
---|---|---|
committer | ubbo <ubbo@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2008-09-29 17:12:22 +0000 |
commit | 2c251e90452a5eca7e14eafb9c51192f3493fc9f (patch) | |
tree | 384907b829e2a56d6e31014046b75ac329ad5091 /keymgmt.h | |
parent | moved keydelete-action from keylist to gpgwin (diff) | |
download | gpg4usb-2c251e90452a5eca7e14eafb9c51192f3493fc9f.tar.gz gpg4usb-2c251e90452a5eca7e14eafb9c51192f3493fc9f.zip |
added key management window
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@177 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keymgmt.h')
-rwxr-xr-x | keymgmt.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/keymgmt.h b/keymgmt.h new file mode 100755 index 0000000..349b62b --- /dev/null +++ b/keymgmt.h @@ -0,0 +1,82 @@ +/* + * keymgmt.h + * + * Copyright 2008 gpg4usb-team <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + */ + +#ifndef __KEYMGMT_H__ +#define __KEYMGMT_H__ + + +class QMainWindow; +class QPlainTextEdit; +class QWidget; +class QVBoxLayout; +class QGridLayout; +class iostream; +class QtGui; +class QString; +class QFileDialog; +class QStringList; +class QIcon; +class QMessageBox; +class QVBoxLayout; +class QAction; +class QMenu; +class QPlainTextEdit; +class QComboBox; +class QPushButton; +class QRadioButton; +class QButtonGroup; +class QApplication; + +#include "context.h" +#include "keylist.h" + +class KeyMgmt : public QMainWindow +{ + Q_OBJECT + +public: + KeyMgmt(GpgME::Context* ctx, QString iconpath); + +public slots: + void importKeyFromFile(); + void importKeyFromClipboard(); + void deleteCheckedKeys(); + void deleteSelectedKeys(); + +private: + void createMenus(); + void createActions(); + void createToolBars(); + + KeyList *m_keyList; + QString mIconPath; + GpgME::Context *mCtx; + QMenu *fileMenu; + QMenu *keyMenu; + QAction *importKeyFromFileAct; + QAction *importKeyFromEditAct; + QAction *importKeyFromClipboardAct; + QAction *deleteCheckedKeysAct; + QAction *deleteSelectedKeysAct; + QAction *closeAct; +}; + +#endif // __KEYMGMT_H__ |