videocollection/videocollectionwrapper/inc/videocollectionwrapper_p.h
changeset 34 bbb98528c666
child 17 69946d1824c4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/videocollection/videocollectionwrapper/inc/videocollectionwrapper_p.h	Thu Apr 01 23:22:15 2010 +0300
@@ -0,0 +1,107 @@
+/*
+* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:   VideoCollectionWrapperPrivate class definition
+* 
+*/
+
+#ifndef __VIDEOCOLLECTIONWRAPPERPRIVATE_H__
+#define __VIDEOCOLLECTIONWRAPPERPRIVATE_H__
+
+
+// INCLUDES
+#include <QObject>
+#include <QPointer>
+#include <qabstractitemmodel.h>
+
+
+// FORWARD DECLARATIONS
+class CMPXMediaArray;
+class CMPXMedia;
+class VideoListDataModel;
+class VideoSortFilterProxyModel;
+
+// TODO: MVcxNsMyVideosCategoryModelObserver implementation should probably not be in this class
+class VideoCollectionWrapperPrivate : public QObject        
+{    
+	Q_DISABLE_COPY(VideoCollectionWrapperPrivate) 
+	
+	/**
+     * define to be able to use signals and slots
+     */
+    Q_OBJECT
+	
+public: // Constructor
+
+	/**
+	* Default constructor
+    */
+	VideoCollectionWrapperPrivate();	
+	
+	/**
+	 * Destructor
+	 */
+	~VideoCollectionWrapperPrivate();	
+
+    /**
+     * Returns the pointer into model. Creates the model if it doesn't exists yet.
+     * 
+     * @param type type of model
+     * @return address of model, NULL if creation did not succeed.
+     */    
+	VideoSortFilterProxyModel* getModel(int &type);
+
+private slots:
+  
+    
+    /**
+     * Signaled when UI environment is about to be destroyed. 
+     * Source model needs to be cleaned up before of that
+     * 
+     */
+    void aboutToQuitSlot();
+           
+private:
+    
+	/**
+     * data model for all videos
+     */
+	QPointer<VideoSortFilterProxyModel> mAllVideosModel;
+	
+	/**
+	 * data model for collections
+	 */
+	QPointer<VideoSortFilterProxyModel> mCollectionsModel;
+	
+	/**
+	 * data model for collection content
+	 */
+    QPointer<VideoSortFilterProxyModel> mCollectionContentModel;
+	
+	/**
+	 * data model for collection content
+	 */
+	QPointer<VideoSortFilterProxyModel> mGenericModel;
+	
+	/**
+	 * source model
+	 */
+	QPointer<VideoListDataModel>        mSourceModel;
+    
+};
+#endif  // __VIDEOCOLLECTIONWRAPPERPRIVATE_H__
+
+// End of file
+    
+
+