Hi all,

I am working on a project that uses services framework introduced in qt
mobility. I have a requirement wherein only few service clients with a
specific "permission" or "capability" can access my service. I see two
classes namely QServiceContext and QAbstractSecuritySession that are passed
in
QServicePluginInterface::createInstance(). I think i need to use the
mentioned classes to filter which clients my service should serve. One
possible solution I thought is using QServiceContext as follows (It may be a
dumb approach, plz correct me)
- Service and Clients share a unique identification key and clients fill it
in QServiceContext::setClientId() ans Service verifies it in createInstance
and serves if the key matches with the shared key.

Another way is to mention <capabilities> in service description xml and use
QAbstractSecuritySession. But none of the examples provided with QtMobility
1.0 or sdk docs describes how to use QAbstarctSecuritySession. It will be
really useful if a complete description of QAbstractSecuritySession usage
with a example.

- Srikanth
_______________________________________________
Qt-mobility-feedback mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-mobility-feedback

Reply via email to