Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

InvestigationInterfaceImp.h

00001 /***************************************************************************
00002  *   Copyright (C) 2004 by Raphael Langerhorst                             *
00003  *   raphael-langerhorst@gmx.at                                            *
00004  *                                                                         *
00005  *   Permission is hereby granted, free of charge, to any person obtaining *
00006  *   a copy of this software and associated documentation files (the       *
00007  *   "Software"), to deal in the Software without restriction, including   *
00008  *   without limitation the rights to use, copy, modify, merge, publish,   *
00009  *   distribute, sublicense, and/or sell copies of the Software, and to    *
00010  *   permit persons to whom the Software is furnished to do so, subject to *
00011  *   the following conditions:                                             *
00012  *                                                                         *
00013  *   The above copyright notice and this permission notice shall be        *
00014  *   included in all copies or substantial portions of the Software.       *
00015  *                                                                         *
00016  *   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,       *
00017  *   EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF    *
00018  *   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*
00019  *   IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR     *
00020  *   OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
00021  *   ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
00022  *   OTHER DEALINGS IN THE SOFTWARE.                                       *
00023  ***************************************************************************/
00024 
00025 #ifndef INVESTIGATIONINTERFACEIMPH
00026 #define INVESTIGATIONINTERFACEIMPH
00027 
00028 #include "InvestigationInterface.h"
00029 #include "OpenGLFrame.h"
00030 
00031 #include <GInvestigationAgent.h>
00032 
00033 #include <qdatetime.h>
00034 #include <qtimer.h>
00035 #include <qstringlist.h>
00036 #include <qlistbox.h>
00037 
00038 namespace GCE
00039 {
00040 
00047 class InvestigationInterfaceImp : public InvestigationInterface
00048 {
00049 Q_OBJECT
00050 
00051   protected:
00052   
00053     QTime SensedEnergyAmountTimeElapsed;
00054     
00055     QTimer SenseTimer;
00056   
00057     double ReceivedEnergyAmountSum;
00058       
00059   protected:
00060   
00061     OpenGLFrame* Frame;
00062   
00063     
00064   //these slots only exist in the Imp class, not in InvestigationInterface itself:
00065   protected slots:
00066     virtual void updateData();
00067     virtual void setTargetIDs(const QString& s);
00068     
00069   
00070   public:
00071     InvestigationInterfaceImp(OpenGLFrame* frame, QWidget *parent = 0, const char *name = 0);
00072     
00073   protected slots:
00074     virtual void moveToInternal();
00075     virtual void sendInfluenceInternal();
00076     virtual void radiateInfluenceInternal();
00077     virtual void setSpeedInternal();
00078     virtual void releaseTargetInternal();
00079     
00080   public slots:
00081     virtual void influenceReceived(const GCS::GElementInfluence& influence);
00082     virtual void updateForm(const GCS::GForm& form);
00083     virtual void updateEnergy(const GCS::GEnergy& energy);
00084     virtual void setKnownElementsList(const QStringList& element_list);
00085     
00086 //   signals:
00087 //     virtual void moveTo(unsigned long);
00088 //     virtual void radiateInfluence(double fraction);
00089 //     virtual void sendInfluence(double fraction, unsigned long destID);
00090 };
00091 
00092 }
00093 
00094 #endif

Generated on Thu Oct 21 21:18:03 2004 for G System by doxygen 1.3.6