Back to index

salome-gui  6.5.0
Classes | Defines | Functions
SALOME_Event.h File Reference
#include "Event.h"
#include <QEvent>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

protocol  EVENT_EXPORT
 Event filter class for QApplication object that handles custom events posted by SALOME_Event objects. More...
protocol  EVENT_EXPORT
 Event filter class for QApplication object that handles custom events posted by SALOME_Event objects. More...
class  TMemFunEvent< TObject, TRes >
 Template class for event which calls the function without arguments and returning result. More...
class  TVoidMemFunEvent< TObject >
 Template class for event which calls the function without arguments and without return value. More...
class  TMemFun1ArgEvent< TObject, TRes, TArg, TStoreArg >
 Template class for event which calls the function with one argument and returning result. More...
class  TVoidMemFun1ArgEvent< TObject, TArg, TStoreArg >
 Template class for event which calls the function with one argument and without return value. More...
class  TMemFun2ArgEvent< TObject, TRes, TArg, TArg1, TStoreArg, TStoreArg1 >
 Template class for event which calls the function with two arguments and returning result. More...
class  TVoidMemFun2ArgEvent< TObject, TArg, TArg1, TStoreArg, TStoreArg1 >
 Template class for event which calls the function with two arguments and without return value. More...

Defines

#define SALOME_EVENT   QEvent::Type( QEvent::User + 10000 )
 SALOME custom event type.

Functions

template<class TEvent >
TEvent::TResult ProcessEvent (TEvent *theEvent)
void ProcessVoidEvent (SALOME_Event *theEvent)

Define Documentation

#define SALOME_EVENT   QEvent::Type( QEvent::User + 10000 )

SALOME custom event type.

Definition at line 32 of file SALOME_Event.h.


Function Documentation

template<class TEvent >
TEvent::TResult ProcessEvent ( TEvent *  theEvent) [inline]

Definition at line 200 of file SALOME_Event.h.

{
  typename TEvent::TResult aResult;
  if(SALOME_Event::IsSessionThread()) {
    theEvent->Execute();
    aResult = theEvent->myResult;
  }
  else {
    theEvent->process();
    aResult = theEvent->myResult;
  }
  delete theEvent;
  return aResult;
}
void ProcessVoidEvent ( SALOME_Event theEvent) [inline]

Definition at line 215 of file SALOME_Event.h.

{
  if(SALOME_Event::IsSessionThread()) {
    theEvent->Execute();
  }
  else {
    theEvent->process();
  }
  delete theEvent;
}