KDE PIM / Developers / API Docs / kmail

KMail::FolderRequester Class Reference

A widget that contains a KLineEdit which shows the current folder and a button that fires a KMFolderSelDlg The dialog is set to disable readonly folders by default Search folders are excluded. More...

#include <folderrequester.h>

Inherits QWidget.

List of all members.

Signals

Public Member Functions

Protected Slots

Protected Member Functions

Protected Attributes


Detailed Description

A widget that contains a KLineEdit which shows the current folder and a button that fires a KMFolderSelDlg The dialog is set to disable readonly folders by default Search folders are excluded.


Constructor & Destructor Documentation

KMail::FolderRequester::FolderRequester (  QWidget *  parent,
KMFolderTree *  tree
) 
 

Constructor.

Parameters:
parent the parent widget
tree the KMFolderTree to get the folders

Member Function Documentation

KMFolder * KMail::FolderRequester::folder (  void   )  const
 

Returns selected folder.

QString KMail::FolderRequester::text (   )  const [inline]
 

Returns current text.

void KMail::FolderRequester::setFolder (  KMFolder *   ) 
 

Preset the folder.

void KMail::FolderRequester::setMustBeReadWrite (  bool  readwrite  )  [inline]
 

Set if readonly folders should be disabled Be aware that if you disable this the user can also select the 'Local Folders' folder which has no valid folder associated.

void KMail::FolderRequester::setShowOutbox (  bool  show  )  [inline]
 

Set if the outbox should be shown.

void KMail::FolderRequester::setShowImapFolders (  bool  show  )  [inline]
 

Set if the imap folders should be shown.

void KMail::FolderRequester::slotOpenDialog (   )  [protected, slot]
 

Open the folder dialog.

void KMail::FolderRequester::folderChanged (  KMFolder *   )  [signal]
 

Emitted when the folder changed.

void KMail::FolderRequester::keyPressEvent (  QKeyEvent *  e  )  [protected, virtual]
 

Capture space key to open the dialog.


The documentation for this class was generated from the following files: