summaryrefslogtreecommitdiffstats
path: root/lib/libtqtrla/src/tqtrla.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libtqtrla/src/tqtrla.cpp')
-rw-r--r--lib/libtqtrla/src/tqtrla.cpp144
1 files changed, 138 insertions, 6 deletions
diff --git a/lib/libtqtrla/src/tqtrla.cpp b/lib/libtqtrla/src/tqtrla.cpp
index 4434a3d..50cb025 100644
--- a/lib/libtqtrla/src/tqtrla.cpp
+++ b/lib/libtqtrla/src/tqtrla.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2012 by Timothy Pearson *
+ * Copyright (C) 2012-2013 by Timothy Pearson *
* kb9vqf@pearsoncomputing.net *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -463,6 +463,29 @@ TQDataStream &operator>>( TQDataStream &s, StationType &st )
return s;
}
+StationList::StationList() : TQValueList<StationType>() {
+ //
+}
+
+StationList::~StationList() {
+ //
+}
+
+/*!
+ \relates StationType
+
+ Finds a StationType with ID \a id in this list.
+*/
+StationList::iterator StationList::findByID(TQ_UINT32 id) {
+ StationList::iterator it;
+ for (it = begin(); it != end(); ++it) {
+ if ((*it).id == id) {
+ break;
+ }
+ }
+ return it;
+}
+
/*!
\relates SensorType
@@ -508,7 +531,7 @@ TQDataStream &operator>>( TQDataStream &s, SensorType &st )
/*!
\relates TerminalServiceStatusType
- Writes the TerminalServiceStatusType \a str to the stream \a s.
+ Writes the TerminalServiceStatusType \a st to the stream \a s.
See also \link datastreamformat.html Format of the TQDataStream operators \endlink
*/
@@ -531,7 +554,7 @@ TQDataStream &operator<<( TQDataStream &s, const TerminalServiceStatusType &st )
/*!
\relates SensorType
- Reads a SensorType from the stream \a s into SensorType \a str.
+ Reads a TerminalServiceStatusType from the stream \a s into TerminalServiceStatusType \a st.
See also \link datastreamformat.html Format of the TQDataStream operators \endlink
*/
@@ -554,7 +577,7 @@ TQDataStream &operator>>( TQDataStream &s, TerminalServiceStatusType &st )
/*!
\relates WorkspaceServiceStatusType
- Writes the WorkspaceServiceStatusType \a str to the stream \a s.
+ Writes the WorkspaceServiceStatusType \a st to the stream \a s.
See also \link datastreamformat.html Format of the TQDataStream operators \endlink
*/
@@ -575,9 +598,9 @@ TQDataStream &operator<<( TQDataStream &s, const WorkspaceServiceStatusType &st
}
/*!
- \relates SensorType
+ \relates WorkspaceServiceStatusType
- Reads a SensorType from the stream \a s into SensorType \a str.
+ Reads a WorkspaceServiceStatusType from the stream \a s into WorkspaceServiceStatusType \a st.
See also \link datastreamformat.html Format of the TQDataStream operators \endlink
*/
@@ -596,5 +619,114 @@ TQDataStream &operator>>( TQDataStream &s, WorkspaceServiceStatusType &st )
s >> st.terminateStamp;
return s;
}
+
+/*!
+ \relates TerminalServiceAuthGroupType
+
+ Writes the TerminalServiceAuthGroupType \a agt to the stream \a s.
+
+ See also \link datastreamformat.html Format of the TQDataStream operators \endlink
+*/
+
+TQDataStream &operator<<( TQDataStream &s, const TerminalServiceAuthGroupType &agt )
+{
+ s << agt.protocolVersion;
+ s << agt.groupName;
+ s << agt.allowedServerNames;
+ return s;
+}
+
+/*!
+ \relates TerminalServiceAuthGroupType
+
+ Reads a TerminalServiceAuthGroupType from the stream \a s into TerminalServiceAuthGroupType \a agt.
+
+ See also \link datastreamformat.html Format of the TQDataStream operators \endlink
+*/
+
+TQDataStream &operator>>( TQDataStream &s, TerminalServiceAuthGroupType &agt )
+{
+ s >> agt.protocolVersion;
+ s >> agt.groupName;
+ s >> agt.allowedServerNames;
+ return s;
+}
+
+/*!
+ \relates WorkspaceServiceAuthGroupType
+
+ Writes the WorkspaceServiceAuthGroupType \a agt to the stream \a s.
+
+ See also \link datastreamformat.html Format of the TQDataStream operators \endlink
+*/
+
+TQDataStream &operator<<( TQDataStream &s, const WorkspaceServiceAuthGroupType &agt )
+{
+ s << agt.protocolVersion;
+ s << agt.groupName;
+ s << agt.allowedStationIDs;
+ return s;
+}
+
+/*!
+ \relates WorkspaceServiceAuthGroupType
+
+ Reads a WorkspaceServiceAuthGroupType from the stream \a s into WorkspaceServiceAuthGroupType \a agt.
+
+ See also \link datastreamformat.html Format of the TQDataStream operators \endlink
+*/
+
+TQDataStream &operator>>( TQDataStream &s, WorkspaceServiceAuthGroupType &agt )
+{
+ s >> agt.protocolVersion;
+ s >> agt.groupName;
+ s >> agt.allowedStationIDs;
+ return s;
+}
#endif // QT_NO_DATASTREAM
+TerminalServiceAuthGroupList::TerminalServiceAuthGroupList() : TQValueList<TerminalServiceAuthGroupType>() {
+ //
+}
+
+TerminalServiceAuthGroupList::~TerminalServiceAuthGroupList() {
+ //
+}
+
+/*!
+ \relates WorkspaceServiceAuthGroupType
+
+ Finds a WorkspaceServiceAuthGroupType with group name \a name in this list.
+*/
+TerminalServiceAuthGroupList::iterator TerminalServiceAuthGroupList::findByName(TQString name) {
+ TerminalServiceAuthGroupList::iterator it;
+ for (it = begin(); it != end(); ++it) {
+ if ((*it).groupName == name) {
+ break;
+ }
+ }
+ return it;
+}
+
+WorkspaceServiceAuthGroupList::WorkspaceServiceAuthGroupList() : TQValueList<WorkspaceServiceAuthGroupType>() {
+ //
+}
+
+WorkspaceServiceAuthGroupList::~WorkspaceServiceAuthGroupList() {
+ //
+}
+
+/*!
+ \relates WorkspaceServiceAuthGroupType
+
+ Finds a WorkspaceServiceAuthGroupType with group name \a name in this list.
+*/
+WorkspaceServiceAuthGroupList::iterator WorkspaceServiceAuthGroupList::findByName(TQString name) {
+ WorkspaceServiceAuthGroupList::iterator it;
+ for (it = begin(); it != end(); ++it) {
+ if ((*it).groupName == name) {
+ break;
+ }
+ }
+ return it;
+} \ No newline at end of file