MailBoxWizard Class Reference

Wizard to configure the mailbox to which a filteres mail shall be moved. More...

#include <mailboxwizard.h>

List of all members.

Public Member Functions

 MailBoxWizard (QWidget *parent=0)
 Constructor.
 ~MailBoxWizard ()
QString getPath ()

Private Slots

void slotOpenDirDialog ()
void slotPageChanged (int pageID)

Private Member Functions

bool isMailDir (const QDir &path)
void addMailBoxListItem (QString boxname, QDir path)

Private Attributes

KLineEdit * txtMailDir
KPushButton * btnMailDir
QTreeWidget * lstMailboxes

Detailed Description

Wizard to configure the mailbox to which a filteres mail shall be moved.

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

Definition at line 51 of file mailboxwizard.h.


Constructor & Destructor Documentation

MailBoxWizard::MailBoxWizard ( QWidget *  parent = 0  ) 

Constructor.

Parameters:
parent parent widget

Definition at line 20 of file mailboxwizard.cpp.

MailBoxWizard::~MailBoxWizard (  ) 

Destructor

Definition at line 64 of file mailboxwizard.cpp.


Member Function Documentation

void MailBoxWizard::addMailBoxListItem ( QString  boxname,
QDir  path 
) [private]

Adds a new mailbox list view item to the mailbox list or to a given parent item.

Parameters:
boxname name of the mailbox
Parameters:
path path to the directory of this mailbox

Definition at line 138 of file mailboxwizard.cpp.

QString MailBoxWizard::getPath (  ) 

Returns the absolute path of the selected mailbox.

Returns:
the path; empty string if no item is selected

Definition at line 162 of file mailboxwizard.cpp.

bool MailBoxWizard::isMailDir ( const QDir &  path  )  [private]

Returns whether the given directory is a maildir directory

Parameters:
path the directory for test
Returns:
TRUE - directory is a maildir directory

Definition at line 111 of file mailboxwizard.cpp.

void MailBoxWizard::slotOpenDirDialog (  )  [private, slot]

Connected with btnMailDir. Opens a file dialog to choose the mail directory.

Definition at line 68 of file mailboxwizard.cpp.

void MailBoxWizard::slotPageChanged ( int  pageID  )  [private, slot]

Connected with the signal selected of this wizard. Searchs for mailboxes inside the path typed in page1.

Parameters:
pageID ID of the showed page

Definition at line 83 of file mailboxwizard.cpp.


Member Data Documentation

KPushButton* MailBoxWizard::btnMailDir [private]

This button opens a file dialog to slecht the mail directory

Definition at line 85 of file mailboxwizard.h.

QTreeWidget* MailBoxWizard::lstMailboxes [private]

This view shows the available mailboxes in the selected directory

Definition at line 90 of file mailboxwizard.h.

KLineEdit* MailBoxWizard::txtMailDir [private]

This contains the path to the mail directory

Definition at line 80 of file mailboxwizard.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