kmail
KMail::SearchWindow Class Reference
#include <searchwindow.h>

Detailed Description
The SearchWindow class provides a dialog for triggering a search on folders and storing that search as a search folder.It shows the search results in a listview and allows triggering of operations such as printing or moving on them.
Definition at line 68 of file searchwindow.h.
Public Member Functions | |
SearchWindow (KMMainWidget *parent, const char *name=0, KMFolder *curFolder=0, bool modal=false) | |
void | activateFolder (KMFolder *curFolder) |
KMMessageList | selectedMessages () |
KMMessage * | message () |
void | setSearchPattern (const KMSearchPattern &pattern) |
Protected Slots | |
virtual void | updStatus (void) |
virtual void | slotClose () |
virtual void | slotSearch () |
virtual void | slotStop () |
void | scheduleRename (const QString &) |
void | renameSearchFolder () |
void | openSearchFolder () |
void | folderInvalidated (KMFolder *) |
virtual bool | slotShowMsg (QListViewItem *) |
void | slotViewSelectedMsg () |
virtual bool | slotViewMsg (QListViewItem *) |
void | slotCurrentChanged (QListViewItem *) |
virtual void | updateContextMenuActions () |
virtual void | slotContextMenuRequested (QListViewItem *, const QPoint &, int) |
virtual void | copySelectedToFolder (int menuId) |
virtual void | moveSelectedToFolder (int menuId) |
virtual void | slotFolderActivated () |
void | slotClearSelection () |
void | slotReplyToMsg () |
void | slotReplyAllToMsg () |
void | slotReplyListToMsg () |
void | slotForwardInlineMsg () |
void | slotForwardAttachedMsg () |
void | slotForwardDigestMsg () |
void | slotRedirectMsg () |
void | slotSaveMsg () |
void | slotSaveAttachments () |
void | slotPrintMsg () |
void | slotCopyMsgs () |
void | slotCutMsgs () |
virtual void | searchDone () |
virtual void | slotAddMsg (int idx) |
virtual void | slotRemoveMsg (KMFolder *, Q_UINT32 serNum) |
void | enableGUI () |
void | setEnabledSearchButton (bool) |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *) |
virtual void | closeEvent (QCloseEvent *) |
Protected Attributes | |
bool | mStopped |
bool | mCloseRequested |
int | mFetchingInProgress |
int | mSortColumn |
SortOrder | mSortOrder |
QGuardedPtr< KMFolderSearch > | mFolder |
QTimer * | mTimer |
QRadioButton * | mChkbxAllFolders |
QRadioButton * | mChkbxSpecificFolders |
KMail::FolderRequester * | mCbxFolders |
QPushButton * | mBtnSearch |
QPushButton * | mBtnStop |
QCheckBox * | mChkSubFolders |
KListView * | mLbxMatches |
QLabel * | mSearchFolderLbl |
QLineEdit * | mSearchFolderEdt |
QPushButton * | mSearchFolderOpenBtn |
QPushButton * | mSearchResultOpenBtn |
KStatusBar * | mStatusBar |
QWidget * | mLastFocus |
QMap< int, KMFolder * > | mMenuToFolder |
KAction * | mReplyAction |
KAction * | mReplyAllAction |
KAction * | mReplyListAction |
KAction * | mSaveAsAction |
KAction * | mForwardInlineAction |
KAction * | mForwardAttachedAction |
KAction * | mForwardDigestAction |
KAction * | mRedirectAction |
KAction * | mPrintAction |
KAction * | mClearAction |
KAction * | mSaveAtchAction |
KAction * | mCopyAction |
KAction * | mCutAction |
KActionMenu * | mForwardActionMenu |
QValueList< QGuardedPtr < KMFolder > > | mFolders |
QTimer | mRenameTimer |
KMMainWidget * | mKMMainWidget |
KMSearchPatternEdit * | mPatternEdit |
KMSearchPattern * | mSearchPattern |
Static Protected Attributes | |
static const int | MSGID_COLUMN = 4 |
Constructor & Destructor Documentation
KMail::SearchWindow::SearchWindow | ( | KMMainWidget * | parent, | |
const char * | name = 0 , |
|||
KMFolder * | curFolder = 0 , |
|||
bool | modal = false | |||
) |
Creates a new search window.
- Parameters:
-
parent The parent widget. name The (widget) name of the dialog. curFolder The folder which will be pre-selected as the base folder of search operations. modal Whether the dialog is to be shown modal.
Definition at line 109 of file searchwindow.cpp.
Member Function Documentation
void KMail::SearchWindow::activateFolder | ( | KMFolder * | curFolder | ) |
Changes the base folder for search operations to a different folder.
- Parameters:
-
curFolder The folder to use as the new base for searches.
Definition at line 460 of file searchwindow.cpp.
KMMessageList KMail::SearchWindow::selectedMessages | ( | ) |
Provides access to the list of currently selected message in the listview.
- Returns:
- The list of currenty selected search result messages.
Definition at line 757 of file searchwindow.cpp.
KMMessage * KMail::SearchWindow::message | ( | ) |
Provides access to the currently selected message.
- Returns:
- the currently selected message.
Definition at line 773 of file searchwindow.cpp.
void KMail::SearchWindow::updStatus | ( | void | ) | [protected, virtual, slot] |
void KMail::SearchWindow::searchDone | ( | ) | [protected, virtual, slot] |
void KMail::SearchWindow::keyPressEvent | ( | QKeyEvent * | evt | ) | [protected, virtual] |
Reimplemented to react to Escape.
Reimplemented from KDialogBase.
Definition at line 440 of file searchwindow.cpp.
void KMail::SearchWindow::closeEvent | ( | QCloseEvent * | e | ) | [protected, virtual] |
Reimplemented to stop searching when the window is closed.
Reimplemented from KDialogBase.
Definition at line 619 of file searchwindow.cpp.
The documentation for this class was generated from the following files: