• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libplasma

Plasma::SearchMatch

Plasma::SearchMatch Class Reference

#include <searchmatch.h>

List of all members.


Detailed Description

Definition at line 35 of file searchmatch.h.


Public Types

enum  Type { InformationalMatch, ExactMatch, PossibleMatch }

Public Member Functions

 SearchMatch (SearchContext *search, AbstractRunner *runner)
 ~SearchMatch ()
void setType (Type type)
Type type () const
void setMimetype (const QString &mimetype)
QString mimetype () const
QString searchTerm () const
void setRelevance (qreal relevance)
qreal relevance () const
AbstractRunner * runner () const
void setText (const QString &text)
void setData (const QVariant &data)
void setIcon (const QIcon &icon)
void setEnabled (bool enable)
QString text () const
QVariant data () const
QIcon icon () const
bool isEnabled () const
bool operator< (const SearchMatch &other) const
void exec ()

Member Enumeration Documentation

enum Plasma::SearchMatch::Type

Enumerator:
InformationalMatch 
ExactMatch 
PossibleMatch 

Definition at line 38 of file searchmatch.h.


Constructor & Destructor Documentation

Plasma::SearchMatch::SearchMatch ( SearchContext *  search,
AbstractRunner *  runner 
)

Definition at line 58 of file searchmatch.cpp.

Plasma::SearchMatch::~SearchMatch (  ) 

Definition at line 63 of file searchmatch.cpp.


Member Function Documentation

void Plasma::SearchMatch::setType ( Type  type  ) 

Sets the type of match this action represents.

Definition at line 68 of file searchmatch.cpp.

SearchMatch::Type Plasma::SearchMatch::type (  )  const

The type of action this is.

Defaults to ExactMatch.

Definition at line 73 of file searchmatch.cpp.

void Plasma::SearchMatch::setMimetype ( const QString &  mimetype  ) 

Sets the mimetype, if any, associated with this match.

  • mimetype the mimetype

Definition at line 78 of file searchmatch.cpp.

QString Plasma::SearchMatch::mimetype (  )  const

The mimetype associated with this action, if any.

Definition at line 83 of file searchmatch.cpp.

QString Plasma::SearchMatch::searchTerm (  )  const

The search term that triggered this action.

Definition at line 88 of file searchmatch.cpp.

void Plasma::SearchMatch::setRelevance ( qreal  relevance  ) 

Sets the relevance of this action for the search it was created for.

Parameters:
relevance a number between 0 and 1.

Definition at line 93 of file searchmatch.cpp.

qreal Plasma::SearchMatch::relevance (  )  const

The relevance of this action to the search.

By default, the relevance is 1.

Returns:
a number between 0 and 1

Definition at line 98 of file searchmatch.cpp.

AbstractRunner * Plasma::SearchMatch::runner (  )  const

The runner associated with this action.

Definition at line 103 of file searchmatch.cpp.

void Plasma::SearchMatch::setText ( const QString &  text  ) 

Definition at line 108 of file searchmatch.cpp.

void Plasma::SearchMatch::setData ( const QVariant &  data  ) 

Definition at line 113 of file searchmatch.cpp.

void Plasma::SearchMatch::setIcon ( const QIcon &  icon  ) 

Definition at line 118 of file searchmatch.cpp.

void Plasma::SearchMatch::setEnabled ( bool  enable  ) 

Definition at line 138 of file searchmatch.cpp.

QString Plasma::SearchMatch::text (  )  const

Definition at line 128 of file searchmatch.cpp.

QVariant Plasma::SearchMatch::data (  )  const

Definition at line 123 of file searchmatch.cpp.

QIcon Plasma::SearchMatch::icon (  )  const

Definition at line 133 of file searchmatch.cpp.

bool Plasma::SearchMatch::isEnabled (  )  const

Definition at line 143 of file searchmatch.cpp.

bool Plasma::SearchMatch::operator< ( const SearchMatch &  other  )  const

Definition at line 148 of file searchmatch.cpp.

void Plasma::SearchMatch::exec (  ) 

Definition at line 153 of file searchmatch.cpp.


The documentation for this class was generated from the following files:
  • searchmatch.h
  • searchmatch.cpp

libplasma

Skip menu "libplasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal