QMetaCallEvent Class Reference

#include <qobject_p.h>

Inheritance diagram for QMetaCallEvent:

Inheritance graph
[legend]
Collaboration diagram for QMetaCallEvent:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 119 of file qobject_p.h.

Public Member Functions

 QMetaCallEvent (int id, const QObject *sender=0, int nargs=0, int *types=0, void **args=0)
 QMetaCallEvent (int id, const QObject *sender, int idFrom, int idTo, int nargs=0, int *types=0, void **args=0)
 ~QMetaCallEvent ()
int id () const
const QObjectsender () const
int signalIdStart () const
int signalIdEnd () const
void ** args () const

Private Attributes

int id_
const QObjectsender_
int idFrom_
int idTo_
int nargs_
int * types_
void ** args_


Constructor & Destructor Documentation

QMetaCallEvent::QMetaCallEvent ( int  id,
const QObject sender = 0,
int  nargs = 0,
int *  types = 0,
void **  args = 0 
)

Definition at line 453 of file qobject.cpp.

00455     :QEvent(MetaCall), id_(id), sender_(sender), idFrom_(-1), idTo_(-1),
00456      nargs_(nargs), types_(types), args_(args)
00457 { }

QMetaCallEvent::QMetaCallEvent ( int  id,
const QObject sender,
int  idFrom,
int  idTo,
int  nargs = 0,
int *  types = 0,
void **  args = 0 
)

Definition at line 461 of file qobject.cpp.

00463     : QEvent(MetaCall), id_(id), sender_(sender), idFrom_(idFrom), idTo_(idTo),
00464       nargs_(nargs), types_(types), args_(args)
00465 { }

QMetaCallEvent::~QMetaCallEvent (  ) 

Definition at line 469 of file qobject.cpp.

References args_, QMetaType::destroy(), i, nargs_, qFree(), and types_.

00470 {
00471     for (int i = 0; i < nargs_; ++i) {
00472         if (types_[i] && args_[i])
00473             QMetaType::destroy(types_[i], args_[i]);
00474     }
00475     if (types_) qFree(types_);
00476     if (args_) qFree(args_);
00477 }

Here is the call graph for this function:


Member Function Documentation

int QMetaCallEvent::id (  )  const [inline]

Definition at line 128 of file qobject_p.h.

Referenced by QObject::event().

00128 { return id_; }

const QObject* QMetaCallEvent::sender (  )  const [inline]

Definition at line 129 of file qobject_p.h.

Referenced by QObject::event().

00129 { return sender_; }

int QMetaCallEvent::signalIdStart (  )  const [inline]

Definition at line 130 of file qobject_p.h.

Referenced by QObject::event().

00130 { return idFrom_; }

int QMetaCallEvent::signalIdEnd (  )  const [inline]

Definition at line 131 of file qobject_p.h.

Referenced by QObject::event().

00131 { return idTo_; }

void** QMetaCallEvent::args (  )  const [inline]

Definition at line 132 of file qobject_p.h.

Referenced by QObject::event().

00132 { return args_; }


Member Data Documentation

int QMetaCallEvent::id_ [private]

Definition at line 135 of file qobject_p.h.

const QObject* QMetaCallEvent::sender_ [private]

Definition at line 136 of file qobject_p.h.

int QMetaCallEvent::idFrom_ [private]

Definition at line 137 of file qobject_p.h.

int QMetaCallEvent::idTo_ [private]

Definition at line 138 of file qobject_p.h.

int QMetaCallEvent::nargs_ [private]

Definition at line 139 of file qobject_p.h.

Referenced by ~QMetaCallEvent().

int* QMetaCallEvent::types_ [private]

Definition at line 140 of file qobject_p.h.

Referenced by ~QMetaCallEvent().

void** QMetaCallEvent::args_ [private]

Definition at line 141 of file qobject_p.h.

Referenced by ~QMetaCallEvent().


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 18:27:02 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1