remoteControlSystemInterface.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2011 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00009 
00010 
00011 #pragma once
00012 
00013 #include "remoteControlDomainInterface.h"
00014 #include "virtualConstructor.h"
00015 
00016 namespace MAKLogger
00017 {
00018 
00021    class DT_DLL_LGRSIM DtRemoteControlSystemInterface : public DtRemoteControlDomainInterface
00022    {
00023    public:
00024 
00025       DT_VIRTUAL_CTR(DtRemoteControlSystemInterface,(DtRemoteControlInterface*))
00026 
00027       
00028       virtual ~DtRemoteControlSystemInterface();
00029 
00030    private:
00032       DtRemoteControlSystemInterface(const DtRemoteControlSystemInterface&);
00034       DtRemoteControlSystemInterface& operator=(const DtRemoteControlSystemInterface&);
00035 
00036    public:
00037 
00039 
00040 
00042       virtual DtSequenceNumber shutdown(
00043          const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
00044 
00047       virtual DtSequenceNumber deleteFile(const DtFilename& filename,
00048          const DtEntityIdentifier& destination=DtRemoteControlInterface::wildcardAddress());
00049 
00051       virtual DtSequenceNumber requestStateUpdate(
00052          const DtEntityIdentifier& id=DtRemoteControlInterface::wildcardAddress());
00053 
00055       virtual DtSequenceNumber requestToggleFlag(
00056          DtLgrCtrlFlagStates flag, const DtEntityIdentifier& id/*=DtRemoteControlInterface::wildcardAddress()*/ );
00057 
00059 
00061       virtual void processResponse(const DtLgrResponsePdu& responsePdu);
00062 
00064       virtual void clearReceivedResponseCounts();
00065 
00066    public:
00067 
00069       static const char* commandToString(int command);
00070 
00072       static void processTotalState(DtLgrTotalStatePdu* totalStatePdu, void* usr);
00073 
00074    protected:
00075 
00077 
00078 
00080       virtual void message(const DtEntityIdentifier& source, const DtString& message);
00081 
00083       virtual void consoleMessage(const DtEntityIdentifier& source, const DtString& message);
00084 
00086       virtual void startLongOperation(const DtEntityIdentifier& source,
00087          const DtString& name, bool interruptable);
00088 
00090       virtual void finishLongOperation(const DtEntityIdentifier& source, bool canceled);
00091 
00093       virtual void fileDelete(const DtEntityIdentifier& source, const DtString& fileName, int deleteResult);
00094 
00096 
00098       virtual void processTotalState(DtLgrTotalStatePdu* totalStatePdu);
00099 
00102       virtual void receivedTotalState();
00103 
00105       virtual void fileDeleted(const DtString& fileName);
00106 
00108       virtual void fileDeletionResult(const DtEntityIdentifier& source, const DtString& fileName, int deleteResult);
00109 
00110    protected:
00111 
00112       bool myPendingFileDelete;
00113       DtString myDeleteFileName;
00114 
00115       int myReceivedTotalState;
00116       int myReceivedFileDelete;
00117 
00118    };
00119 }

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)