|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * |
|
5 * This program is free software: you can redistribute it and/or modify |
|
6 * it under the terms of the GNU Lesser General Public License as published by |
|
7 * the Free Software Foundation, version 2.1 of the License. |
|
8 * |
|
9 * This program is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 * GNU Lesser General Public License for more details. |
|
13 * |
|
14 * You should have received a copy of the GNU Lesser General Public License |
|
15 * along with this program. If not, |
|
16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". |
|
17 * |
|
18 * Description: |
|
19 * |
|
20 */ |
|
21 |
|
22 #ifndef XQSERVICEMANAGER_H |
|
23 #define XQSERVICEMANAGER_H |
|
24 |
|
25 #include <xqserviceglobal.h> |
|
26 #include <xqaiwinterfacedescriptor.h> |
|
27 #include <QString> |
|
28 #include <QList> |
|
29 |
|
30 class XQServiceManagerPrivate; |
|
31 |
|
32 class XQSERVICEUTIL_EXPORT XQServiceManager : public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 public: |
|
36 XQServiceManager() ; |
|
37 virtual ~XQServiceManager() ; |
|
38 |
|
39 int startServer(const QString& service, bool embedded, int& applicationUid, quint64& processId); |
|
40 QList<XQAiwInterfaceDescriptor> findInterfaces ( const QString &interfaceName ) const; |
|
41 QList<XQAiwInterfaceDescriptor> findInterfaces ( const QString &serviceName, const QString &interfaceName ) const; |
|
42 QList<XQAiwInterfaceDescriptor> findFirstInterface ( const QString &interfaceName ) const; |
|
43 QList<XQAiwInterfaceDescriptor> findFirstInterface ( const QString &serviceName, const QString &interfaceName ) const; |
|
44 |
|
45 // Extended starter to allow passing XQAiwInterfaceDescriptor as user data |
|
46 // The user data has been attached by the XQServiceRequest |
|
47 int startServer(const QString& service, bool embedded, int& applicationUid, quint64& processId, |
|
48 const void *userData); |
|
49 |
|
50 int latestError() const; |
|
51 bool isRunning(const XQAiwInterfaceDescriptor& implementation) const; |
|
52 |
|
53 private: |
|
54 |
|
55 private: |
|
56 XQServiceManagerPrivate* d; |
|
57 }; |
|
58 |
|
59 #endif |