MAK Data Logger API Documentation for HLA
lgrRemoteDisplayInfo.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 1992-2010 VT MAK
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #ifndef lgrRemoteDisplayInfo_H_
10 #define lgrRemoteDisplayInfo_H_
11 
12 #include "lgrRemoteGui.h"
13 #include <QColor>
14 #include <map>
15 #include <vlutil/vlMachineTypes.h>
16 #include "lcRemoteLoggerConnection.h"
17 #include "remoteControlInterface.h"
18 
19 class DtFilename;
20 namespace MAKLogger
21 {
23  class DtLgrRemoteMainWindow;
24  class DtTimeComponent;
25 
27  {
28  protected:
31  {
32  DtLgrMode lgrState;
33  DtLgrProtocol lgrProtocol;
34  QColor lgrColor;
35  DtEntityIdentifier entityId;
36  DtFilename lgrFile;
37  };
38 
39  public:
42 
44  virtual ~DtLgrRemoteDisplayInfo();
45 
47  static DtLgrRemoteDisplayInfo* instance( DtLgrRemoteMainWindow* window );
48 
50  QColor getColorForId( int id );
51 
53  virtual DtLgrProtocol getProtocolForId( int id );
54 
56  virtual DtLgrMode getStateForId( int id );
57 
59  virtual DtEntityIdentifier getEntityIdentifierForID( int id );
60 
62  virtual DtFilename getFilenameForId( int id );
63 
65  virtual void setColorForId( int id, QColor color );
66 
68  virtual void setProtocolForId( int id, DtLgrProtocol protocol );
69 
71  virtual void setStateForId( int id, DtLgrMode state );
72 
74  virtual void setEntityIdentifierForId( int id, DtEntityIdentifier entityIdentifier );
75 
77  virtual void setFilenameForId( int id, DtFilename filename );
78 
80  virtual void updateDisplayInfo( DtLgrRemoteMainWindow* window );
81 
83  virtual void removeDisconnectedLoggers( DtEntityIdSet& connectedLoggers );
84 
86  virtual void setDefaultColor( int id );
87 
88 
89  protected:
90  std::map<DtU16, DtRemoteDisplayInfo> myDisplayInfoMap;
92  DtRemoteLoggerConnection* myConnection;
96 
97  private:
101  DtLgrRemoteDisplayInfo& operator=(const DtLgrRemoteDisplayInfo& info);
102  };
103 }
104 
105 
106 #endif
107 

Document ID: Generated on Thu Apr 10 18:53:01 EDT 2014 from SVN revision 138105
Copyright © 2005-2012 VT MÄK. All Rights Reserved (www.mak.com)