videocollection/videocollectionwrapper/tsrc/testvideoproxymodelcollections/stub/inc/videolistdatamodel.h
equal
deleted
inserted
replaced
|
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 public: |
|
57 static QList<TMPXItemId> mMediaIdAtIndexReturnValues; |
|
58 static int mMediaIdAtIndexCallCount; |
|
59 static int mRowCountReturnValue; |
|
60 |
|
61 }; |
|
62 |
|
63 #endif // __STUB_VIDEOLISTDATAMODELFORPROXY_H |
|
64 |
|
65 |