TQtEventQueue.cxx

Go to the documentation of this file.
00001 // @(#)root/qt:$Id: TQtEventQueue.cxx 28149 2009-04-08 07:25:32Z brun $
00002 // Author: Valeri Fine   25/03/2004
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2004, Rene Brun and Fons Rademakers.               *
00006  * Copyright (C) 2004 by Valeri Fine.                                    *
00007  * All rights reserved.                                                  *
00008  *                                                                       *
00009  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00010  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00011  *************************************************************************/
00012 
00013 #include "TQtEventQueue.h"
00014 #include "TQtLock.h"
00015 #include <QApplication>
00016 #include <cassert>
00017 
00018 /////////////////////////////////////////////////////////////////////////////////
00019 //
00020 //  TQtEventQueue is a queue container of the pointers of Event_t structures 
00021 //  created by TQtClientFilter class
00022 //  If auto-deleting is turned on, all the items in a collection are deleted when 
00023 //  the collection itself is deleted.
00024 //  (for the full list of the members see: 
00025 //  http://doc.trolltech.com/3.3/qptrlist.html)
00026 //
00027 /////////////////////////////////////////////////////////////////////////////////
00028 
00029 //______________________________________________________________________________
00030 TQtEventQueue::TQtEventQueue(): QQueue<const Event_t *> ()
00031 {
00032    // Create the ROOT event queue
00033 }
00034 
00035 //______________________________________________________________________________
00036 TQtEventQueue::~TQtEventQueue()
00037 {
00038     // Remove all remaining events if any
00039     qDeleteAll(*this); 
00040 }
00041 
00042 //______________________________________________________________________________
00043 int TQtEventQueue::RemoveItems(const Event_t *ev)
00044 { 
00045    // Removes all items matching ev->fWindow 
00046    // The removed item is deleted if auto-deletion (by default) is enabled
00047    // with class ctor
00048    
00049    // This method is used to debug the application only (by far)
00050    int counter = 0;
00051    assert(0);
00052    if (ev) { }
00053    return counter;
00054 }
00055 

Generated on Tue Jul 5 14:14:36 2011 for ROOT_528-00b_version by  doxygen 1.5.1