![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtCigiConnectionLogic.h,v $ $Revision: 1.14 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtCigiConnectionLogic_H_ 00014 #define DtCigiConnectionLogic_H_ 00015 00016 #include <vrvCigiQt/vrvCigiQt.h> 00017 #include <boost/signals/trackable.hpp> 00018 00019 #include <string> 00020 00021 #include <QtCore/QStringList> 00022 00023 namespace makVrv 00024 { 00025 00026 class DtCigiConnectionInterface; 00027 class DtCigiDriver; 00028 class DtDriver; 00029 class DtCigiConnectionInitializer; 00030 00033 class DT_DLL_VRVCIGIQT DtCigiConnectionLogic 00034 { 00035 public: 00036 00038 DtCigiConnectionLogic(DtDe& de, DtCigiConnectionInterface* CigiInterface); 00039 00041 virtual ~DtCigiConnectionLogic(); 00042 00044 virtual void updateCurrentDriver(); 00045 00046 protected: 00047 virtual std::string className() const; 00048 00049 protected: 00050 00051 virtual void populateDeviceAddresses(); 00052 00053 DtCigiDriver* findCurrentDriver(const std::string& name); 00054 00055 void on_currentConnectionChanged(const std::string& connectionName); 00056 00057 void on_connect(); 00058 void on_disconnect(); 00059 00060 void on_cigiVersionChanged(const std::string& sStr); 00061 void on_entityMappingNameChanged(const std::string& str); 00062 void on_hostIpChanged(const std::string& sStr); 00063 void on_devAddrChanged(const std::string& sStr); 00064 void on_incomingBufferSizeChanged(unsigned value); 00065 void on_listenPortChanged(unsigned value); 00066 void on_numIncomingBuffersChanged(unsigned value); 00067 void on_numOutgoingBuffersChanged(unsigned value); 00068 void on_outgoingBufferSizeChanged(unsigned value); 00069 void on_packetBufferSizeChanged(unsigned value); 00070 void on_sendPortChanged(unsigned value); 00071 void on_driverModeChanged(const std::string& mode); 00072 void on_transportTypeChanged(int value); 00073 void on_driverFrequencyChanged(unsigned int value); 00074 00075 void on_makeAutoConnect(); 00076 00077 void on_driverStarted(DtDriver& simCon); 00078 void on_driverStopped(DtDriver& simCon); 00079 void on_autoDriverChanged(const std::string& con); 00080 00081 protected: 00082 DtDe& myDe; 00083 DtCigiConnectionInterface& myCigiConnectionInterface; 00084 DtCigiDriver* myCurrentDriver; 00085 DtCigiConnectionInitializer *myInitializer; 00086 QStringList myModelDefinitions; 00087 }; 00088 } 00089 00090 #endif 00091