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

kremotecontrol

  • sources
  • kde-4.12
  • kdeutils
  • kremotecontrol
  • dataengine
kremotecontrolengine.h
Go to the documentation of this file.
1 /*
2  * Copyright 2010 Frank Scheffold <fscheffold@googlemail.com>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Library General Public License as
6  * published by the Free Software Foundation; either version 2 or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this program; if not, write to the
16  * Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18  */
19 
20 // a standard include guard to prevent problems if the
21 // header is included multiple times
22 #ifndef KREMOTECONTROLENGINE_H
23 #define KREMOTECONTROLENGINE_H
24 
25 // We need the DataEngine header, since we are inheriting it
26 #include <Plasma/DataEngine>
27 
28 
29 class KRemoteControlEngine : public Plasma::DataEngine
30 {
31  // required since Plasma::DataEngine inherits QObject
32  Q_OBJECT
33 
34  public:
35  // every engine needs a constructor with these arguments
36  KRemoteControlEngine(QObject* parent, const QVariantList& args);
37 
38  protected:
39  // this virtual function is called when a new source is requested
40  bool sourceRequestEvent(const QString& name);
41 
42  // this virtual function is called when an automatic update
43  // is triggered for an existing source (ie: when a valid update
44  // interval is set when requesting a source)
45  bool updateSourceEvent(const QString& source);
46 };
47 
48 #endif // KREMOTECONTROLENGINE_H
KRemoteControlEngine::updateSourceEvent
bool updateSourceEvent(const QString &source)
Definition: kremotecontrolengine.cpp:50
QObject
KRemoteControlEngine
Definition: kremotecontrolengine.h:29
KRemoteControlEngine::sourceRequestEvent
bool sourceRequestEvent(const QString &name)
Definition: kremotecontrolengine.cpp:43
KRemoteControlEngine::KRemoteControlEngine
KRemoteControlEngine(QObject *parent, const QVariantList &args)
Definition: kremotecontrolengine.cpp:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kremotecontrol

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

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