// Author: Valeri Fine 25/03/2004 #ifndef ROOT_TQtEventQueue #define ROOT_TQtEventQueue // @(#)root/qt:$Id$ // Author: Valeri Fine 25/03/2004 /************************************************************************* * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. * * Copyright (C) 2004 by Valeri Fine. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #include "GuiTypes.h" #include ///////////////////////////////////////////////////////////////////////////////// // // TQtEventQueue is a queue container of the pointers of Event_t structures // created by TQtClientFilter class // If auto-deleting is turned on, all the items in a collection are deleted when // the collection itself is deleted. // (for the full list of the members see: // http://doc.trolltech.com/3.3/qptrlist.html) // ///////////////////////////////////////////////////////////////////////////////// class TQtEventQueue : public QQueue { public: TQtEventQueue(); TQtEventQueue(const TQtEventQueue &src): QQueue(src) {;} virtual ~TQtEventQueue(); void enqueue(const Event_t *); const Event_t *dequeue(); int RemoveItems(const Event_t *ev); protected: }; //______________________________________________________________________________ inline void TQtEventQueue::enqueue(const Event_t *ev) { QQueue::enqueue(ev); } //______________________________________________________________________________ inline const Event_t *TQtEventQueue::dequeue() { return isEmpty() ? 0 : QQueue::dequeue(); } #endif