30
|
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: CVideoCollectionWrapper dummy class implementation
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
// INCLUDE FILES
|
|
19 |
#include <qabstractitemmodel.h>
|
|
20 |
#include <QDebug>
|
|
21 |
#include <QtTest/QtTest>
|
|
22 |
#include "videocollectionwrapper.h"
|
|
23 |
|
|
24 |
int VideoCollectionWrapper::mReferenceCount = 0;
|
|
25 |
VideoCollectionWrapper *VideoCollectionWrapper::mInstance = 0;
|
|
26 |
|
|
27 |
// -----------------------------------------------------------------------------
|
|
28 |
// VideoCollectionWrapper::instance()
|
|
29 |
// -----------------------------------------------------------------------------
|
|
30 |
//
|
34
|
31 |
VideoCollectionWrapper &VideoCollectionWrapper::instance()
|
30
|
32 |
{
|
34
|
33 |
static VideoCollectionWrapper _staticWrapper;
|
|
34 |
return _staticWrapper;
|
30
|
35 |
}
|
|
36 |
|
|
37 |
// -----------------------------------------------------------------------------
|
|
38 |
// VideoCollectionWrapper::VideoCollectionWrapper()
|
|
39 |
// -----------------------------------------------------------------------------
|
|
40 |
//
|
|
41 |
VideoCollectionWrapper::VideoCollectionWrapper() :
|
|
42 |
mModel(0)
|
|
43 |
{
|
|
44 |
}
|
|
45 |
|
|
46 |
// -----------------------------------------------------------------------------
|
|
47 |
// VideoCollectionWrapper::~VideoCollectionWrapper()
|
|
48 |
// -----------------------------------------------------------------------------
|
|
49 |
//
|
|
50 |
VideoCollectionWrapper::~VideoCollectionWrapper()
|
|
51 |
{
|
|
52 |
}
|
|
53 |
|
|
54 |
// -----------------------------------------------------------------------------
|
|
55 |
// VideoCollectionWrapper::open()
|
|
56 |
// -----------------------------------------------------------------------------
|
|
57 |
//
|
36
|
58 |
VideoSortFilterProxyModel* VideoCollectionWrapper::getModel(VideoCollectionCommon::TModelType type)
|
30
|
59 |
{
|
36
|
60 |
Q_UNUSED(type);
|
30
|
61 |
return mModel;
|
|
62 |
}
|
|
63 |
|
|
64 |
// -----------------------------------------------------------------------------
|
|
65 |
// VideoCollectionWrapper::reset()
|
|
66 |
// -----------------------------------------------------------------------------
|
|
67 |
//
|
|
68 |
void VideoCollectionWrapper::reset()
|
|
69 |
{
|
|
70 |
|
|
71 |
}
|
|
72 |
|
|
73 |
// -----------------------------------------------------------------------------
|
|
74 |
// VideoCollectionWrapper::setModel()
|
|
75 |
// -----------------------------------------------------------------------------
|
|
76 |
//
|
|
77 |
void VideoCollectionWrapper::setModel(VideoSortFilterProxyModel* model)
|
|
78 |
{
|
36
|
79 |
Q_UNUSED(model);
|
30
|
80 |
mModel = model;
|
|
81 |
}
|
|
82 |
|
|
83 |
// End of file
|