00001 /*************************************************************************** 00002 * Copyright (C) 2004 - 2005 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 GWEADVANCEDCONTROLLER_H 00026 #define GWEADVANCEDCONTROLLER_H 00027 00028 #include "GweController.h" 00029 00030 #include <GElementID.h> 00031 00032 #include <QList> 00033 #include <QEvent> 00034 //Added by qt3to4: 00035 #include <QCustomEvent> 00036 00037 00038 namespace GWE 00039 { 00040 00041 class GDataController; 00042 00048 class GweAdvancedController : public GweController 00049 { 00050 Q_OBJECT 00051 00052 private: 00053 00059 QList<GCS::GElementID> ElementsToUpdateInStorage; 00060 00061 public: 00062 00066 GweAdvancedController(GDataController* data, QObject *parent = 0); 00067 00071 virtual ~GweAdvancedController(); 00072 00073 protected: 00074 00083 void run(); 00084 00088 virtual void customEvent(QEvent* event); 00089 00090 protected slots: 00091 00096 virtual void connectBasicElementSignals(const GCS::GElementID& id); 00097 00102 void addElementForWriteBack(const GCS::GElementID& element); 00103 00104 }; 00105 00106 } 00107 00108 #endif //GWEADVANCEDCONTROLLER_H 00109
1.4.7