• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kde-runtime API Reference
  • KDE Home
  • Contact Us
 

PlasmaCore

Public Types | Public Slots | Signals | Public Member Functions | Properties | List of all members
RunnerModel Class Reference

#include <runnermodel.h>

Inheritance diagram for RunnerModel:
Inheritance graph
[legend]

Public Types

enum  Roles {
  Type = Qt::UserRole + 1, Label, Icon, Relevance,
  Data, Id, SubText, Enabled,
  RunnerId, RunnerName, Actions
}
 

Public Slots

void scheduleQuery (const QString &query)
 

Signals

void countChanged ()
 
void queryChanged ()
 
void runnersChanged ()
 
void runningChanged (bool running)
 

Public Member Functions

 RunnerModel (QObject *parent=0)
 
int count () const
 
QString currentQuery () const
 
QVariant data (const QModelIndex &, int) const
 
bool isRunning () const
 
int rowCount (const QModelIndex &) const
 
Q_SCRIPTABLE void run (int row)
 
QStringList runners () const
 
void setRunners (const QStringList &allowedRunners)
 

Properties

int count
 
QString query
 
QStringList runners
 
bool running
 

Detailed Description

This model provides bindings to use KRunner from QML.

Author
Aaron Seigo aseig.nosp@m.o@kd.nosp@m.e.org

Definition at line 39 of file runnermodel.h.

Member Enumeration Documentation

enum RunnerModel::Roles

of the model, they will be accessible from delegates

Enumerator
Type 
Label 
Icon 
Relevance 
Data 
Id 
SubText 
Enabled 
RunnerId 
RunnerName 
Actions 

Definition at line 67 of file runnermodel.h.

Constructor & Destructor Documentation

RunnerModel::RunnerModel ( QObject *  parent = 0)

Definition at line 30 of file runnermodel.cpp.

Member Function Documentation

int RunnerModel::count ( ) const
void RunnerModel::countChanged ( )
signal
QString RunnerModel::currentQuery ( ) const

Definition at line 157 of file runnermodel.cpp.

QVariant RunnerModel::data ( const QModelIndex &  index,
int  role 
) const

Definition at line 115 of file runnermodel.cpp.

bool RunnerModel::isRunning ( ) const

Definition at line 110 of file runnermodel.cpp.

void RunnerModel::queryChanged ( )
signal
int RunnerModel::rowCount ( const QModelIndex &  index) const

Definition at line 62 of file runnermodel.cpp.

void RunnerModel::run ( int  row)

Definition at line 103 of file runnermodel.cpp.

QStringList RunnerModel::runners ( ) const
void RunnerModel::runnersChanged ( )
signal
void RunnerModel::runningChanged ( bool  running)
signal
void RunnerModel::scheduleQuery ( const QString &  query)
slot

Definition at line 162 of file runnermodel.cpp.

void RunnerModel::setRunners ( const QStringList &  allowedRunners)

Definition at line 77 of file runnermodel.cpp.

Property Documentation

int RunnerModel::count
read

Definition at line 56 of file runnermodel.h.

string set the KRunner RunnerModel::query
readwrite

Definition at line 46 of file runnermodel.h.

QStringList RunnerModel::runners
readwrite

Definition at line 51 of file runnermodel.h.

bool RunnerModel::running
read

Definition at line 61 of file runnermodel.h.


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

KDE's Doxygen guidelines are available online.

PlasmaCore

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

kde-runtime API Reference

Skip menu "kde-runtime API Reference"
  • KCMShell
  • KNotify
  • Plasma Runtime
  •     PlasmaCore
  •     DragAndDrop
  •     PlasmaComponents
  •     PlasmaExtraComponents
  •     QtExtraComponents

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