videocollection/videocollectionwrapper/tsrc/testvideocollectionwrapper_p/stub/inc/videoproxymodelgeneric.h
changeset 62 0e1e938beb1a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/videocollection/videocollectionwrapper/tsrc/testvideocollectionwrapper_p/stub/inc/videoproxymodelgeneric.h	Fri Sep 17 08:30:05 2010 +0300
@@ -0,0 +1,67 @@
+/*
+* 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:   stub VideoProxyModelGeneric for VideoCollectionWrapperPrivate unit tests  
+* 
+*/
+
+#ifndef VIDEOPROXYMODELGENERIC_H
+#define VIDEOPROXYMODELGENERIC_H
+
+#include <qsortfilterproxymodel.h>
+#include <mpxitemid.h>
+
+class QTimer;
+class VideoListDataModel;
+class VideoCollectionClient;
+
+class VideoProxyModelGeneric : public QObject 
+{
+    Q_OBJECT
+    
+signals:
+    
+    void shortDetailsReady(TMPXItemId);
+    
+public: 
+    
+    /**
+     * Contructor.
+     *
+     * @param parent parent of this widget
+     */
+    VideoProxyModelGeneric(QObject *parent=0);
+    
+    /**
+     * Destructor.
+     *
+     */
+    virtual ~VideoProxyModelGeneric();
+    
+    /**
+     * Initialize.
+     */
+    int initialize(VideoListDataModel *sourceModel);
+    
+public:
+
+    /**
+     * Pointer to the actual model.
+     * Not owned.
+     */
+    VideoListDataModel *mModel;
+    
+    static int mGenericModelConstructCallCount;
+};
+
+#endif // VIDEOPROXYMODELGENERIC_H