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

Kross

  • sources
  • kde-4.12
  • kdelibs
  • kross
  • core
object.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * object.cpp
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 #include "object.h"
21 
22 using namespace Kross;
23 
24 class Object::Private
25 {
26  public:
27 };
28 
29 Object::Object()
30  : QSharedData()
31  , ErrorInterface()
32  , d(new Private)
33 {
34 }
35 
36 Object::Object(const Object &other)
37  : QSharedData()
38  , ErrorInterface()
39  , d(new Private)
40 {
41  Q_UNUSED(other);
42 }
43 
44 Object::~Object()
45 {
46  delete d;
47 }
48 
49 QVariant Object::callMethod(const QString& name, const QVariantList& args)
50 {
51  Q_UNUSED(name);
52  Q_UNUSED(args);
53  return QVariant();
54 }
55 
56 QStringList Object::methodNames()
57 {
58  return QStringList();
59 }
60 
61 void Object::virtual_hook(int id, void* ptr)
62 {
63  Q_UNUSED(id);
64  Q_UNUSED(ptr);
65 }
QVariant
Kross::Object::virtual_hook
virtual void virtual_hook(int id, void *ptr)
Definition: object.cpp:61
Kross::ErrorInterface
Interface for error-handling.
Definition: errorinterface.h:32
Kross::Object::callMethod
virtual QVariant callMethod(const QString &name, const QVariantList &args=QVariantList())
Pass a call to the object and evaluated it.
Definition: object.cpp:49
QString
QStringList
Kross::Object::~Object
virtual ~Object()
Destructor.
Definition: object.cpp:44
Kross::Object::methodNames
virtual QStringList methodNames()
Return a list of supported callable objects.
Definition: object.cpp:56
QSharedData
Kross::Object::Object
Object()
Default constructor.
Definition: object.cpp:29
object.h
Kross::Object
The class Object does provide us scripting objects like class instances to the C++ world...
Definition: object.h:69
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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