![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2007 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtConnectedSlavesLogic.h,v $ $Revision: 1.11 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtConnectedSlavesLogic_H_ 00014 #define DtConnectedSlavesLogic_H_ 00015 00016 #include <vrvCoreQt/vrvCoreQt.h> 00017 #include <vrvCore/DtSubjectObserver.h> 00018 00019 namespace makVrv 00020 { 00021 00022 class DtDe; 00023 class DtDeCommunicator; 00024 class DtConnectedSlavesInterface; 00025 00028 class DT_DLL_VRVCOREQT DtConnectedSlavesLogic : public DtDeCommunicatorObserver 00029 { 00030 00031 public: 00032 00035 static DtConnectedSlavesLogic* create(DtDe& de, DtConnectedSlavesInterface* csInterface); 00036 00037 virtual ~DtConnectedSlavesLogic(); 00038 00040 virtual void slot_activate(DtDeCommunicator* comm); 00041 00043 virtual void slot_deactivate(DtDeCommunicator* comm); 00044 00046 virtual void slot_addClient(const DtDeRecord& clientName); 00047 00049 virtual void slot_removeClient(const std::string& clientName); 00050 00052 virtual void updateClientList(); 00053 00054 protected: 00055 00057 DtConnectedSlavesLogic(DtDe& de, DtConnectedSlavesInterface* csInterface); 00058 00059 protected: 00060 DtDe& myDe; 00061 DtConnectedSlavesInterface* myInterface; 00062 }; 00063 } 00064 00065 #endif 00066