SenderListDialog Class Reference

This is a dialog to edit the blacklist and whitelist. It is used by the class ConfigFilter. More...

#include <senderlistdialog.h>

List of all members.

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

Detailed Description

This is a dialog to edit the blacklist and whitelist. It is used by the class ConfigFilter.

Author:
Ulrich Weigelt <ulrich.weigelt@gmx.de>

Definition at line 48 of file senderlistdialog.h.


Member Enumeration Documentation

Type of list.

Enumerator:
Black 
White 

Definition at line 58 of file senderlistdialog.h.


Constructor & Destructor Documentation

SenderListDialog::SenderListDialog ( QWidget *  parent = 0,
ListType  type = Black,
QStringList  list = QStringList(),
int  blackListAction = DEFAULT_FILTER_BLACKLIST_ACTION 
) [explicit]

Constructor

Parameters:
parent parent widget
Parameters:
type type of dialog which shall be opened
Parameters:
list the list
Parameters:
blackListAction 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 21 of file senderlistdialog.cpp.

SenderListDialog::~SenderListDialog (  ) 

Destructor

Definition at line 96 of file senderlistdialog.cpp.


Member Function Documentation

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.

Returns:
blacklist action

Definition at line 172 of file senderlistdialog.cpp.

QStringList SenderListDialog::getList (  )  const

Returns the list.

Returns:
the list

Definition at line 177 of file senderlistdialog.cpp.

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 slotButtonClickedof KDialogBase.

Parameters:
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.


Member Data Documentation

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.

list which shall be opened

Definition at line 93 of file senderlistdialog.h.


The documentation for this class was generated from the following files:
Generated on Sun Mar 13 15:27:10 2011 for KShowmail by  doxygen 1.6.3