lib

Kross::Api::QtObject Class Reference

#include <qtobject.h>

Inheritance diagram for Kross::Api::QtObject:

Kross::Api::Class< QtObject > Kross::Api::Event< QtObject > Kross::Api::Callable Kross::Api::Object List of all members.

Detailed Description

Class to wrap QObject or inherited instances.

This class publishs all SIGNAL's, SLOT's and Q_PROPERTY's the QObject has.

Definition at line 45 of file qtobject.h.


Public Types

typedef KSharedPtr< QtObjectPtr

Public Member Functions

 QtObject (Object::Ptr parent, QObject *object, const QString &name=QString::null)
virtual ~QtObject ()
virtual const QString getClassName () const
QObject * getObject ()

Static Public Member Functions

static QUObject * toQUObject (const QString &signature, List::Ptr arguments)

Member Typedef Documentation

typedef KSharedPtr<QtObject> Kross::Api::QtObject::Ptr
 

Shared pointer to implement reference-counting.

Reimplemented from Kross::Api::Callable.

Definition at line 52 of file qtobject.h.


Constructor & Destructor Documentation

QtObject::QtObject Object::Ptr  parent,
QObject *  object,
const QString &  name = QString::null
 

Constructor.

Parameters:
parent The QObject instance this class is children of.
object The QObject instance this class wraps.
name The unique name this QtObject instance has. If not defined then the QObject::name() will be used.

Definition at line 38 of file qtobject.cpp.

QtObject::~QtObject  )  [virtual]
 

Destructor.

Definition at line 91 of file qtobject.cpp.


Member Function Documentation

const QString QtObject::getClassName  )  const [virtual]
 

See also:
Kross::Api::Object::getClassName()

Reimplemented from Kross::Api::Callable.

Definition at line 95 of file qtobject.cpp.

QObject * QtObject::getObject  ) 
 

Return the QObject instance this class wraps.

Returns:
The wrapped QObject.

Definition at line 100 of file qtobject.cpp.

QUObject * QtObject::toQUObject const QString &  signature,
List::Ptr  arguments
[static]
 

Build a Qt QUObject struct out of the Qt signal or slot signature and the passed List arguments.

Exceptions:
RuntimeException If the try to translate arguments failed.
Parameters:
signature The Qt signal or slot signature.
arguments The optional List of arguments.
Returns:
A QUObject array.

Definition at line 105 of file qtobject.cpp.


The documentation for this class was generated from the following files:
KDE Home | KDE Accessibility Home | Description of Access Keys