--- a/qthighway/xqserviceutil/src/xqrequestutil.cpp Fri May 14 16:41:33 2010 +0300
+++ b/qthighway/xqserviceutil/src/xqrequestutil.cpp Thu May 27 13:42:11 2010 +0300
@@ -118,3 +118,20 @@
return mappedError;
}
+
+// connectionName=[requesthandle:]channel
+QString XQRequestUtil::channelName(const QString &connectionName)
+{
+ XQSERVICE_DEBUG_PRINT("XQRequestUtil::channelName %s", qPrintable(connectionName));
+ QString ret = connectionName;
+ QStringList l = ret.split(":");
+ if (l.count() > 1)
+ {
+ ret = l.at(1);
+ }
+
+ XQSERVICE_DEBUG_PRINT("XQRequestUtil::channelName ret=%s", qPrintable(ret));
+ return ret;
+
+}
+