// @(#)root/qt:$Name: $:$Id: TQtEvent.h,v 1.2 2004/07/28 00:12:40 rdm Exp $ // Author: Valeri Fine 21/01/2002 /************************************************************************* * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. * * Copyright (C) 2002 by Valeri Fine. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_TQtEvent #define ROOT_TQtEvent #include "qevent.h" #include "TVirtualX.h" class TQtObject; class TWaitCondition; class TQtEvent : public QCustomEvent { private: TWaitCondition *fCondition; void **fResult; // QApplication owns QEvent and will destroy it QObject *fReceiver; QEvent *fThatEvent; public: TQtEvent(int code); TQtEvent(QObject *o, QEvent *e); virtual ~TQtEvent(){} void SetWait(TWaitCondition &condition,void *&result); void SetWait(TWaitCondition &condition); void SetResult(void *e=0); // QEvent *WaitResult(); too dangerous bool Notify(); virtual void ExecuteCB(){;} }; #endif