47
|
1 |
/*
|
|
2 |
* Copyright (c) 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: Stub for MpEngine for testing mpmediawallview
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#include "mpengine.h"
|
|
19 |
#include "mpplaybackdata.h"
|
|
20 |
#include "mptrace.h"
|
|
21 |
#include "mpmpxcollectiondata.h"
|
|
22 |
|
|
23 |
|
|
24 |
MpEngine::MpEngine() : mOpenCollectionCalled(0)
|
|
25 |
{
|
|
26 |
TX_LOG_ARGS("Stub")
|
|
27 |
}
|
|
28 |
|
|
29 |
/*!
|
|
30 |
Destructs music player engine.
|
|
31 |
*/
|
|
32 |
MpEngine::~MpEngine()
|
|
33 |
{
|
|
34 |
TX_ENTRY_ARGS("Stub")
|
|
35 |
}
|
|
36 |
|
|
37 |
void MpEngine::refreshLibrary()
|
|
38 |
{
|
|
39 |
TX_ENTRY_ARGS("Stub")
|
|
40 |
}
|
|
41 |
|
|
42 |
bool MpEngine::verifyUsbBlocking( bool showMessage )
|
|
43 |
{
|
|
44 |
Q_UNUSED(showMessage)
|
|
45 |
TX_ENTRY_ARGS("Stub")
|
|
46 |
return false;
|
|
47 |
}
|
|
48 |
|
|
49 |
void MpEngine::checkForSystemEvents()
|
|
50 |
{
|
|
51 |
TX_ENTRY_ARGS("Stub")
|
|
52 |
}
|
|
53 |
|
|
54 |
|
|
55 |
void MpEngine::openCollection( TCollectionContext context )
|
|
56 |
{
|
|
57 |
Q_UNUSED(context)
|
|
58 |
mOpenCollectionCalled++;
|
|
59 |
TX_ENTRY_ARGS("Stub")
|
|
60 |
}
|
|
61 |
|
|
62 |
void MpEngine::openCollectionItem( int index )
|
|
63 |
{
|
|
64 |
Q_UNUSED(index)
|
|
65 |
TX_ENTRY_ARGS("Stub")
|
|
66 |
}
|
|
67 |
|
|
68 |
void MpEngine::back()
|
|
69 |
{
|
|
70 |
TX_ENTRY_ARGS("Stub")
|
|
71 |
}
|
|
72 |
|
|
73 |
void MpEngine::findPlaylists( QStringList &playlists )
|
|
74 |
{
|
|
75 |
Q_UNUSED(playlists)
|
|
76 |
TX_ENTRY_ARGS("Stub")
|
|
77 |
}
|
|
78 |
|
|
79 |
void MpEngine::createPlaylist( QString &playlistName, QList<int> &selection, MpMpxCollectionData* collectionData )
|
|
80 |
{
|
|
81 |
Q_UNUSED(playlistName)
|
|
82 |
Q_UNUSED(selection)
|
|
83 |
Q_UNUSED(collectionData)
|
|
84 |
|
|
85 |
TX_ENTRY_ARGS("Stub")
|
|
86 |
}
|
|
87 |
|
|
88 |
void MpEngine::saveToPlaylist( int playlistIndex, QList<int> &selection )
|
|
89 |
{
|
|
90 |
Q_UNUSED(playlistIndex)
|
|
91 |
Q_UNUSED(selection)
|
|
92 |
TX_ENTRY_ARGS("Stub")
|
|
93 |
}
|
|
94 |
|
|
95 |
void MpEngine::renamePlaylist( QString &newName, int index )
|
|
96 |
{
|
|
97 |
Q_UNUSED(newName)
|
|
98 |
Q_UNUSED(index)
|
|
99 |
TX_ENTRY_ARGS("Stub")
|
|
100 |
}
|
|
101 |
|
|
102 |
void MpEngine::saveToCurrentPlaylist( QList<int> &selection, MpMpxCollectionData *collectionData )
|
|
103 |
{
|
|
104 |
Q_UNUSED(selection)
|
|
105 |
Q_UNUSED(collectionData)
|
|
106 |
TX_ENTRY_ARGS("Stub")
|
|
107 |
}
|
|
108 |
|
|
109 |
void MpEngine::renamePlaylist( QString &newName )
|
|
110 |
{
|
|
111 |
Q_UNUSED(newName)
|
|
112 |
TX_ENTRY_ARGS("Stub")
|
|
113 |
}
|
|
114 |
|
|
115 |
void MpEngine::deleteSongs( QList<int> &selection )
|
|
116 |
{
|
|
117 |
Q_UNUSED(selection)
|
|
118 |
TX_ENTRY_ARGS("Stub")
|
|
119 |
}
|
|
120 |
|
|
121 |
void MpEngine::previewItem( int index )
|
|
122 |
{
|
|
123 |
Q_UNUSED(index)
|
|
124 |
TX_ENTRY_ARGS("Stub")
|
|
125 |
}
|
|
126 |
|
|
127 |
void MpEngine::openIsolatedCollection( TCollectionContext context )
|
|
128 |
{
|
|
129 |
Q_UNUSED(context)
|
|
130 |
TX_ENTRY_ARGS("Stub")
|
|
131 |
}
|
|
132 |
|
|
133 |
void MpEngine::releaseIsolatedCollection()
|
|
134 |
{
|
|
135 |
TX_ENTRY_ARGS("Stub")
|
|
136 |
}
|
|
137 |
|
|
138 |
void MpEngine::findAlbumSongs( int index )
|
|
139 |
{
|
|
140 |
Q_UNUSED(index)
|
|
141 |
TX_ENTRY_ARGS("Stub")
|
|
142 |
}
|
|
143 |
|
|
144 |
void MpEngine::playAlbumSongs( int albumIndex, int songIndex, MpMpxCollectionData* collectionData )
|
|
145 |
{
|
|
146 |
Q_UNUSED(albumIndex)
|
|
147 |
Q_UNUSED(songIndex)
|
|
148 |
Q_UNUSED(collectionData)
|
|
149 |
TX_ENTRY_ARGS("Stub")
|
|
150 |
}
|
|
151 |
|
|
152 |
MpMpxCollectionData *MpEngine::collectionData()
|
|
153 |
{
|
|
154 |
TX_ENTRY_ARGS("Stub")
|
|
155 |
return new MpMpxCollectionData();
|
|
156 |
}
|
|
157 |
|
|
158 |
void MpEngine::reopenCollection()
|
|
159 |
{
|
|
160 |
TX_ENTRY_ARGS("Stub")
|
|
161 |
}
|
|
162 |
|
|
163 |
void MpEngine::reorderPlaylist( int playlistId, int songId, int originalOrdinal, int newOrdinal )
|
|
164 |
{
|
|
165 |
Q_UNUSED(playlistId)
|
|
166 |
Q_UNUSED(songId)
|
|
167 |
Q_UNUSED(originalOrdinal)
|
|
168 |
Q_UNUSED(newOrdinal)
|
|
169 |
TX_ENTRY_ARGS("Stub")
|
|
170 |
}
|
|
171 |
|
|
172 |
MpPlaybackData *MpEngine::playbackData()
|
|
173 |
{
|
|
174 |
TX_ENTRY_ARGS("Stub")
|
|
175 |
return new MpPlaybackData();
|
|
176 |
}
|
|
177 |
|
|
178 |
|
|
179 |
void MpEngine::playEmbedded( QString aFilename )
|
|
180 |
{
|
|
181 |
Q_UNUSED(aFilename)
|
|
182 |
TX_ENTRY_ARGS("Stub")
|
|
183 |
}
|
|
184 |
|
|
185 |
void MpEngine::playEmbedded(const XQSharableFile& file )
|
|
186 |
{
|
|
187 |
Q_UNUSED(file)
|
|
188 |
TX_ENTRY_ARGS("Stub")
|
|
189 |
}
|
|
190 |
|
|
191 |
void MpEngine::playPause()
|
|
192 |
{
|
|
193 |
TX_ENTRY_ARGS("Stub")
|
|
194 |
}
|
|
195 |
|
|
196 |
void MpEngine::stop()
|
|
197 |
{
|
|
198 |
TX_ENTRY_ARGS("Stub")
|
|
199 |
}
|
|
200 |
|
|
201 |
void MpEngine::skipForward()
|
|
202 |
{
|
|
203 |
TX_ENTRY_ARGS("Stub")
|
|
204 |
}
|
|
205 |
|
|
206 |
void MpEngine::skipBackward()
|
|
207 |
{
|
|
208 |
TX_ENTRY_ARGS("Stub")
|
|
209 |
}
|
|
210 |
|
|
211 |
void MpEngine::setPosition( int position )
|
|
212 |
{
|
|
213 |
Q_UNUSED(position)
|
|
214 |
TX_ENTRY_ARGS("Stub")
|
|
215 |
}
|
|
216 |
|
|
217 |
void MpEngine::setShuffle( bool mode )
|
|
218 |
{
|
|
219 |
Q_UNUSED(mode)
|
|
220 |
TX_ENTRY_ARGS("Stub")
|
|
221 |
}
|
|
222 |
|
|
223 |
void MpEngine::setRepeat( bool mode )
|
|
224 |
{
|
|
225 |
Q_UNUSED(mode)
|
|
226 |
TX_ENTRY_ARGS("Stub")
|
|
227 |
}
|
|
228 |
|
|
229 |
MpSongData *MpEngine::songData()
|
|
230 |
{
|
|
231 |
TX_ENTRY_ARGS("Stub")
|
|
232 |
return 0;
|
|
233 |
}
|
|
234 |
|
|
235 |
void MpEngine::retrieveSong()
|
|
236 |
{
|
|
237 |
TX_ENTRY_ARGS("Stub")
|
|
238 |
}
|