00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef SENDERLISTDIALOG_H
00019 #define SENDERLISTDIALOG_H
00020
00021
00022 #include <qlayout.h>
00023 #include <qtooltip.h>
00024 #include <qradiobutton.h>
00025 #include <qbuttongroup.h>
00026 #include <qpushbutton.h>
00027
00028
00029 #include <KDialog>
00030 #include <kapplication.h>
00031 #include <keditlistbox.h>
00032 #include <klocale.h>
00033 #include <klineedit.h>
00034 #include <kconfig.h>
00035
00036
00037 #include "constants.h"
00038
00039
00040 #define ID_BUTTON_FILTER_SENDERLIST_DELETE 1
00041 #define ID_BUTTON_FILTER_SENDERLIST_MARK 2
00042
00047 class SenderListDialog : public KDialog
00048 {
00049
00050 Q_OBJECT
00051
00052 public:
00053
00057 enum ListType { Black, White };
00058
00064 explicit SenderListDialog( QWidget *parent = 0, ListType list = Black );
00065
00069 ~SenderListDialog();
00070
00071 private:
00072
00076 ListType list;
00077
00081 KSharedConfigPtr config;
00082
00086 KEditListBox* editFrame;
00087
00091 QButtonGroup* grpAction;
00092
00096 QRadioButton* btnDelete;
00097
00101 QRadioButton* btnMark;
00102
00106 void fillDialog();
00107
00108 private slots:
00109
00114 void slotSort();
00115
00123 void slotButtonClicked( int button );
00124
00125
00126 };
00127
00128 #endif