From 6d13afadb8cf8ef0788afaa0d7b4229bc48d0c19 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 4 Jul 2012 23:56:48 -0500 Subject: Enable character transmission via Kerberos --- lib/libtqtrla/src/tqtrla.cpp | 8 ++++++++ lib/libtqtrla/src/tqtrla.h | 1 + 2 files changed, 9 insertions(+) (limited to 'lib/libtqtrla') diff --git a/lib/libtqtrla/src/tqtrla.cpp b/lib/libtqtrla/src/tqtrla.cpp index 6320f3e..e8631cc 100644 --- a/lib/libtqtrla/src/tqtrla.cpp +++ b/lib/libtqtrla/src/tqtrla.cpp @@ -100,11 +100,15 @@ bool operator==( const ServiceType &s1, const ServiceType &s2 ) { TQDataStream &operator<<( TQDataStream &s, const ServiceType &st ) { + TQ_INT8 tempchar; + s << st.type; s << st.name; s << st.description; s << st.clientLibrary; s << st.version; + tempchar = (st.singleInstance)?1:0; + s << tempchar; return s; } @@ -118,11 +122,15 @@ TQDataStream &operator<<( TQDataStream &s, const ServiceType &st ) TQDataStream &operator>>( TQDataStream &s, ServiceType &st ) { + TQ_INT8 tempchar; + s >> st.type; s >> st.name; s >> st.description; s >> st.clientLibrary; s >> st.version; + s >> tempchar; + st.singleInstance = (tempchar != 0); return s; } diff --git a/lib/libtqtrla/src/tqtrla.h b/lib/libtqtrla/src/tqtrla.h index a31131a..3b8ccd7 100644 --- a/lib/libtqtrla/src/tqtrla.h +++ b/lib/libtqtrla/src/tqtrla.h @@ -76,6 +76,7 @@ class ServiceType TQString description; TQString clientLibrary; int version; + bool singleInstance; }; #ifndef QT_NO_DATASTREAM -- cgit v1.2.1