|
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 model to be used when unit testing the proxy model. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDES |
|
20 #include "videolistdatamodel.h" |
|
21 |
|
22 TMPXItemId VideoListDataModel::mMediaIdAtIndexReturnValue; |
|
23 int VideoListDataModel::mMediaIdAtIndexCallCount = 0; |
|
24 int VideoListDataModel::mRowCountReturnValue = 0; |
|
25 |
|
26 // --------------------------------------------------------------------------- |
|
27 // VideoListDataModel |
|
28 // --------------------------------------------------------------------------- |
|
29 // |
|
30 VideoListDataModel::VideoListDataModel(QObject *parent) |
|
31 { |
|
32 Q_UNUSED(parent); |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------------------------- |
|
36 // ~VideoListDataModel |
|
37 // --------------------------------------------------------------------------- |
|
38 // |
|
39 VideoListDataModel::~VideoListDataModel() |
|
40 { |
|
41 |
|
42 } |
|
43 |
|
44 // --------------------------------------------------------------------------- |
|
45 // mediaIdAtIndex |
|
46 // --------------------------------------------------------------------------- |
|
47 // |
|
48 TMPXItemId VideoListDataModel::mediaIdAtIndex(int index) |
|
49 { |
|
50 Q_UNUSED(index); |
|
51 mMediaIdAtIndexCallCount++; |
|
52 return mMediaIdAtIndexReturnValue; |
|
53 } |
|
54 |
|
55 // --------------------------------------------------------------------------- |
|
56 // rowCount |
|
57 // --------------------------------------------------------------------------- |
|
58 // |
|
59 const int VideoListDataModel::rowCount() const |
|
60 { |
|
61 return mRowCountReturnValue; |
|
62 } |
|
63 |
|
64 |
|
65 // End of file |
|
66 |
|
67 |
|
68 |