Part of the setup dialog (KShowMailApp::SetupDialog) to configure the spam check. More...
#include <configspamcheck.h>
Public Member Functions | |
ConfigSpamcheck (QWidget *parent=0, const QVariantList &args=QVariantList()) | |
~ConfigSpamcheck () | |
virtual void | load () |
virtual void | defaults () |
virtual void | save () |
Protected Member Functions | |
bool | isSpamAssassinRunning () const |
Private Slots | |
void | slotChanged () |
void | slotActionChanged (int index) |
void | slotOpenMailBoxWizard () |
void | slotTestSpamAssassin () |
Private Attributes | |
KSharedConfigPtr | config |
KPushButton * | btnTest |
KComboBox * | cmbAction |
KLineEdit * | txtMailbox |
KPushButton * | btnMailboxWizard |
QGroupBox * | gboxAction |
Part of the setup dialog (KShowMailApp::SetupDialog) to configure the spam check.
Definition at line 60 of file configspamcheck.h.
ConfigSpamcheck::ConfigSpamcheck | ( | QWidget * | parent = 0 , |
|
const QVariantList & | args = QVariantList() | |||
) | [explicit] |
Generic constructor
parent | parent widget
|
Definition at line 24 of file configspamcheck.cpp.
ConfigSpamcheck::~ConfigSpamcheck | ( | ) |
Destructor
Definition at line 98 of file configspamcheck.cpp.
void ConfigSpamcheck::defaults | ( | ) | [virtual] |
Overloaded method of KCModule. Sets the user interface elements to default values. This method is called when the user clicks the "Default" button.
Definition at line 124 of file configspamcheck.cpp.
bool ConfigSpamcheck::isSpamAssassinRunning | ( | ) | const [protected] |
Looks for a running spamd daemon of SpamAssassin.
Definition at line 202 of file configspamcheck.cpp.
void ConfigSpamcheck::load | ( | ) | [virtual] |
Overloaded method of KCModule. Sets the user interface elements to reflect the current settings stored in the config file.
Definition at line 102 of file configspamcheck.cpp.
void ConfigSpamcheck::save | ( | ) | [virtual] |
Overloaded method of KCModule. Stores the config information as shown in the user interface in the config file. Is called when the user clicks "Apply" or "Ok".
Definition at line 144 of file configspamcheck.cpp.
void ConfigSpamcheck::slotActionChanged | ( | int | index | ) | [private, slot] |
Connected with combobox cmbAction. Enables or disables additional widgets for action configuration.
index | position (index) of the selected action |
Definition at line 175 of file configspamcheck.cpp.
void ConfigSpamcheck::slotChanged | ( | ) | [private, slot] |
Connected with the configuration items. Calls the slot changed() of KCModule to notify the dialog about the change.
Definition at line 170 of file configspamcheck.cpp.
void ConfigSpamcheck::slotOpenMailBoxWizard | ( | ) | [private, slot] |
Connected with button btnMailboxWizard. Opens a wizard to configure the mailbox
Definition at line 190 of file configspamcheck.cpp.
void ConfigSpamcheck::slotTestSpamAssassin | ( | ) | [private, slot] |
Connected with btnTest. Tests whether SpamAssassin is running and shows a message box containing the result. Enables or disables the action widgets.
Definition at line 228 of file configspamcheck.cpp.
KPushButton* ConfigSpamcheck::btnMailboxWizard [private] |
This button opens a wizard which will help to get the right mailbox
Definition at line 126 of file configspamcheck.h.
KPushButton* ConfigSpamcheck::btnTest [private] |
Button to test for a running SpamAssassin
Definition at line 111 of file configspamcheck.h.
KComboBox* ConfigSpamcheck::cmbAction [private] |
Combobox to select the action for spam.
Definition at line 116 of file configspamcheck.h.
KSharedConfigPtr ConfigSpamcheck::config [private] |
Connector to the configuration file
Definition at line 106 of file configspamcheck.h.
QGroupBox* ConfigSpamcheck::gboxAction [private] |
Contains the widgets of action configuration.
Definition at line 131 of file configspamcheck.h.
KLineEdit* ConfigSpamcheck::txtMailbox [private] |
If selected, the spam mails will be moved to the mailbox which is written in this edit line.
Definition at line 121 of file configspamcheck.h.