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>
Signals | |
void | folderChanged (KMFolder *) |
Public Member Functions | |
KMFolder * | folder (void) const |
QString | folderId () const |
FolderRequester (QWidget *parent, KMFolderTree *tree) | |
void | setFolder (const QString &idString) |
void | setFolder (KMFolder *) |
void | setMustBeReadWrite (bool readwrite) |
void | setShowImapFolders (bool show) |
void | setShowOutbox (bool show) |
QString | text () const |
virtual | ~FolderRequester () |
Protected Slots | |
void | slotOpenDialog () |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *e) |
Protected Attributes | |
KLineEdit * | edit |
KMFolder * | mFolder |
QString | mFolderId |
KMFolderTree * | mFolderTree |
bool | mMustBeReadWrite |
bool | mShowImapFolders |
bool | mShowOutbox |
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.Definition at line 46 of file folderrequester.h.
Constructor & Destructor Documentation
KMail::FolderRequester::FolderRequester | ( | QWidget * | parent, | |
KMFolderTree * | tree | |||
) |
Constructor.
- Parameters:
-
parent the parent widget tree the KMFolderTree to get the folders
Definition at line 44 of file folderrequester.cpp.
KMail::FolderRequester::~FolderRequester | ( | ) | [virtual] |
Definition at line 76 of file folderrequester.cpp.
Member Function Documentation
KMFolder * KMail::FolderRequester::folder | ( | void | ) | const |
void KMail::FolderRequester::folderChanged | ( | KMFolder * | ) | [signal] |
Emitted when the folder changed.
QString KMail::FolderRequester::folderId | ( | ) | const [inline] |
void KMail::FolderRequester::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Capture space key to open the dialog.
Reimplemented from QWidget.
Definition at line 117 of file folderrequester.cpp.
void KMail::FolderRequester::setFolder | ( | const QString & | idString | ) |
Definition at line 100 of file folderrequester.cpp.
void KMail::FolderRequester::setFolder | ( | KMFolder * | 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.
Definition at line 77 of file folderrequester.h.
void KMail::FolderRequester::setShowImapFolders | ( | bool | show | ) | [inline] |
void KMail::FolderRequester::setShowOutbox | ( | bool | show | ) | [inline] |
void KMail::FolderRequester::slotOpenDialog | ( | ) | [protected, slot] |
QString KMail::FolderRequester::text | ( | ) | const [inline] |
Member Data Documentation
KLineEdit* KMail::FolderRequester::edit [protected] |
Definition at line 101 of file folderrequester.h.
KMFolder* KMail::FolderRequester::mFolder [protected] |
Definition at line 102 of file folderrequester.h.
QString KMail::FolderRequester::mFolderId [protected] |
Definition at line 104 of file folderrequester.h.
KMFolderTree* KMail::FolderRequester::mFolderTree [protected] |
Definition at line 103 of file folderrequester.h.
bool KMail::FolderRequester::mMustBeReadWrite [protected] |
Definition at line 105 of file folderrequester.h.
bool KMail::FolderRequester::mShowImapFolders [protected] |
Definition at line 107 of file folderrequester.h.
bool KMail::FolderRequester::mShowOutbox [protected] |
Definition at line 106 of file folderrequester.h.
The documentation for this class was generated from the following files: