|
1 /* |
|
2 * Copyright (c) 2010 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: VideoCollectionWrapperData class implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "videocollectionwrapperdata.h" |
|
19 |
|
20 bool VideoCollectionWrapperData::mGetGenericModelFails = false; |
|
21 bool VideoCollectionWrapperData::mGetAllVideosModelFails = false; |
|
22 bool VideoCollectionWrapperData::mGetCollectionsModelFails = false; |
|
23 bool VideoCollectionWrapperData::mGetCollectionContentModelFails = false; |
|
24 VideoListDataModel *VideoCollectionWrapperData::mSourceModel = 0; |
|
25 QPointer<VideoProxyModelGeneric> VideoCollectionWrapperData::mAllVideosModel = 0; |
|
26 QPointer<VideoProxyModelGeneric> VideoCollectionWrapperData::mCollectionsModel = 0; |
|
27 QPointer<VideoProxyModelGeneric> VideoCollectionWrapperData::mCollectionContentModel = 0; |
|
28 QPointer<VideoProxyModelGeneric> VideoCollectionWrapperData::mGenericModel = 0; |
|
29 |
|
30 void VideoCollectionWrapperData::reset() |
|
31 { |
|
32 mGetGenericModelFails = false; |
|
33 mGetAllVideosModelFails = false; |
|
34 mGetCollectionsModelFails = false; |
|
35 mGetCollectionContentModelFails = false; |
|
36 |
|
37 delete mAllVideosModel; |
|
38 delete mCollectionsModel; |
|
39 delete mCollectionContentModel; |
|
40 delete mGenericModel; |
|
41 |
|
42 delete mSourceModel; |
|
43 mSourceModel = 0; |
|
44 } |
|
45 |