diff -r 48e74db5d516 -r bbb98528c666 videocollection/videocollectionwrapper/inc/videocollectionwrapper.h --- a/videocollection/videocollectionwrapper/inc/videocollectionwrapper.h Thu Apr 01 23:13:36 2010 +0300 +++ b/videocollection/videocollectionwrapper/inc/videocollectionwrapper.h Thu Apr 01 23:22:15 2010 +0300 @@ -77,6 +77,14 @@ public: // Constructor + enum TModelType + { + EAllVideos, + ECollections, + ECollectionContent, + EGeneric + }; + /** * Returns singleton instance for this class. * @@ -84,20 +92,16 @@ * * @return The singleton instance. */ - static VideoCollectionWrapper *instance(); - - /** - * Decreases the reference count, when count reaches zero cleanup is done. - * - */ - void decreaseReferenceCount(); + static VideoCollectionWrapper &instance(); /** * Returns pointer to model * + * @param type of the model + * * @return address to model or NULL if fails. */ - VideoSortFilterProxyModel* getModel(); + VideoSortFilterProxyModel* getModel(int type); /** * Method can be used by client to emit status signal @@ -153,10 +157,6 @@ */ int mReferenceCount; - /** - * Singleton instance. - */ - static VideoCollectionWrapper* mInstance; }; #endif // __VIDEOCOLLECTIONWRAPPER_H__