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

GWEInterface.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 
00026 #ifndef GWEINTERFACEH
00027 #define GWEINTERFACEH
00028 
00029 #include <GElement.h>
00030 #include <GElementID.h>
00031 #include <GElementInfluence.h>
00032 #include <GVector3.h>
00033 
00034 #include <qobject.h>
00035 #include <qvaluelist.h>
00036 
00037 namespace GWE
00038 {
00039 
00059 class GWEInterface : public QObject
00060 {
00061   Q_OBJECT
00062   public:
00063   
00064   
00065   // ELEMENT MANAGEMENT //
00066   
00071     virtual ~GWEInterface() {}
00072   
00081     virtual bool add(GCS::GElement*) = 0;
00082   
00088     virtual const GCS::GElement* read(const GCS::GElementID&) const = 0;
00089     
00098     virtual GCS::GElement* open(const GCS::GElementID&) = 0;
00099     
00106     virtual bool close(GCS::GElement*) = 0;
00107     
00118     virtual bool postDelete(GCS::GElement*) = 0;
00119     
00120     
00121   public slots:
00122         
00123   // INFLUENCE MANAGEMENT //
00124   
00131     virtual void radiateInfluence(GCS::GElementInfluence& influence) = 0;
00132     
00138     virtual void routeInfluence(const GCS::GElementID& destination, GCS::GElementInfluence& influence) = 0;
00139     
00140     
00141   signals:
00142   
00143   // SIGNALS INTERESTING FOR DATA MANAGEMENT (DB,...) //
00144   
00149     void elementOpened(const GCS::GElement* element);
00150     
00155     void elementClosed(const GCS::GElement* element);
00156   
00157 };
00158 
00159 }
00160 
00161 #endif

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