videocollection/videocollectionwrapper/tsrc/testvideoproxymodelcontent/stub/inc/videolistdatamodel.h
changeset 62 0e1e938beb1a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/videocollection/videocollectionwrapper/tsrc/testvideoproxymodelcontent/stub/inc/videolistdatamodel.h	Fri Sep 17 08:30:05 2010 +0300
@@ -0,0 +1,87 @@
+
+/**
+* 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 collection client to be used when unit testing the proxy model. 
+* 
+*/
+
+#ifndef __STUB_VIDEOLISTDATAMODELFORPROXY_H
+#define __STUB_VIDEOLISTDATAMODELFORPROXY_H
+
+#include <QObject>
+#include <QList>
+#include <QString>
+#include <mpxitemid.h>
+#include "videocollectioncommon.h"
+
+class  VideoListDataModel : public QObject
+{
+    Q_OBJECT
+    
+public: // Constructors and destructor
+
+    /**
+     * Constructor
+     *
+     */
+    VideoListDataModel(QObject *parent = NULL);
+
+    /**
+     * destructor
+     *
+     */
+    virtual ~VideoListDataModel();
+
+    /**
+     * Stub method.
+     */
+    TMPXItemId mediaIdAtIndex(int index);
+    
+    /**
+     * Stub method.
+     */
+    const int rowCount() const;
+    
+    /**
+     * Stub method.
+     */
+    bool belongsToAlbum(TMPXItemId &id);
+    
+    /**
+     * Stub method.
+     */
+    TMPXItemId albumInUse();
+    
+    /**
+     * Helper methor to emit albumChanged signal.
+     * 
+     */
+    void emitAlbumChanged();
+    
+signals:
+    void albumChanged();
+    
+public:
+    
+    static TMPXItemId mMediaIdAtIndexReturnValue;
+    static int mMediaIdAtIndexCallCount;
+    static int mRowCountReturnValue;
+    static bool mBelongsToAlbumReturnValue;
+    static TMPXItemId mAlbumInUseReturnValue;
+    
+};
+
+#endif // __STUB_VIDEOLISTDATAMODELFORPROXY_H
+
+