ROOT logo
// @(#)root/qt:$Id: TQtTimer.h 28205 2009-04-14 19:38:00Z brun $
// Author: Valery Fine  09/08/2004

/*************************************************************************
 * 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_TQtTimer
#define ROOT_TQtTimer

#include "Rtypes.h"

#ifndef __CINT__
#  include <QTimer>
#else
  class QTimer;
#endif

//
// TQtTimer is a singelton QTimer to awake the ROOT event loop from Qt event loop
//

//___________________________________________________________________
class  TQtTimer : public QTimer  {
#ifndef __CINT__    
     Q_OBJECT
#endif
private:
	 void operator=(const TQtTimer &);
    TQtTimer(const TQtTimer &);
protected:
  static TQtTimer *fgQTimer;
  int fCounter;     
  TQtTimer (QObject *mother=0): QTimer(mother),fCounter(0)
  {}

protected slots:
  virtual void AwakeRootEvent();
 
public:
  virtual ~TQtTimer(){}
  static TQtTimer *Create(QObject *parent=0);
  static TQtTimer *QtTimer();
  ClassDef(TQtTimer,0) // QTimer to awake the ROOT event loop from Qt event loop
};
inline TQtTimer *TQtTimer::QtTimer(){ return fgQTimer; }


#endif
 TQtTimer.h:1
 TQtTimer.h:2
 TQtTimer.h:3
 TQtTimer.h:4
 TQtTimer.h:5
 TQtTimer.h:6
 TQtTimer.h:7
 TQtTimer.h:8
 TQtTimer.h:9
 TQtTimer.h:10
 TQtTimer.h:11
 TQtTimer.h:12
 TQtTimer.h:13
 TQtTimer.h:14
 TQtTimer.h:15
 TQtTimer.h:16
 TQtTimer.h:17
 TQtTimer.h:18
 TQtTimer.h:19
 TQtTimer.h:20
 TQtTimer.h:21
 TQtTimer.h:22
 TQtTimer.h:23
 TQtTimer.h:24
 TQtTimer.h:25
 TQtTimer.h:26
 TQtTimer.h:27
 TQtTimer.h:28
 TQtTimer.h:29
 TQtTimer.h:30
 TQtTimer.h:31
 TQtTimer.h:32
 TQtTimer.h:33
 TQtTimer.h:34
 TQtTimer.h:35
 TQtTimer.h:36
 TQtTimer.h:37
 TQtTimer.h:38
 TQtTimer.h:39
 TQtTimer.h:40
 TQtTimer.h:41
 TQtTimer.h:42
 TQtTimer.h:43
 TQtTimer.h:44
 TQtTimer.h:45
 TQtTimer.h:46
 TQtTimer.h:47
 TQtTimer.h:48
 TQtTimer.h:49
 TQtTimer.h:50
 TQtTimer.h:51
 TQtTimer.h:52
 TQtTimer.h:53
 TQtTimer.h:54