summaryrefslogtreecommitdiffstats
path: root/src/serviceframework/qserviceinterfacedescriptor.cpp
diff options
context:
space:
mode:
authorAndrew Stanley-Jones <andrew.stanley-jones@nokia.com>2012-02-09 18:45:30 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-10 09:49:40 +0100
commit614cb22800c010e56fd0fb56ead0ebef355d6d4c (patch)
treec7fd6c81d8c848bd651b883dbdb50bfe9091d0d3 /src/serviceframework/qserviceinterfacedescriptor.cpp
parent3ec7a5bc7e4b24c67f461331372a74b626e753ba (diff)
Change service framework auto start code
Change-Id: I6246a4cbd50cc7b7f7e33a01ac76072e12cce9f5 Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'src/serviceframework/qserviceinterfacedescriptor.cpp')
-rw-r--r--src/serviceframework/qserviceinterfacedescriptor.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/serviceframework/qserviceinterfacedescriptor.cpp b/src/serviceframework/qserviceinterfacedescriptor.cpp
index a8f9968d..05bf2484 100644
--- a/src/serviceframework/qserviceinterfacedescriptor.cpp
+++ b/src/serviceframework/qserviceinterfacedescriptor.cpp
@@ -136,6 +136,22 @@ QServiceInterfaceDescriptor::QServiceInterfaceDescriptor(const QServiceInterface
}
/*!
+ Create a minimum QServiceInterfaceDescriptor from a hard coded serivce. Useful
+ if no database/metadata storage is available. Different platforms may have different
+ requirements
+*/
+QServiceInterfaceDescriptor::QServiceInterfaceDescriptor(const QVariantMap &map)
+{
+ d = new QServiceInterfaceDescriptorPrivate;
+ d->interfaceName = map.value(QLatin1Literal("interfaceName")).toString();
+ d->serviceName = map.value(QLatin1Literal("serviceName")).toString();
+ d->major = map.value(QLatin1Literal("major")).toInt();
+ d->minor = map.value(QLatin1Literal("minor")).toInt();
+ d->attributes[QServiceInterfaceDescriptor::Location] = map.value(QLatin1Literal("Location")).toString();
+ d->attributes[QServiceInterfaceDescriptor::ServiceType] = map.value(QLatin1Literal("ServiceType")).toString();
+}
+
+/*!
\fn QServiceInterfaceDescriptor& QServiceInterfaceDescriptor::operator=(const QServiceInterfaceDescriptor& other)
Copies the content of the QServiceInterfaceDescriptor object contained