|
1 |
|
2 /** |
|
3 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
4 * All rights reserved. |
|
5 * This component and the accompanying materials are made available |
|
6 * under the terms of "Eclipse Public License v1.0" |
|
7 * which accompanies this distribution, and is available |
|
8 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 * |
|
10 * Initial Contributors: |
|
11 * Nokia Corporation - initial contribution. |
|
12 * |
|
13 * Contributors: |
|
14 * |
|
15 * Description: Stub collection client to be used when unit testing the proxy model. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __STUB_VIDEOLISTDATAMODELFORPROXY_H |
|
20 #define __STUB_VIDEOLISTDATAMODELFORPROXY_H |
|
21 |
|
22 #include <QObject> |
|
23 #include <QList> |
|
24 #include <QString> |
|
25 #include <mpxitemid.h> |
|
26 #include "videocollectioncommon.h" |
|
27 |
|
28 class VideoListDataModel : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: // Constructors and destructor |
|
33 |
|
34 /** |
|
35 * Constructor |
|
36 * |
|
37 */ |
|
38 VideoListDataModel(QObject *parent = NULL); |
|
39 |
|
40 /** |
|
41 * destructor |
|
42 * |
|
43 */ |
|
44 virtual ~VideoListDataModel(); |
|
45 |
|
46 /** |
|
47 * Stub method. |
|
48 */ |
|
49 TMPXItemId mediaIdAtIndex(int index); |
|
50 |
|
51 /** |
|
52 * Stub method. |
|
53 */ |
|
54 const int rowCount() const; |
|
55 |
|
56 /** |
|
57 * Stub method. |
|
58 */ |
|
59 bool belongsToAlbum(TMPXItemId &id); |
|
60 |
|
61 /** |
|
62 * Stub method. |
|
63 */ |
|
64 TMPXItemId albumInUse(); |
|
65 |
|
66 /** |
|
67 * Helper methor to emit albumChanged signal. |
|
68 * |
|
69 */ |
|
70 void emitAlbumChanged(); |
|
71 |
|
72 signals: |
|
73 void albumChanged(); |
|
74 |
|
75 public: |
|
76 |
|
77 static TMPXItemId mMediaIdAtIndexReturnValue; |
|
78 static int mMediaIdAtIndexCallCount; |
|
79 static int mRowCountReturnValue; |
|
80 static bool mBelongsToAlbumReturnValue; |
|
81 static TMPXItemId mAlbumInUseReturnValue; |
|
82 |
|
83 }; |
|
84 |
|
85 #endif // __STUB_VIDEOLISTDATAMODELFORPROXY_H |
|
86 |
|
87 |