videocollection/videocollectionwrapper/tsrc/testvideocollectionwrapper_p/stub/inc/videoproxymodelgeneric.h
changeset 62 0e1e938beb1a
equal deleted inserted replaced
59:a76e86df7ccd 62:0e1e938beb1a
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:   stub VideoProxyModelGeneric for VideoCollectionWrapperPrivate unit tests  
       
    15 * 
       
    16 */
       
    17 
       
    18 #ifndef VIDEOPROXYMODELGENERIC_H
       
    19 #define VIDEOPROXYMODELGENERIC_H
       
    20 
       
    21 #include <qsortfilterproxymodel.h>
       
    22 #include <mpxitemid.h>
       
    23 
       
    24 class QTimer;
       
    25 class VideoListDataModel;
       
    26 class VideoCollectionClient;
       
    27 
       
    28 class VideoProxyModelGeneric : public QObject 
       
    29 {
       
    30     Q_OBJECT
       
    31     
       
    32 signals:
       
    33     
       
    34     void shortDetailsReady(TMPXItemId);
       
    35     
       
    36 public: 
       
    37     
       
    38     /**
       
    39      * Contructor.
       
    40      *
       
    41      * @param parent parent of this widget
       
    42      */
       
    43     VideoProxyModelGeneric(QObject *parent=0);
       
    44     
       
    45     /**
       
    46      * Destructor.
       
    47      *
       
    48      */
       
    49     virtual ~VideoProxyModelGeneric();
       
    50     
       
    51     /**
       
    52      * Initialize.
       
    53      */
       
    54     int initialize(VideoListDataModel *sourceModel);
       
    55     
       
    56 public:
       
    57 
       
    58     /**
       
    59      * Pointer to the actual model.
       
    60      * Not owned.
       
    61      */
       
    62     VideoListDataModel *mModel;
       
    63     
       
    64     static int mGenericModelConstructCallCount;
       
    65 };
       
    66 
       
    67 #endif // VIDEOPROXYMODELGENERIC_H