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

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • plasmoid
  • engine
parley_engine.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  Copyright 2008 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
4 
5  ***************************************************************************/
6 
7 /***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 
17 #ifndef PARLEYENGINE_H
18 #define PARLEYENGINE_H
19 
20 #include <KRandomSequence>
21 
22 #include "plasma/dataengine.h"
23 
24 class KEduVocDocument;
25 
26 class ParleyEngine : public Plasma::DataEngine
27 {
28  Q_OBJECT
29 
30 public:
31  ParleyEngine(QObject* parent, const QVariantList& args);
32  ~ParleyEngine();
33  QStringList sources() const;
34 
35 protected:
36  bool sourceRequestEvent(const QString& name);
37  bool updateSourceEvent(const QString& source);
38 
39 private:
40  void openDocument(const QString& file);
41 
42  QHash<QString, KEduVocDocument*> m_docs;
43  KRandomSequence *m_random;
44 };
45 
46 K_EXPORT_PLASMA_DATAENGINE(parley, ParleyEngine)
47 
48 #endif
ParleyEngine::sources
QStringList sources() const
Definition: parley_engine.cpp:64
QHash< QString, KEduVocDocument * >
QObject
QString
ParleyEngine::updateSourceEvent
bool updateSourceEvent(const QString &source)
Definition: parley_engine.cpp:83
QStringList
ParleyEngine
Definition: parley_engine.h:26
ParleyEngine::sourceRequestEvent
bool sourceRequestEvent(const QString &name)
Definition: parley_engine.cpp:69
ParleyEngine::~ParleyEngine
~ParleyEngine()
Definition: parley_engine.cpp:42
ParleyEngine::ParleyEngine
ParleyEngine(QObject *parent, const QVariantList &args)
Definition: parley_engine.cpp:31
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

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

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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