Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SALOME_CustomEvent Class Reference

Generic event class for user-defined events. More...

#include <SALOME_Event.h>

Inheritance diagram for SALOME_CustomEvent:
Inheritance graph

Public Member Functions

 SALOME_CustomEvent (int type)
 Constructor. More...
 
 SALOME_CustomEvent (QEvent::Type type, void *data)
 Constructor. More...
 
void * data () const
 Get custom data. More...
 
void setData (void *data)
 Set custom data. More...
 

Private Attributes

void * d
 internal data More...
 

Detailed Description

This class contains a generic void* data member that may be used for transferring event-specific data to the receiver.

Warning
The internal data is not destroyed by the class destructor.

Constructor & Destructor Documentation

SALOME_CustomEvent::SALOME_CustomEvent ( int  type)
Parameters
typeevent type
SALOME_CustomEvent::SALOME_CustomEvent ( QEvent::Type  type,
void *  data 
)
Parameters
typeevent type
datacustom data

Member Function Documentation

void * SALOME_CustomEvent::data ( ) const
Returns
pointer to the internal data

References d.

void SALOME_CustomEvent::setData ( void *  data)
Parameters
datapointer to the internal data

References d, and data().

Member Data Documentation

void* SALOME_CustomEvent::d
private

The documentation for this class was generated from the following files: