videocollection/videocollectionwrapper/tsrc/testvideoproxymodelgeneric/stub/inc/videocollectionwrapper.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 videocollectionwrapper class for VideoProxyModelGeneric unit tests |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef __VIDEOCOLLECTIONWRAPPER_H__ |
|
20 #define __VIDEOCOLLECTIONWRAPPER_H__ |
|
21 |
|
22 #include <QObject> |
|
23 //#include "videoproxymodelgeneric.h" |
|
24 class VideoProxyModelGeneric; |
|
25 |
|
26 class VideoCollectionWrapper : public QObject |
|
27 { |
|
28 Q_OBJECT |
|
29 |
|
30 public: |
|
31 |
|
32 enum TModelType |
|
33 { |
|
34 EAllVideos, |
|
35 ECollections, |
|
36 ECollectionContent, |
|
37 EGeneric |
|
38 }; |
|
39 |
|
40 static VideoCollectionWrapper &instance() |
|
41 { |
|
42 static VideoCollectionWrapper _staticWrapper; |
|
43 return _staticWrapper; |
|
44 } |
|
45 |
|
46 /** |
|
47 * constructor |
|
48 */ |
|
49 VideoCollectionWrapper() : |
|
50 mProxyModel(0) |
|
51 { |
|
52 } |
|
53 |
|
54 /** |
|
55 * returns mProxyModel |
|
56 */ |
|
57 VideoProxyModelGeneric* getGenericModel() |
|
58 { |
|
59 return mProxyModel; |
|
60 } |
|
61 |
|
62 /** |
|
63 * returns mProxyModel |
|
64 */ |
|
65 VideoProxyModelGeneric* getCollectionsModel() |
|
66 { |
|
67 return mProxyModel; |
|
68 } |
|
69 |
|
70 VideoProxyModelGeneric* mProxyModel; |
|
71 }; |
|
72 #endif // __VIDEOCOLLECTIONWRAPPER_H__ |