34
|
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: VideoCollectionWrapperPrivate class definition
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef __VIDEOCOLLECTIONWRAPPERPRIVATE_H__
|
|
19 |
#define __VIDEOCOLLECTIONWRAPPERPRIVATE_H__
|
|
20 |
|
|
21 |
|
|
22 |
// INCLUDES
|
|
23 |
#include <QObject>
|
|
24 |
#include <QPointer>
|
|
25 |
#include <qabstractitemmodel.h>
|
36
|
26 |
#include "videocollectioncommon.h"
|
34
|
27 |
|
|
28 |
// FORWARD DECLARATIONS
|
|
29 |
class CMPXMediaArray;
|
|
30 |
class CMPXMedia;
|
|
31 |
class VideoListDataModel;
|
|
32 |
class VideoSortFilterProxyModel;
|
|
33 |
|
|
34 |
class VideoCollectionWrapperPrivate : public QObject
|
|
35 |
{
|
|
36 |
Q_DISABLE_COPY(VideoCollectionWrapperPrivate)
|
|
37 |
|
|
38 |
/**
|
|
39 |
* define to be able to use signals and slots
|
|
40 |
*/
|
|
41 |
Q_OBJECT
|
|
42 |
|
|
43 |
public: // Constructor
|
|
44 |
|
|
45 |
/**
|
|
46 |
* Default constructor
|
|
47 |
*/
|
|
48 |
VideoCollectionWrapperPrivate();
|
|
49 |
|
|
50 |
/**
|
|
51 |
* Destructor
|
|
52 |
*/
|
|
53 |
~VideoCollectionWrapperPrivate();
|
|
54 |
|
|
55 |
/**
|
|
56 |
* Returns the pointer into model. Creates the model if it doesn't exists yet.
|
|
57 |
*
|
|
58 |
* @param type type of model
|
|
59 |
* @return address of model, NULL if creation did not succeed.
|
|
60 |
*/
|
36
|
61 |
VideoSortFilterProxyModel* getModel(VideoCollectionCommon::TModelType &type);
|
34
|
62 |
|
|
63 |
private slots:
|
|
64 |
|
|
65 |
|
|
66 |
/**
|
|
67 |
* Signaled when UI environment is about to be destroyed.
|
|
68 |
* Source model needs to be cleaned up before of that
|
|
69 |
*
|
|
70 |
*/
|
|
71 |
void aboutToQuitSlot();
|
|
72 |
|
|
73 |
private:
|
|
74 |
|
|
75 |
/**
|
|
76 |
* data model for all videos
|
|
77 |
*/
|
|
78 |
QPointer<VideoSortFilterProxyModel> mAllVideosModel;
|
|
79 |
|
|
80 |
/**
|
|
81 |
* data model for collections
|
|
82 |
*/
|
|
83 |
QPointer<VideoSortFilterProxyModel> mCollectionsModel;
|
|
84 |
|
|
85 |
/**
|
|
86 |
* data model for collection content
|
|
87 |
*/
|
|
88 |
QPointer<VideoSortFilterProxyModel> mCollectionContentModel;
|
|
89 |
|
|
90 |
/**
|
|
91 |
* data model for collection content
|
|
92 |
*/
|
|
93 |
QPointer<VideoSortFilterProxyModel> mGenericModel;
|
|
94 |
|
|
95 |
/**
|
|
96 |
* source model
|
|
97 |
*/
|
|
98 |
QPointer<VideoListDataModel> mSourceModel;
|
|
99 |
|
|
100 |
};
|
|
101 |
#endif // __VIDEOCOLLECTIONWRAPPERPRIVATE_H__
|
|
102 |
|
|
103 |
// End of file
|
|
104 |
|
|
105 |
|
|
106 |
|