summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-19 12:50:53 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-19 12:50:53 -0500
commit851d4c9bea54059b375cc6b90b08887bc2ed3e25 (patch)
tree0f39f5dd776c5fee9eee62b8e599d5806c43f32b /lib
parent9178fa8161fa97247a4b660e0eaa5c1a763969d6 (diff)
downloadulab-851d4c9bea54059b375cc6b90b08887bc2ed3e25.tar.gz
ulab-851d4c9bea54059b375cc6b90b08887bc2ed3e25.zip
Add administration console
Diffstat (limited to 'lib')
-rw-r--r--lib/libtqtrla/src/tqtrla.cpp92
-rw-r--r--lib/libtqtrla/src/tqtrla.h49
2 files changed, 141 insertions, 0 deletions
diff --git a/lib/libtqtrla/src/tqtrla.cpp b/lib/libtqtrla/src/tqtrla.cpp
index 34b78d0..4434a3d 100644
--- a/lib/libtqtrla/src/tqtrla.cpp
+++ b/lib/libtqtrla/src/tqtrla.cpp
@@ -504,5 +504,97 @@ TQDataStream &operator>>( TQDataStream &s, SensorType &st )
s >> st.nominalinterval;
return s;
}
+
+/*!
+ \relates TerminalServiceStatusType
+
+ Writes the TerminalServiceStatusType \a str to the stream \a s.
+
+ See also \link datastreamformat.html Format of the TQDataStream operators \endlink
+*/
+
+TQDataStream &operator<<( TQDataStream &s, const TerminalServiceStatusType &st )
+{
+ s << st.protocolVersion;
+ s << st.sessionID;
+ s << st.username;
+ s << st.serverName;
+ s << st.serverPID;
+ s << st.wmPID;
+ s << st.state;
+ s << st.display;
+ s << st.loginStamp;
+ s << st.activityStamp;
+ return s;
+}
+
+/*!
+ \relates SensorType
+
+ Reads a SensorType from the stream \a s into SensorType \a str.
+
+ See also \link datastreamformat.html Format of the TQDataStream operators \endlink
+*/
+
+TQDataStream &operator>>( TQDataStream &s, TerminalServiceStatusType &st )
+{
+ s >> st.protocolVersion;
+ s >> st.sessionID;
+ s >> st.username;
+ s >> st.serverName;
+ s >> st.serverPID;
+ s >> st.wmPID;
+ s >> st.state;
+ s >> st.display;
+ s >> st.loginStamp;
+ s >> st.activityStamp;
+ return s;
+}
+
+/*!
+ \relates WorkspaceServiceStatusType
+
+ Writes the WorkspaceServiceStatusType \a str to the stream \a s.
+
+ See also \link datastreamformat.html Format of the TQDataStream operators \endlink
+*/
+
+TQDataStream &operator<<( TQDataStream &s, const WorkspaceServiceStatusType &st )
+{
+ s << st.protocolVersion;
+ s << st.sessionID;
+ s << st.stationID;
+ s << st.username;
+ s << st.realmname;
+ s << st.serverID;
+ s << st.serviceID;
+ s << st.stationName;
+ s << st.loginStamp;
+ s << st.terminateStamp;
+ return s;
+}
+
+/*!
+ \relates SensorType
+
+ Reads a SensorType from the stream \a s into SensorType \a str.
+
+ See also \link datastreamformat.html Format of the TQDataStream operators \endlink
+*/
+
+TQDataStream &operator>>( TQDataStream &s, WorkspaceServiceStatusType &st )
+{
+ s >> st.protocolVersion;
+ s >> st.sessionID;
+ s >> st.stationID;
+ s >> st.username;
+ s >> st.realmname;
+ s >> st.serverID;
+ s >> st.serviceID;
+ s >> st.stationName;
+ s >> st.loginStamp;
+ s >> st.terminateStamp;
+ return s;
+}
#endif // QT_NO_DATASTREAM
diff --git a/lib/libtqtrla/src/tqtrla.h b/lib/libtqtrla/src/tqtrla.h
index ad6eef2..64a8ef5 100644
--- a/lib/libtqtrla/src/tqtrla.h
+++ b/lib/libtqtrla/src/tqtrla.h
@@ -24,6 +24,7 @@
#include <tqobject.h>
#include <tqptrlist.h>
#include <tqtimer.h>
+#include <tqdatetime.h>
#include <kaction.h>
@@ -190,4 +191,52 @@ typedef TQValueList<SensorType> SensorList;
// =============================================================================
+class TerminalServiceStatusType
+{
+ public:
+ TQ_UINT32 protocolVersion;
+ TQ_INT32 sessionID;
+ TQString username;
+ TQString serverName;
+ TQ_INT32 serverPID;
+ TQ_INT32 wmPID;
+ TQ_INT32 state;
+ TQ_INT32 display;
+ TQDateTime loginStamp;
+ TQDateTime activityStamp;
+};
+
+#ifndef QT_NO_DATASTREAM
+Q_EXPORT TQDataStream &operator<<(TQDataStream &, const TerminalServiceStatusType &);
+Q_EXPORT TQDataStream &operator>>(TQDataStream &, TerminalServiceStatusType &);
+#endif
+
+typedef TQValueList<TerminalServiceStatusType> TerminalServiceStatusList;
+
+// =============================================================================
+
+class WorkspaceServiceStatusType
+{
+ public:
+ TQ_UINT32 protocolVersion;
+ TQ_INT32 sessionID;
+ TQ_INT32 stationID;
+ TQString username;
+ TQString realmname;
+ TQ_INT32 serverID;
+ TQ_INT32 serviceID;
+ TQString stationName;
+ TQDateTime loginStamp;
+ TQDateTime terminateStamp;
+};
+
+#ifndef QT_NO_DATASTREAM
+Q_EXPORT TQDataStream &operator<<(TQDataStream &, const WorkspaceServiceStatusType &);
+Q_EXPORT TQDataStream &operator>>(TQDataStream &, WorkspaceServiceStatusType &);
+#endif
+
+typedef TQValueList<WorkspaceServiceStatusType> WorkspaceServiceStatusList;
+
+// =============================================================================
+
#endif // TQTRLA_H \ No newline at end of file