keywidget.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KEYWIDGET_H
00025 #define KEYWIDGET_H
00026
00027 #include <qwidget.h>
00028 #include <kabc/key.h>
00029
00030 class KComboBox;
00031
00032 class QPushButton;
00033
00034 class KeyWidget : public QWidget
00035 {
00036 Q_OBJECT
00037
00038 public:
00039 KeyWidget( QWidget *parent, const char *name = 0 );
00040 ~KeyWidget();
00041
00042 void setKeys( const KABC::Key::List &list );
00043 KABC::Key::List keys() const;
00044
00045 signals:
00046 void changed();
00047
00048 private slots:
00049 void addKey();
00050 void removeKey();
00051 void exportKey();
00052
00053 private:
00054 void updateKeyCombo();
00055
00056 KComboBox *mKeyCombo;
00057
00058 QPushButton *mAddButton;
00059 QPushButton *mRemoveButton;
00060 QPushButton *mExportButton;
00061
00062 KABC::Key::List mKeyList;
00063 };
00064
00065 #endif
This file is part of the documentation for kaddressbook Library Version 3.2.2.