This is a dialog to edit the blacklist and whitelist. It is used by the class ConfigFilter. More...
#include <senderlistdialog.h>
Public Types | |
enum | ListType { Black, White } |
Public Member Functions | |
SenderListDialog (QWidget *parent=0, ListType type=Black, QStringList list=QStringList(), int blackListAction=DEFAULT_FILTER_BLACKLIST_ACTION) | |
~SenderListDialog () | |
QStringList | getList () const |
int | getBlacklistAction () const |
Private Slots | |
void | slotSort () |
void | slotButtonClicked (int button) |
Private Member Functions | |
void | fillDialog () |
Private Attributes | |
ListType | type |
QStringList | list |
int | blacklistAction |
KSharedConfigPtr | config |
KEditListBox * | editFrame |
QButtonGroup * | grpAction |
QRadioButton * | btnDelete |
QRadioButton * | btnMark |
This is a dialog to edit the blacklist and whitelist. It is used by the class ConfigFilter.
Definition at line 48 of file senderlistdialog.h.
SenderListDialog::SenderListDialog | ( | QWidget * | parent = 0 , |
|
ListType | type = Black , |
|||
QStringList | list = QStringList() , |
|||
int | blackListAction = DEFAULT_FILTER_BLACKLIST_ACTION | |||
) | [explicit] |
Constructor
parent | parent widget
|
Definition at line 21 of file senderlistdialog.cpp.
SenderListDialog::~SenderListDialog | ( | ) |
Destructor
Definition at line 96 of file senderlistdialog.cpp.
void SenderListDialog::fillDialog | ( | ) | [private] |
Reads the entries for the dialog from the config file fill them in it.
Definition at line 135 of file senderlistdialog.cpp.
int SenderListDialog::getBlacklistAction | ( | ) | const |
Returns the blacklist action.
Is not defined if the list type is white list.
Definition at line 172 of file senderlistdialog.cpp.
QStringList SenderListDialog::getList | ( | ) | const |
void SenderListDialog::slotButtonClicked | ( | int | button | ) | [private, slot] |
Overwritten method of KDialogBase. Activated when the button button
is clicked. If OK was clicked, it will stores the entered values into list and blackListAction. After then it invokes slotButtonClicked
of KDialogBase.
button | clicked button; is the type KDialog::ButtonCode |
Definition at line 105 of file senderlistdialog.cpp.
void SenderListDialog::slotSort | ( | ) | [private, slot] |
Connected with add button of the edit frame. Sorts the content of the list box.
Definition at line 100 of file senderlistdialog.cpp.
int SenderListDialog::blacklistAction [private] |
The action for mails these senders are listed on the blacklist.
Possible actions are: CONFIG_VALUE_FILTER_BLACKLIST_ACTION_DELETE, CONFIG_VALUE_FILTER_BLACKLIST_ACTION_MARK
Definition at line 104 of file senderlistdialog.h.
QRadioButton* SenderListDialog::btnDelete [private] |
Radio button to delete filtered mails
Definition at line 124 of file senderlistdialog.h.
QRadioButton* SenderListDialog::btnMark [private] |
Radio button to mark filtered mails
Definition at line 129 of file senderlistdialog.h.
KSharedConfigPtr SenderListDialog::config [private] |
Application Config Object
Definition at line 109 of file senderlistdialog.h.
KEditListBox* SenderListDialog::editFrame [private] |
Edit Frame
Definition at line 114 of file senderlistdialog.h.
QButtonGroup* SenderListDialog::grpAction [private] |
Combines the action radio buttons for the blacklist.
Definition at line 119 of file senderlistdialog.h.
QStringList SenderListDialog::list [private] |
The list
Definition at line 98 of file senderlistdialog.h.
ListType SenderListDialog::type [private] |
list which shall be opened
Definition at line 93 of file senderlistdialog.h.