ConfigActions Class Reference

Part of the setup dialog to configure the actions. More...

#include <configactions.h>

List of all members.

Public Member Functions

 ConfigActions (QWidget *parent=0, const QVariantList &args=QVariantList())
 ~ConfigActions ()
virtual void load ()
virtual void defaults ()
virtual void save ()

Private Slots

void slotChooseSound ()
void slotChooseCommand ()
void slotPlaySound ()
void slotExecuteCommand ()
void slotSoundToggled (bool on)
void slotCommandToggled (bool on)
void slotChanged ()

Private Attributes

KSharedConfigPtr config
QCheckBox * chkNewMailsAlertWindow
QCheckBox * chkNewMailsMainWindow
QCheckBox * chkNewMailsBeep
QCheckBox * chkNewMailsSound
QCheckBox * chkNewMailsCommand
KPushButton * btnNewMailsPlaySound
KPushButton * btnNewMailsExecCommand
KLineEdit * txtNewMailsSound
KLineEdit * txtNewMailsCommand
KPushButton * btnNewMailsChooseSound
KPushButton * btnNewMailsChooseCommand
QCheckBox * chkNoNewMailsMinimize
QCheckBox * chkNoNewMailsTerminate

Detailed Description

Part of the setup dialog to configure the actions.

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

Definition at line 51 of file configactions.h.


Constructor & Destructor Documentation

ConfigActions::ConfigActions ( QWidget *  parent = 0,
const QVariantList &  args = QVariantList() 
) [explicit]

Generic Constructor

Parameters:
parent parent widget
Parameters:
args arguments

Definition at line 23 of file configactions.cpp.

ConfigActions::~ConfigActions (  ) 

Destructor

Definition at line 134 of file configactions.cpp.


Member Function Documentation

void ConfigActions::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 159 of file configactions.cpp.

void ConfigActions::load (  )  [virtual]

Overloaded method of KCModule. Sets the user interface elements to reflect the current settings stored in the config file.

Definition at line 138 of file configactions.cpp.

void ConfigActions::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 174 of file configactions.cpp.

void ConfigActions::slotChanged (  )  [private, slot]

Connected with the configuration items. Calls the slot changed() of KCModule to notify the dialog about the change.

Definition at line 275 of file configactions.cpp.

void ConfigActions::slotChooseCommand (  )  [private, slot]

Connected with button btnNewMailsChooseCommand. Opens a file dialog to choose the command which shall be executed. Writes the chosen path into the edit line txtNewMailsCommand.

Definition at line 222 of file configactions.cpp.

void ConfigActions::slotChooseSound (  )  [private, slot]

Connected with button btnNewMailsChooseSound. Opens a file dialog to choose the sound file which will be played. Writes the chosen path into the edit line txtNewMailsSound.

Definition at line 192 of file configactions.cpp.

void ConfigActions::slotCommandToggled ( bool  on  )  [private, slot]

Connected with check box chkNewMailsCommand. Enable or disable the command configuration items.

Parameters:
on TRUE - box is checked; FALSE - box is not checked

Definition at line 268 of file configactions.cpp.

void ConfigActions::slotExecuteCommand (  )  [private, slot]

Connected with button btnNewMailsExecCommand. Executes the coommand.

Definition at line 247 of file configactions.cpp.

void ConfigActions::slotPlaySound (  )  [private, slot]

Connected with button btnNewMailsPlaySound. Plays the sound.

Definition at line 232 of file configactions.cpp.

void ConfigActions::slotSoundToggled ( bool  on  )  [private, slot]

Connected with check box chkNewMailsSound. Enable or disable the sound configuration items.

Parameters:
on TRUE - box is checked; FALSE - box is not checked

Definition at line 261 of file configactions.cpp.


Member Data Documentation

Button to open a file dialog to choose the command which will be executed if a new mail is arrived.

Definition at line 150 of file configactions.h.

KPushButton* ConfigActions::btnNewMailsChooseSound [private]

Button to open a file dialog to choose the sound file which will be played if a new is arrived.

Definition at line 145 of file configactions.h.

KPushButton* ConfigActions::btnNewMailsExecCommand [private]

Button to test the command which will be executed if a new mail is arrived.

Definition at line 130 of file configactions.h.

KPushButton* ConfigActions::btnNewMailsPlaySound [private]

Button to test the sound which will be played if a new mail is arrived.

Definition at line 125 of file configactions.h.

Check box to select whether an alert message will be shown if a new mail is arrived.

Definition at line 100 of file configactions.h.

QCheckBox* ConfigActions::chkNewMailsBeep [private]

Check box to select whether the system beep will be played if a new mail is arrived.

Definition at line 110 of file configactions.h.

QCheckBox* ConfigActions::chkNewMailsCommand [private]

Check box to select whether a command will be executed if a new mail is arrived.

Definition at line 120 of file configactions.h.

Check box to select whether the main window will be shown if a new mail is arrived.

Definition at line 105 of file configactions.h.

QCheckBox* ConfigActions::chkNewMailsSound [private]

Check box to select whether a sound will be played if a new mail is arrived.

Definition at line 115 of file configactions.h.

Check box to select whether the main window will be minimized if no new mail is arrived.

Definition at line 155 of file configactions.h.

Check box to select whether the application will be terminated if no new mail is arrived.

Definition at line 160 of file configactions.h.

KSharedConfigPtr ConfigActions::config [private]

Connector to the configuration file

Definition at line 95 of file configactions.h.

KLineEdit* ConfigActions::txtNewMailsCommand [private]

Edit line which contains the path to the command which will be executed if a new mail is arrived.

Definition at line 140 of file configactions.h.

KLineEdit* ConfigActions::txtNewMailsSound [private]

Edit line which contains the path to the sound file which will be played if a new mail is arrived.

Definition at line 135 of file configactions.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