|
1 /* |
|
2 * Copyright (c) 2008 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: VideoOperatorServicePrivate stub class implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "videooperatorservice_p.h" |
|
19 #include "videooperatorservice_pdata.h" |
|
20 |
|
21 bool VideoOperatorServicePrivateData::mLoadReturnValue = true; |
|
22 QString VideoOperatorServicePrivateData::mTitleReturnValue = QString(); |
|
23 QString VideoOperatorServicePrivateData::mIconResourceReturnValue = QString(); |
|
24 int VideoOperatorServicePrivateData::mLaunchServiceCallCount = 0; |
|
25 |
|
26 // --------------------------------------------------------------------------- |
|
27 // Constructor |
|
28 // --------------------------------------------------------------------------- |
|
29 // |
|
30 VideoOperatorServicePrivate::VideoOperatorServicePrivate() |
|
31 { |
|
32 } |
|
33 |
|
34 // --------------------------------------------------------------------------- |
|
35 // Destructor |
|
36 // --------------------------------------------------------------------------- |
|
37 // |
|
38 VideoOperatorServicePrivate::~VideoOperatorServicePrivate() |
|
39 { |
|
40 } |
|
41 |
|
42 // --------------------------------------------------------------------------- |
|
43 // load |
|
44 // --------------------------------------------------------------------------- |
|
45 // |
|
46 bool VideoOperatorServicePrivate::load(int titleKey, int iconKey, int uriKey, int uidKey) |
|
47 { |
|
48 Q_UNUSED(titleKey); |
|
49 Q_UNUSED(iconKey); |
|
50 Q_UNUSED(uriKey); |
|
51 Q_UNUSED(uidKey); |
|
52 return VideoOperatorServicePrivateData::mLoadReturnValue; |
|
53 } |
|
54 |
|
55 // --------------------------------------------------------------------------- |
|
56 // title |
|
57 // --------------------------------------------------------------------------- |
|
58 // |
|
59 const QString VideoOperatorServicePrivate::title() const |
|
60 { |
|
61 return VideoOperatorServicePrivateData::mTitleReturnValue; |
|
62 } |
|
63 |
|
64 // --------------------------------------------------------------------------- |
|
65 // iconResource |
|
66 // --------------------------------------------------------------------------- |
|
67 // |
|
68 const QString VideoOperatorServicePrivate::iconResource() const |
|
69 { |
|
70 return VideoOperatorServicePrivateData::mIconResourceReturnValue; |
|
71 } |
|
72 |
|
73 // --------------------------------------------------------------------------- |
|
74 // launchService |
|
75 // --------------------------------------------------------------------------- |
|
76 // |
|
77 void VideoOperatorServicePrivate::launchService() |
|
78 { |
|
79 VideoOperatorServicePrivateData::mLaunchServiceCallCount++; |
|
80 } |
|
81 |
|
82 // --------------------------------------------------------------------------- |
|
83 // getApplicationFilenameL |
|
84 // --------------------------------------------------------------------------- |
|
85 // |
|
86 QString VideoOperatorServicePrivate::getApplicationFilenameL(const TUid uid) |
|
87 { |
|
88 Q_UNUSED(uid); |
|
89 // Not stubbed. |
|
90 return QString(); |
|
91 } |
|
92 |
|
93 // --------------------------------------------------------------------------- |
|
94 // bringApplicationToForeground |
|
95 // --------------------------------------------------------------------------- |
|
96 // |
|
97 bool VideoOperatorServicePrivate::bringApplicationToForeground(const TUid uid) |
|
98 { |
|
99 Q_UNUSED(uid); |
|
100 // Not stubbed. |
|
101 return true; |
|
102 } |
|
103 |
|
104 // --------------------------------------------------------------------------- |
|
105 // startApplicationL |
|
106 // --------------------------------------------------------------------------- |
|
107 // |
|
108 void VideoOperatorServicePrivate::startApplicationL(const TUid uid) |
|
109 { |
|
110 Q_UNUSED(uid); |
|
111 // Not stubbed. |
|
112 } |
|
113 |
|
114 // --------------------------------------------------------------------------- |
|
115 // processFinished |
|
116 // --------------------------------------------------------------------------- |
|
117 // |
|
118 void VideoOperatorServicePrivate::processFinished(int exitCode, QProcess::ExitStatus exitStatus) |
|
119 { |
|
120 Q_UNUSED(exitCode); |
|
121 Q_UNUSED(exitStatus); |
|
122 // Not stubbed. |
|
123 } |
|
124 |
|
125 // --------------------------------------------------------------------------- |
|
126 // processError |
|
127 // --------------------------------------------------------------------------- |
|
128 // |
|
129 void VideoOperatorServicePrivate::processError(QProcess::ProcessError error) |
|
130 { |
|
131 Q_UNUSED(error); |
|
132 // Not stubbed. |
|
133 } |
|
134 |
|
135 // End of file. |