34
|
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 videosortfilterproxymodel unit tests
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
#ifndef __VIDEOCOLLECTIONWRAPPER_H__
|
|
20 |
#define __VIDEOCOLLECTIONWRAPPER_H__
|
|
21 |
|
|
22 |
#include "videosortfilterproxymodel.h"
|
|
23 |
|
|
24 |
|
|
25 |
class VideoCollectionWrapper
|
|
26 |
{
|
|
27 |
|
|
28 |
public:
|
|
29 |
|
|
30 |
enum TModelType
|
|
31 |
{
|
|
32 |
EAllVideos,
|
|
33 |
ECollections,
|
|
34 |
ECollectionContent,
|
|
35 |
EGeneric
|
|
36 |
};
|
|
37 |
|
|
38 |
static VideoCollectionWrapper &instance()
|
|
39 |
{
|
|
40 |
static VideoCollectionWrapper _staticWrapper;
|
|
41 |
return _staticWrapper;
|
|
42 |
}
|
|
43 |
|
|
44 |
/**
|
|
45 |
* constructor
|
|
46 |
*/
|
|
47 |
VideoCollectionWrapper() :
|
|
48 |
mProxyModel(0)
|
|
49 |
{
|
|
50 |
}
|
|
51 |
|
|
52 |
/**
|
|
53 |
* returns mProxyModel
|
|
54 |
*/
|
55
|
55 |
VideoSortFilterProxyModel* getModel(int /*type*/)
|
34
|
56 |
{
|
|
57 |
return mProxyModel;
|
|
58 |
}
|
|
59 |
|
|
60 |
VideoSortFilterProxyModel* mProxyModel;
|
|
61 |
};
|
|
62 |
#endif // __VIDEOCOLLECTIONWRAPPER_H__
|