diff options
Diffstat (limited to 'lib/libtqtrla/src/tqtrla.cpp')
-rw-r--r-- | lib/libtqtrla/src/tqtrla.cpp | 92 |
1 files changed, 92 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 |