1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <qglobal.h> |
|
19 #include <xqserviceprovider.h> |
|
20 #include <xqservicerequest.h> |
|
21 #include <xqserviceutil.h> |
|
22 #include "qthighway_stub_helper.h" |
|
23 |
|
24 QString qtHighwayStubService; |
|
25 QString qtHighwayStubMessage; |
|
26 bool qtHighwayStubIsBg; |
|
27 |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 |
|
34 void QtHighwayStubHelper::reset() |
|
35 { |
|
36 qtHighwayStubService.clear(); |
|
37 qtHighwayStubMessage.clear(); |
|
38 qtHighwayStubIsBg = false; |
|
39 } |
|
40 |
|
41 QString QtHighwayStubHelper::service() |
|
42 { |
|
43 return qtHighwayStubService; |
|
44 } |
|
45 |
|
46 QString QtHighwayStubHelper::message() |
|
47 { |
|
48 return qtHighwayStubMessage; |
|
49 } |
|
50 |
|
51 bool QtHighwayStubHelper::isAtBg() |
|
52 { |
|
53 return qtHighwayStubIsBg; |
|
54 } |
|
55 |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 // ----------------------------------------------------------------------------- |
|
59 // |
|
60 XQServiceProvider::XQServiceProvider( const QString& service, QObject *parent ) |
|
61 { |
|
62 Q_UNUSED(service); |
|
63 Q_UNUSED(parent); |
|
64 } |
|
65 |
|
66 XQServiceProvider::~XQServiceProvider() |
|
67 { |
|
68 |
|
69 } |
|
70 |
|
71 void XQServiceProvider::SetPlugin(QObject* impl_plugin) |
|
72 { |
|
73 Q_UNUSED(impl_plugin); |
|
74 } |
|
75 |
|
76 void XQServiceProvider::publishAll() |
|
77 { |
|
78 |
|
79 } |
|
80 |
|
81 int XQServiceProvider::setCurrentRequestAsync() |
|
82 { |
|
83 return 0; |
|
84 } |
|
85 |
|
86 bool XQServiceProvider::completeRequest(int index, const QVariant& retValue) |
|
87 { |
|
88 Q_UNUSED(index); |
|
89 Q_UNUSED(retValue); |
|
90 return true; |
|
91 } |
|
92 |
|
93 |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 // ----------------------------------------------------------------------------- |
|
97 // |
|
98 XQServiceRequest::XQServiceRequest( |
|
99 const QString& service, const QString& message, const bool& synchronous) |
|
100 { |
|
101 qtHighwayStubService = service; |
|
102 qtHighwayStubMessage = message; |
|
103 } |
|
104 |
|
105 XQServiceRequest::~XQServiceRequest() |
|
106 { |
|
107 |
|
108 } |
|
109 |
|
110 |
|
111 void XQServiceRequest::setArguments(const QList<QVariant> &arguments) |
|
112 { |
|
113 Q_UNUSED(arguments) |
|
114 } |
|
115 |
|
116 QString XQServiceRequest::service() const |
|
117 { |
|
118 return qtHighwayStubService; |
|
119 } |
|
120 |
|
121 QString XQServiceRequest::message() const |
|
122 { |
|
123 return qtHighwayStubMessage; |
|
124 } |
|
125 |
|
126 bool XQServiceRequest::send(QVariant& retValue) |
|
127 { |
|
128 Q_UNUSED(retValue); |
|
129 return true; |
|
130 } |
|
131 void XQServiceRequest::addArg(const QVariant& v) |
|
132 { |
|
133 Q_UNUSED(v); |
|
134 } |
|
135 |
|
136 void XQServiceUtil::toBackground(bool value) |
|
137 { |
|
138 qtHighwayStubIsBg = value; |
|
139 } |
|