lib

Kross::Api::QtObject Class Reference

#include <qtobject.h>

Inheritance diagram for Kross::Api::QtObject:

Kross::Api::Class< T > Kross::Api::Event< T > 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 (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::Class< T >.

Definition at line 52 of file qtobject.h.


Constructor & Destructor Documentation

QtObject::QtObject ( QObject *  object,
const QString &  name = QString::null 
)

Constructor.

Parameters:
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 77 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 81 of file qtobject.cpp.

QObject * QtObject::getObject (  ) 

Return the QObject instance this class wraps.

Returns:
The wrapped QObject.

Definition at line 86 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 91 of file qtobject.cpp.


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