videocollection/videocollectionwrapper/tsrc/testvideothumbnaildata_p/stub/inc/videocollectionwrapper.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 08:30:05 +0300
changeset 62 0e1e938beb1a
parent 17 69946d1824c4
permissions -rw-r--r--
Revision: 201035 Kit: 201037

/*
* 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:   CVideoCollectionWrapper dummy class definition
*
*/

#ifndef __VIDEOCOLLECTIONWRAPPER_H__
#define __VIDEOCOLLECTIONWRAPPER_H__


// INCLUDES
#include <QObject>

#include <videocollectioncommon.h>

// FORWARD DECLARATIONS
class VideoProxyModelGeneric;


class VideoCollectionWrapper : public QObject
{
    /**
     * define to be able to use signals and slots
     */
    Q_OBJECT

public: // Constructor

    enum TModelType
    {
        EAllVideos,
        ECollections,
        ECollectionContent,
        EGeneric
    };    
    
    /**
     * Returns singleton instance for this class.
     * 
     * WARNING! Not safe to call this from destructor of another function scope static object!
     * 
     * @return The singleton instance.
     */
    static VideoCollectionWrapper &instance();

	/**
     * Returns pointer to model
     *
     * @return address to model or NULL if fails.
     */
    VideoProxyModelGeneric* getGenericModel();

/* Additional functions needed for testing purposes */

    void reset();

    void setModel(VideoProxyModelGeneric* model);

signals:

private:

    /**
     * Private contructor.
     */
    VideoCollectionWrapper();

    /**
     * Private destructor.
     *
     */
    virtual ~VideoCollectionWrapper();

    /**
     * disables copy-constructor and assingment operator
     */
    Q_DISABLE_COPY(VideoCollectionWrapper)

private:

    VideoProxyModelGeneric* mModel;
    
public:
    
    static VideoCollectionWrapper *mInstance;
    
    static int mReferenceCount;
};

#endif  // __VIDEOCOLLECTIONWRAPPER_H__
// End of file