• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

Kross

  • kross
  • core
object.h
Go to the documentation of this file.
1/***************************************************************************
2 * object.h
3 * This file is part of the KDE project
4 * copyright (C)2004-2006 by Sebastian Sauer (mail@dipe.org)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
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 GNU
13 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 ***************************************************************************/
19
20#ifndef KROSS_OBJECT_H
21#define KROSS_OBJECT_H
22
23#include <QtCore/QString>
24#include <QtCore/QStringList>
25#include <QtCore/QMap>
26#include <QtCore/QVariant>
27#include <QtCore/QSharedData>
28
29#include "krossconfig.h"
30#include "errorinterface.h"
31
32#include <ksharedptr.h>
33
34namespace Kross {
35
69 class KROSSCORE_EXPORT Object : public QSharedData, public ErrorInterface
70 {
71 public:
72
76 typedef KSharedPtr<Object> Ptr;
77
81 explicit Object();
82
86 Object(const Object &other);
87
91 virtual ~Object();
92
102 virtual QVariant callMethod(const QString& name,
103 const QVariantList& args = QVariantList());
104
110 virtual QStringList methodNames();
111
116 virtual void virtual_hook(int id, void* ptr);
117
118 private:
120 class Private;
122 Private* const d;
123 };
124}
125
126Q_DECLARE_METATYPE(Kross::Object::Ptr)
127
128#endif
129
KSharedPtr
Kross::ErrorInterface
Interface for error-handling.
Definition: errorinterface.h:33
Kross::Object
The class Object does provide us scripting objects like class instances to the C++ world.
Definition: object.h:70
Kross::Object::Ptr
KSharedPtr< Object > Ptr
Shared pointer to implement reference-counting.
Definition: object.h:76
QSharedData
errorinterface.h
krossconfig.h
ksharedptr.h
Kross
Definition: action.cpp:36
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kross

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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