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

parley

script.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 
00003     Copyright 2008 Avgoustinos Kadis <avgoustinos.kadis@kdemail.net>
00004 
00005  ***************************************************************************/
00006 
00007 /***************************************************************************
00008  *                                                                         *
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; either version 2 of the License, or     *
00012  *   (at your option) any later version.                                   *
00013  *                                                                         *
00014  ***************************************************************************/
00015 #ifndef SCRIPT_H
00016 #define SCRIPT_H
00017 
00018 #include "scripting/parley.h"
00019 
00020 #include <QString>
00021 #include <QObject>
00022 #include <QPointer>
00023 #include <QMap>
00024 
00031 class Script: public QObject
00032 {
00033         Q_OBJECT
00034     public:
00040         Script ( QString file );
00041         ~Script();
00045         bool isActivated();
00049         void activate();
00053         void deactivate();
00061         bool exists();
00065         QString fileName();
00071         void addObject ( QString name, QObject * object );
00076         void addObjects ( QMap<QString, QObject*> objects );
00080         QString errorMessage();
00081     private:
00082         bool m_activated;
00083         QString m_file;
00084         QPointer<QObject> m_object;
00085         QMap<QString, QObject*> m_scriptObjects;
00086         QString m_errorMessage;
00087 };
00088 
00089 #endif

parley

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

kdeedu

Skip menu "kdeedu"
  •     lib
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.9-20090814
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