diff -r a76e86df7ccd -r 0e1e938beb1a videocollection/tsrc/stubs/inc/videocollectionwrapperdata.h --- a/videocollection/tsrc/stubs/inc/videocollectionwrapperdata.h Thu Sep 02 20:28:16 2010 +0300 +++ b/videocollection/tsrc/stubs/inc/videocollectionwrapperdata.h Fri Sep 17 08:30:05 2010 +0300 @@ -18,39 +18,44 @@ #ifndef VIDEOCOLLECTIONWRAPPERDATA_H #define VIDEOCOLLECTIONWRAPPERDATA_H -#include "videosortfilterproxymodel.h" +#include "videoproxymodelgeneric.h" +#include "videoproxymodelallvideos.h" +#include "videoproxymodelcollections.h" +#include "videoproxymodelcontent.h" #include "videolistdatamodel.h" +#include -class VideoCollectionWrapperData +class VideoCollectionWrapperData : public QObject { + Q_OBJECT + public: // methods - static void reset() - { - mGetModelFails = false; + static void reset(); + /*{ + mGetGenericModelFails = false; + mGetAllVideosModelFails = false; + mGetCollectionsModelFails = false; + mGetCollectionContentModelFails = false; delete mAllVideosModel; - mAllVideosModel = 0; - delete mCollectionsModel; - mCollectionsModel = 0; - delete mCollectionContentModel; - mCollectionContentModel = 0; - delete mGenericModel; - mGenericModel = 0; - + delete mSourceModel; mSourceModel = 0; - } + }*/ public: // data - static bool mGetModelFails; + static bool mGetGenericModelFails; + static bool mGetAllVideosModelFails; + static bool mGetCollectionsModelFails; + static bool mGetCollectionContentModelFails; static VideoListDataModel *mSourceModel; - static VideoSortFilterProxyModel *mAllVideosModel; - static VideoSortFilterProxyModel *mCollectionsModel; - static VideoSortFilterProxyModel *mCollectionContentModel; - static VideoSortFilterProxyModel *mGenericModel; + static QPointer mAllVideosModel; + static QPointer mCollectionsModel; + static QPointer mCollectionContentModel; + static QPointer mGenericModel; }; -#endif /* VIDEOSORTFILTERPROXYMODEL_H */ +#endif /* VIDEOCOLLECTIONWRAPPERDATA_H */