• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kmail

  • KMail
  • SearchWindow
Public Member Functions | Protected Member Functions | List of all members
KMail::SearchWindow Class Reference

#include <searchwindow.h>

Inheritance diagram for KMail::SearchWindow:
Inheritance graph
[legend]

Public Member Functions

 SearchWindow (KMMainWidget *parent, const Akonadi::Collection &collection=Akonadi::Collection())
 
 ~SearchWindow ()
 
void activateFolder (const Akonadi::Collection &folder)
 
void addRulesToSearchPattern (const MailCommon::SearchPattern &pattern)
 
Akonadi::Item selectedMessage () const
 
Akonadi::Item::List selectedMessages () const
 

Protected Member Functions

void childCollectionsFromSelectedCollection (const Akonadi::Collection &collection, KUrl::List &list)
 
void closeEvent (QCloseEvent *)
 
void createSearchModel ()
 
void getChildren (const QAbstractItemModel *model, const QModelIndex &parentIndex, KUrl::List &list)
 
void keyPressEvent (QKeyEvent *)
 

Detailed Description

Definition at line 65 of file searchwindow.h.

Constructor & Destructor Documentation

KMail::SearchWindow::SearchWindow ( KMMainWidget *  parent,
const Akonadi::Collection &  collection = Akonadi::Collection() 
)
explicit

Creates a new search window.

Parameters
parentThe parent widget.
collectionThe folder which will be pre-selected as the base folder of search operations.

Definition at line 75 of file searchwindow.cpp.

KMail::SearchWindow::~SearchWindow ( )

Destroys the search window.

Definition at line 296 of file searchwindow.cpp.

Member Function Documentation

void KMail::SearchWindow::activateFolder ( const Akonadi::Collection &  folder)

Changes the base folder for search operations to a different folder.

Parameters
folderThe folder to use as the new base for searches.

Definition at line 388 of file searchwindow.cpp.

void KMail::SearchWindow::addRulesToSearchPattern ( const MailCommon::SearchPattern &  pattern)

Loads a search pattern into the search window, appending its rules to the current one.

Definition at line 806 of file searchwindow.cpp.

void KMail::SearchWindow::childCollectionsFromSelectedCollection ( const Akonadi::Collection &  collection,
KUrl::List &  list 
)
protected

Definition at line 822 of file searchwindow.cpp.

void KMail::SearchWindow::closeEvent ( QCloseEvent *  event)
protected

Reimplemented to stop searching when the window is closed.

Definition at line 582 of file searchwindow.cpp.

void KMail::SearchWindow::createSearchModel ( )
protected

Definition at line 324 of file searchwindow.cpp.

void KMail::SearchWindow::getChildren ( const QAbstractItemModel *  model,
const QModelIndex &  parentIndex,
KUrl::List &  list 
)
protected

Definition at line 832 of file searchwindow.cpp.

void KMail::SearchWindow::keyPressEvent ( QKeyEvent *  event)
protected

Reimplemented to react to Escape.

Definition at line 373 of file searchwindow.cpp.

Akonadi::Item KMail::SearchWindow::selectedMessage ( ) const

Provides access to the currently selected message.

Returns
the currently selected message.

Definition at line 701 of file searchwindow.cpp.

Akonadi::Item::List KMail::SearchWindow::selectedMessages ( ) const

Provides access to the list of currently selected message in the listview.

Returns
The list of currently selected search result messages.

Definition at line 688 of file searchwindow.cpp.


The documentation for this class was generated from the following files:
  • searchwindow.h
  • searchwindow.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kmail

Skip menu "kmail"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal