videocollection/videocollectionwrapper/inc/videocollectionwrapper_p.h
author hgs
Fri, 14 May 2010 15:14:51 +0300
changeset 38 ff53afa8ad05
parent 37 4eb2df7f7cbe
child 40 13331705e488
permissions -rw-r--r--
201019
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
34
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:   VideoCollectionWrapperPrivate class definition
hgs
parents:
diff changeset
    15
* 
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef __VIDEOCOLLECTIONWRAPPERPRIVATE_H__
hgs
parents:
diff changeset
    19
#define __VIDEOCOLLECTIONWRAPPERPRIVATE_H__
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
// INCLUDES
hgs
parents:
diff changeset
    23
#include <QObject>
hgs
parents:
diff changeset
    24
#include <QPointer>
hgs
parents:
diff changeset
    25
#include <qabstractitemmodel.h>
36
hgs
parents: 34
diff changeset
    26
#include "videocollectioncommon.h"
34
hgs
parents:
diff changeset
    27
hgs
parents:
diff changeset
    28
// FORWARD DECLARATIONS
hgs
parents:
diff changeset
    29
class CMPXMediaArray;
hgs
parents:
diff changeset
    30
class CMPXMedia;
hgs
parents:
diff changeset
    31
class VideoListDataModel;
hgs
parents:
diff changeset
    32
class VideoSortFilterProxyModel;
hgs
parents:
diff changeset
    33
hgs
parents:
diff changeset
    34
class VideoCollectionWrapperPrivate : public QObject        
hgs
parents:
diff changeset
    35
{    
hgs
parents:
diff changeset
    36
	Q_DISABLE_COPY(VideoCollectionWrapperPrivate) 
hgs
parents:
diff changeset
    37
	
hgs
parents:
diff changeset
    38
	/**
hgs
parents:
diff changeset
    39
     * define to be able to use signals and slots
hgs
parents:
diff changeset
    40
     */
hgs
parents:
diff changeset
    41
    Q_OBJECT
hgs
parents:
diff changeset
    42
	
hgs
parents:
diff changeset
    43
public: // Constructor
hgs
parents:
diff changeset
    44
hgs
parents:
diff changeset
    45
	/**
hgs
parents:
diff changeset
    46
	* Default constructor
hgs
parents:
diff changeset
    47
    */
hgs
parents:
diff changeset
    48
	VideoCollectionWrapperPrivate();	
hgs
parents:
diff changeset
    49
	
hgs
parents:
diff changeset
    50
	/**
hgs
parents:
diff changeset
    51
	 * Destructor
hgs
parents:
diff changeset
    52
	 */
hgs
parents:
diff changeset
    53
	~VideoCollectionWrapperPrivate();	
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
    /**
hgs
parents:
diff changeset
    56
     * Returns the pointer into model. Creates the model if it doesn't exists yet.
hgs
parents:
diff changeset
    57
     * 
hgs
parents:
diff changeset
    58
     * @param type type of model
hgs
parents:
diff changeset
    59
     * @return address of model, NULL if creation did not succeed.
hgs
parents:
diff changeset
    60
     */    
36
hgs
parents: 34
diff changeset
    61
	VideoSortFilterProxyModel* getModel(VideoCollectionCommon::TModelType &type);
34
hgs
parents:
diff changeset
    62
hgs
parents:
diff changeset
    63
private slots:
hgs
parents:
diff changeset
    64
  
hgs
parents:
diff changeset
    65
    
hgs
parents:
diff changeset
    66
    /**
hgs
parents:
diff changeset
    67
     * Signaled when UI environment is about to be destroyed. 
hgs
parents:
diff changeset
    68
     * Source model needs to be cleaned up before of that
hgs
parents:
diff changeset
    69
     * 
hgs
parents:
diff changeset
    70
     */
hgs
parents:
diff changeset
    71
    void aboutToQuitSlot();
hgs
parents:
diff changeset
    72
           
hgs
parents:
diff changeset
    73
private:
hgs
parents:
diff changeset
    74
    
hgs
parents:
diff changeset
    75
	/**
hgs
parents:
diff changeset
    76
     * data model for all videos
hgs
parents:
diff changeset
    77
     */
hgs
parents:
diff changeset
    78
	QPointer<VideoSortFilterProxyModel> mAllVideosModel;
hgs
parents:
diff changeset
    79
	
hgs
parents:
diff changeset
    80
	/**
hgs
parents:
diff changeset
    81
	 * data model for collections
hgs
parents:
diff changeset
    82
	 */
hgs
parents:
diff changeset
    83
	QPointer<VideoSortFilterProxyModel> mCollectionsModel;
hgs
parents:
diff changeset
    84
	
hgs
parents:
diff changeset
    85
	/**
hgs
parents:
diff changeset
    86
	 * data model for collection content
hgs
parents:
diff changeset
    87
	 */
hgs
parents:
diff changeset
    88
    QPointer<VideoSortFilterProxyModel> mCollectionContentModel;
hgs
parents:
diff changeset
    89
	
hgs
parents:
diff changeset
    90
	/**
hgs
parents:
diff changeset
    91
	 * data model for collection content
hgs
parents:
diff changeset
    92
	 */
hgs
parents:
diff changeset
    93
	QPointer<VideoSortFilterProxyModel> mGenericModel;
hgs
parents:
diff changeset
    94
	
hgs
parents:
diff changeset
    95
	/**
hgs
parents:
diff changeset
    96
	 * source model
hgs
parents:
diff changeset
    97
	 */
hgs
parents:
diff changeset
    98
	QPointer<VideoListDataModel>        mSourceModel;
hgs
parents:
diff changeset
    99
    
hgs
parents:
diff changeset
   100
};
hgs
parents:
diff changeset
   101
#endif  // __VIDEOCOLLECTIONWRAPPERPRIVATE_H__
hgs
parents:
diff changeset
   102
hgs
parents:
diff changeset
   103
// End of file
hgs
parents:
diff changeset
   104
    
hgs
parents:
diff changeset
   105
hgs
parents:
diff changeset
   106