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 XQSERVICEUTIL_H |
|
23 #define XQSERVICEUTIL_H |
|
24 |
|
25 #include <xqserviceglobal.h> |
|
26 |
|
27 /*! |
|
28 \brief Provides static utility functions for service provider (used also by QtHighway impl.) |
|
29 */ |
|
30 namespace XQServiceUtil |
|
31 { |
|
32 // Utility to set started application to background |
|
33 XQSERVICEUTIL_EXPORT void toBackground(bool value); |
|
34 |
|
35 // Utilities to extract startup command line arguments |
|
36 XQSERVICEUTIL_EXPORT bool isEmbedded(); // |
|
37 XQSERVICEUTIL_EXPORT bool isService(); |
|
38 XQSERVICEUTIL_EXPORT QString interfaceName(); |
|
39 XQSERVICEUTIL_EXPORT QString operationName(); |
|
40 XQSERVICEUTIL_EXPORT bool isEmbedded(int argc, char **argv); |
|
41 XQSERVICEUTIL_EXPORT bool isService(int argc, char **argv); |
|
42 XQSERVICEUTIL_EXPORT QString interfaceName(int argc, char **argv); |
|
43 XQSERVICEUTIL_EXPORT QString operationName(int argc, char **argv); |
|
44 XQSERVICEUTIL_EXPORT QString serviceName(); |
|
45 XQSERVICEUTIL_EXPORT QString serviceName(int argc, char **argv); |
|
46 } |
|
47 |
|
48 #endif |
|