|
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 AT_XQAPPLICATIONMANAGER_H |
|
23 #define AT_XQAPPLICATIONMANAGER_H |
|
24 |
|
25 #include <QObject> |
|
26 #include <QStringList> |
|
27 #include <QList> |
|
28 #include <xqappmgr.h> |
|
29 #include <QVariant> |
|
30 |
|
31 class Test_XQApplicationManager: public QObject |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 private slots: |
|
36 |
|
37 void init(); |
|
38 |
|
39 void drm_file(); |
|
40 void drm_sharablefile(); |
|
41 void list_interface(); |
|
42 void list_service_interface(); |
|
43 void list_uri(); |
|
44 void list_file(); |
|
45 void list_sharablefile(); |
|
46 void create_interface(); |
|
47 void create_service_interface(); |
|
48 void create_implementation(); |
|
49 void create_uri(); |
|
50 void create_uri_implementation(); |
|
51 void create_file(); |
|
52 void create_file_implementation(); |
|
53 void create_sharablefile(); |
|
54 void create_sharablefile_implementation(); |
|
55 |
|
56 void cleanup(); |
|
57 |
|
58 void handleOk(const QVariant& ret); |
|
59 void handleError(int err ,const QString& errString); |
|
60 |
|
61 private: |
|
62 void testRequest(XQAiwRequest* request, const QString &operation, |
|
63 const QString &arguments, bool embedded, bool synchronous, XQSharableFile *sharablefile = NULL); |
|
64 |
|
65 private: |
|
66 const QList<int> listDrmAttr(); |
|
67 QStringList mLog; |
|
68 XQApplicationManager *mAppManager; |
|
69 QVariant returnValue; |
|
70 bool mServiceAnswered; |
|
71 XQSharableFile* testSharableFile; |
|
72 }; |
|
73 |
|
74 |
|
75 #endif // AT_XQAPPLICATIONMANAGER_H |