• 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 closeEvent (QCloseEvent *)
 
void createSearchModel ()
 
void keyPressEvent (QKeyEvent *)
 

Detailed Description

Definition at line 63 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 70 of file searchwindow.cpp.

KMail::SearchWindow::~SearchWindow ( )

Destroys the search window.

Definition at line 290 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 382 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 833 of file searchwindow.cpp.

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

Reimplemented to stop searching when the window is closed.

Definition at line 615 of file searchwindow.cpp.

void KMail::SearchWindow::createSearchModel ( )
protected

Definition at line 318 of file searchwindow.cpp.

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

Reimplemented to react to Escape.

Definition at line 367 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 723 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 710 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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:34 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
  • pimprint

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