debugmanager.h

00001 /***************************************************************************
00002  *   Copyright (C) 2005 by David Saxton                                    *
00003  *   david@bluehaze.org                                                    *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  ***************************************************************************/
00010 
00011 #include "config.h"
00012 #ifndef NO_GPSIM
00013 
00014 #ifndef DEBUGMANAGER_H
00015 #define DEBUGMANAGER_H
00016 
00017 #include <qguardedptr.h>
00018 #include <qmap.h>
00019 #include <qobject.h>
00020 
00021 class GpsimProcessor;
00022 class TextDocument;
00023 
00024 typedef QValueList< QGuardedPtr<GpsimProcessor> > GpsimProcessorList;
00025 
00029 class DebugManager : public QObject
00030 {
00031         Q_OBJECT
00032         public:
00033                 static DebugManager * self();
00034                 ~DebugManager();
00035                 
00036                 void registerGpsim( GpsimProcessor * gpsim );
00041                 void urlOpened( TextDocument * td );
00042                 
00043         protected:
00044                 GpsimProcessorList m_processors;
00045                 
00046         private:
00047                 DebugManager();
00048                 static DebugManager * m_pSelf;
00049                 
00050 };
00051 
00052 #endif
00053 
00054 #endif

Generated on Tue May 8 17:05:28 2007 for KTechLab by  doxygen 1.5.1