videocollection/videofiledetailsview/tsrc/testplugin/stub/inc/videocollectionwrapper.h
changeset 58 d2b028fd1f7d
parent 50 21fe8338c6bf
equal deleted inserted replaced
55:4bfa887905cf 58:d2b028fd1f7d
    24 
    24 
    25 
    25 
    26 // FORWARD DECLARATIONS
    26 // FORWARD DECLARATIONS
    27 class QAbstractItemModel;
    27 class QAbstractItemModel;
    28 
    28 
    29 class VideoSortFilterProxyModel;
    29 class VideoProxyModelGeneric;
    30 
    30 
    31 
    31 
    32 class VideoCollectionWrapper : public QObject         
    32 class VideoCollectionWrapper : public QObject         
    33 {    
    33 {    
    34     Q_OBJECT
    34     Q_OBJECT
    60     void decreaseReferenceCount();    
    60     void decreaseReferenceCount();    
    61 
    61 
    62    /**
    62    /**
    63     * return mModel
    63     * return mModel
    64     */
    64     */
    65     VideoSortFilterProxyModel* getModel(int type);
    65     VideoProxyModelGeneric* getAllVideosModel();
    66 
    66 
    67    /**
    67    /**
    68     * NOP at the moment
    68     * NOP at the moment
    69     */
    69     */
    70    void reset();
    70    void reset();
    71 	
    71 	
    72    /**
    72    /**
    73     * sete mModel
    73     * sete mModel
    74     */
    74     */
    75    void setModel(VideoSortFilterProxyModel* model);
    75    void setModel(VideoProxyModelGeneric* model);
    76    
    76    
    77 signals:
    77 signals:
    78    
    78    
    79     void asyncStatus(int errorCode, QVariant &additional);
    79     void asyncStatus(int errorCode, QVariant &additional);
    80 
    80 
    94     
    94     
    95 private:
    95 private:
    96     /**
    96     /**
    97      * model to be used when testing videofiledetailsviewplugin
    97      * model to be used when testing videofiledetailsviewplugin
    98      */
    98      */
    99     VideoSortFilterProxyModel* mModel;
    99     VideoProxyModelGeneric* mModel;
   100 
   100 
   101 public:
   101 public:
   102     
   102     
   103     static VideoCollectionWrapper *mInstance;
   103     static VideoCollectionWrapper *mInstance;
   104     
   104