summaryrefslogtreecommitdiffstats
path: root/src/serviceframework/ipc/qremoteserviceregister_p.cpp
diff options
context:
space:
mode:
authorAndrew Stanley-Jones <andrew.stanley-jones@nokia.com>2012-02-13 10:21:32 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-21 08:25:26 +0100
commit3b72d80b4c119c3cbefaca0051d31bdb05c4c33a (patch)
tree306cbce89b6f564ed3a6b58d3fbbcc8302e54203 /src/serviceframework/ipc/qremoteserviceregister_p.cpp
parent682f2baf2159927ac37621d7ef015361f3fcbaf4 (diff)
Qt5 Service Framework security API
Updates to Service Framework security credentials API to allow for better checking of clients connecting to service objects. Credentials can now be checked on creation of the service object, or by a Q_INVOKABLE function in global objects. Change-Id: I3095fd9fa410f8a42824a0604e44d79f0cecaf49 Reviewed-by: Alex <alex.blasche@nokia.com>
Diffstat (limited to 'src/serviceframework/ipc/qremoteserviceregister_p.cpp')
-rw-r--r--src/serviceframework/ipc/qremoteserviceregister_p.cpp47
1 files changed, 46 insertions, 1 deletions
diff --git a/src/serviceframework/ipc/qremoteserviceregister_p.cpp b/src/serviceframework/ipc/qremoteserviceregister_p.cpp
index a72ead59..5d80ed26 100644
--- a/src/serviceframework/ipc/qremoteserviceregister_p.cpp
+++ b/src/serviceframework/ipc/qremoteserviceregister_p.cpp
@@ -47,7 +47,10 @@
QT_BEGIN_NAMESPACE
QRemoteServiceRegisterPrivate::QRemoteServiceRegisterPrivate(QObject* parent)
- : QObject(parent), iFilter(0)
+ : QObject(parent), iFilter(0),
+ securityOptions(QRemoteServiceRegister::NoOptions),
+ userIdentifier(0), userIdentifierSet(false),
+ groupIdentifier(0), groupIdentifierSet(false)
{
setQuitOnLastInstanceClosed(true);
}
@@ -90,11 +93,53 @@ QRemoteServiceRegister::SecurityFilter QRemoteServiceRegisterPrivate::setSecurit
return f;
}
+void QRemoteServiceRegisterPrivate::setSecurityOptions(QRemoteServiceRegister::SecurityAccessOptions options)
+{
+ securityOptions = options;
+}
+
QRemoteServiceRegister::SecurityFilter QRemoteServiceRegisterPrivate::getSecurityFilter()
{
return iFilter;
}
+QRemoteServiceRegister::SecurityAccessOptions QRemoteServiceRegisterPrivate::getSecurityOptions() const
+{
+ return securityOptions;
+}
+
+void QRemoteServiceRegisterPrivate::setBaseUserIdentifier(qintptr uid)
+{
+ userIdentifier = uid;
+ userIdentifierSet = true;
+}
+
+qintptr QRemoteServiceRegisterPrivate::getBaseUserIdentifier() const
+{
+ return userIdentifier;
+}
+
+bool QRemoteServiceRegisterPrivate::isBaseUserIdentifierSet() const
+{
+ return userIdentifierSet;
+}
+
+void QRemoteServiceRegisterPrivate::setBaseGroupIdentifier(qintptr gid)
+{
+ groupIdentifier = gid;
+ groupIdentifierSet = true;
+}
+
+qintptr QRemoteServiceRegisterPrivate::getBaseGroupIdentifier() const
+{
+ return groupIdentifier;
+}
+
+bool QRemoteServiceRegisterPrivate::isBaseGroupIdentifierSet() const
+{
+ return groupIdentifierSet;
+}
+
#include "moc_qremoteserviceregister_p.cpp"
QT_END_NAMESPACE