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

libplasma

runnermanager.h

Go to the documentation of this file.
00001 /*
00002  *   Copyright (C) 2006-2007 Ryan P. Bitanga <ryan.bitanga@gmail.com> 
00003  *   Copyright (C) 2006 Aaron Seigo <aseigo@kde.org> 
00004  *   Copyright 2008 Jordi Polo <mumismo@gmail.com>
00005  *
00006  *   This program is free software; you can redistribute it and/or modify
00007  *   it under the terms of the GNU Library General Public License as
00008  *   published by the Free Software Foundation; either version 2, or
00009  *   (at your option) any later version.
00010  *
00011  *   This program is distributed in the hope that it will be useful,
00012  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *   GNU General Public License for more details
00015  *
00016  *   You should have received a copy of the GNU Library General Public
00017  *   License along with this program; if not, write to the
00018  *   Free Software Foundation, Inc.,
00019  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00020  */
00021 
00022 #ifndef RUNNERMANAGER_H
00023 #define RUNNERMANAGER_H
00024 
00025 #include <QtCore/QList>
00026 #include <QtCore/QObject>
00027 
00028 #include <plasma/plasma_export.h>
00029 #include "abstractrunner.h"
00030 
00031 class KConfigGroup;
00032 
00033 namespace Plasma
00034 {
00035     class QueryMatch;
00036     class AbstractRunner;
00037     class RunnerContext; 
00038     class RunnerManagerPrivate;
00039 
00044 class PLASMA_EXPORT RunnerManager : public QObject
00045 {
00046     Q_OBJECT
00047 
00048 
00049     public:
00050         explicit RunnerManager(QObject *parent=0);
00051         explicit RunnerManager(KConfigGroup& config, QObject *parent=0);
00052         ~RunnerManager();
00053 
00059         AbstractRunner* runner(const QString &name) const;
00060 
00065         RunnerContext* searchContext() const;
00066 
00071         QList<QueryMatch> matches() const;
00072 
00077          void run(const QueryMatch &match);
00078 
00083          void run(const QString &id);
00084 
00088         QString query() const;
00089 
00093         void reloadConfiguration();
00094 
00095     public Q_SLOTS:
00104         void launchQuery(const QString &term, const QString & runnerName);
00105 
00109         void launchQuery(const QString &term);
00110 
00120         bool execQuery(const QString &term, const QString & runnerName);
00121 
00125         bool execQuery(const QString &term);
00126 
00130         void reset();
00131 
00132     Q_SIGNALS:
00136         void matchesChanged(const QList<Plasma::QueryMatch> &matches);
00137 
00138     private:
00139         Q_PRIVATE_SLOT(d, void scheduleMatchesChanged())
00140         Q_PRIVATE_SLOT(d, void matchesChanged())
00141         Q_PRIVATE_SLOT(d, void jobDone(ThreadWeaver::Job*))
00142 
00143         RunnerManagerPrivate * const d;
00144 
00145         friend class RunnerManagerPrivate;
00146 };
00147 
00148 }
00149 
00150 #endif

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
  •   libsolidcontrol
  •   libtaskmanager
  • 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