equal
deleted
inserted
replaced
53 ~VideoCollectionWrapperPrivate(); |
53 ~VideoCollectionWrapperPrivate(); |
54 |
54 |
55 /** |
55 /** |
56 * Returns the pointer into model. Creates the model if it doesn't exists yet. |
56 * Returns the pointer into model. Creates the model if it doesn't exists yet. |
57 * |
57 * |
|
58 * Noter that if application has signaled aboutToQuit -signal indicating closing, all |
|
59 * previously created models have been removed and new ones will not be created |
|
60 * anymore |
|
61 * |
58 * @param type type of model |
62 * @param type type of model |
59 * @return address of model, NULL if creation did not succeed. |
63 * @return address of model, NULL if creation did not succeed or if application is closing. |
60 */ |
64 */ |
61 VideoSortFilterProxyModel* getModel(VideoCollectionCommon::TModelType &type); |
65 VideoSortFilterProxyModel* getModel(VideoCollectionCommon::TModelType &type); |
62 |
66 |
63 private slots: |
67 private slots: |
64 |
68 |
65 |
69 |
66 /** |
70 /** |
67 * Signaled when UI environment is about to be destroyed. |
71 * Signaled when UI environment is about to be destroyed. |
68 * Source model needs to be cleaned up before of that |
72 * All models needs to be cleaned up before of that. |
69 * |
73 * |
70 */ |
74 */ |
71 void aboutToQuitSlot(); |
75 void aboutToQuitSlot(); |
72 |
76 |
73 private: |
77 private: |
94 |
98 |
95 /** |
99 /** |
96 * source model |
100 * source model |
97 */ |
101 */ |
98 QPointer<VideoListDataModel> mSourceModel; |
102 QPointer<VideoListDataModel> mSourceModel; |
|
103 |
|
104 /** |
|
105 * flag to indicate, that object is to be deallocated, so no |
|
106 * models are to be returned anymore |
|
107 */ |
|
108 bool mAboutToClose; |
99 |
109 |
100 }; |
110 }; |
101 #endif // __VIDEOCOLLECTIONWRAPPERPRIVATE_H__ |
111 #endif // __VIDEOCOLLECTIONWRAPPERPRIVATE_H__ |
102 |
112 |
103 // End of file |
113 // End of file |