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

rocs/App

  • sources
  • kde-4.14
  • kdeedu
  • rocs
  • App
  • InterfacePlugins
  • ApiDoc
ApiDocManager.h
Go to the documentation of this file.
1 /*
2  This file is part of Rocs.
3  Copyright 2013 Andreas Cord-Landwehr <cola@uni-paderborn.de>
4 
5  This program is free software; you can redistribute it and/or
6  modify it under the terms of the GNU General Public License as
7  published by the Free Software Foundation; either version 2 of
8  the License, or (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef APIDOCMANAGER_H
20 #define APIDOCMANAGER_H
21 
22 #include <QObject>
23 #include <QMap>
24 #include <QHash>
25 
26 class ObjectDocumentation;
27 class KUrl;
28 class QDomDocument;
29 class QFile;
30 class QXmlSchema;
31 
37 class ApiDocManager : public QObject
38 {
39  Q_OBJECT
40 
41 public:
42  explicit ApiDocManager(QObject *parent = 0);
43 
47  void loadLocalData();
48 
52  QList<ObjectDocumentation *> objectApiList() const;
53 
54  ObjectDocumentation * objectApi(int index) const;
55 
64  QString objectApiDocument(const QString &identifier);
65 
71  QString apiOverviewDocument() const;
72 
79  bool loadObjectApi(const KUrl &path);
80 
81 signals:
82  void objectApiAdded();
83  void objectApiAboutToBeAdded(ObjectDocumentation*,int);
84  void objectApiRemoved();
85  void objectApiAboutToBeRemoved(int,int);
86 
87 private:
95  QXmlSchema loadXmlSchema(const QString &schemeName) const;
96 
104  QDomDocument loadDomDocument(const KUrl &path, const QXmlSchema &schema) const;
105 
106  QList<ObjectDocumentation *> _objectApiList;
107  QHash<QString, QString> _objectApiDocuments;
108  QList<QString> _objectApiCache; // list of all objects available
109 };
110 
111 #endif // APIDOCMANAGER_H
ObjectDocumentation
Definition: ObjectDocumentation.h:30
ApiDocManager::objectApiAdded
void objectApiAdded()
ApiDocManager::loadObjectApi
bool loadObjectApi(const KUrl &path)
Load documenation object specification from locally stored XML file.
Definition: ApiDocManager.cpp:155
ApiDocManager::objectApiDocument
QString objectApiDocument(const QString &identifier)
Generates HTML document with the API documentation for the specified object.
Definition: ApiDocManager.cpp:64
ApiDocManager::ApiDocManager
ApiDocManager(QObject *parent=0)
Definition: ApiDocManager.cpp:40
ApiDocManager::objectApiAboutToBeAdded
void objectApiAboutToBeAdded(ObjectDocumentation *, int)
QFile
ApiDocManager::objectApiRemoved
void objectApiRemoved()
QHash< QString, QString >
QObject
ApiDocManager::objectApiAboutToBeRemoved
void objectApiAboutToBeRemoved(int, int)
ApiDocManager::objectApiList
QList< ObjectDocumentation * > objectApiList() const
Definition: ApiDocManager.cpp:53
QString
QList< ObjectDocumentation * >
QDomDocument
ApiDocManager
Load and provide api documentation objects.
Definition: ApiDocManager.h:37
ApiDocManager::objectApi
ObjectDocumentation * objectApi(int index) const
Definition: ApiDocManager.cpp:58
ApiDocManager::apiOverviewDocument
QString apiOverviewDocument() const
Generates HTML document with the an overview over all available API objects.
Definition: ApiDocManager.cpp:265
QXmlSchema
QObject::parent
QObject * parent() const
ApiDocManager::loadLocalData
void loadLocalData()
This method loads all api documentation files.
Definition: ApiDocManager.cpp:45
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:16:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

rocs/App

Skip menu "rocs/App"
  • Main Page
  • Namespace List
  • 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