13 * |
13 * |
14 * Description: VideoCollectionWrapper class implementation |
14 * Description: VideoCollectionWrapper class implementation |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 // Version : %version: 31 % |
18 // Version : %version: 32 % |
19 |
19 |
20 // INCLUDE FILES |
20 // INCLUDE FILES |
21 #include <qabstractitemmodel.h> |
21 #include <qabstractitemmodel.h> |
22 |
22 |
23 #include "videocollectionwrapper.h" |
23 #include "videocollectionwrapper.h" |
24 #include "videocollectionwrapper_p.h" |
24 #include "videocollectionwrapper_p.h" |
25 #include "videosortfilterproxymodel.h" |
25 #include "videoproxymodelgeneric.h" |
26 #include "videocollectiontrace.h" |
26 #include "videocollectiontrace.h" |
27 |
27 |
28 // ----------------------------------------------------------------------------- |
28 // ----------------------------------------------------------------------------- |
29 // VideoCollectionWrapper::CVideoCollectionWrapper() |
29 // VideoCollectionWrapper::CVideoCollectionWrapper() |
30 // ----------------------------------------------------------------------------- |
30 // ----------------------------------------------------------------------------- |
57 FUNC_LOG; |
57 FUNC_LOG; |
58 delete d; |
58 delete d; |
59 } |
59 } |
60 |
60 |
61 // ----------------------------------------------------------------------------- |
61 // ----------------------------------------------------------------------------- |
62 // CVideoCollectionWrapper::getModel() |
62 // CVideoCollectionWrapper::getGenericModel() |
63 // ----------------------------------------------------------------------------- |
63 // ----------------------------------------------------------------------------- |
64 // |
64 // |
65 VideoSortFilterProxyModel* VideoCollectionWrapper::getModel(VideoCollectionCommon::TModelType type) |
65 VideoProxyModelGeneric* VideoCollectionWrapper::getGenericModel() |
|
66 { |
|
67 FUNC_LOG; |
|
68 if(d) |
|
69 { |
|
70 return d->getGenericModel(); |
|
71 } |
|
72 return 0; |
|
73 } |
|
74 |
|
75 // ----------------------------------------------------------------------------- |
|
76 // CVideoCollectionWrapper::getAllVideosModel() |
|
77 // ----------------------------------------------------------------------------- |
|
78 // |
|
79 VideoProxyModelGeneric* VideoCollectionWrapper::getAllVideosModel() |
66 { |
80 { |
67 FUNC_LOG; |
81 FUNC_LOG; |
68 if(d) |
82 if(d) |
69 { |
83 { |
70 return d->getModel(type); |
84 return d->getAllVideosModel(); |
|
85 } |
|
86 return 0; |
|
87 } |
|
88 |
|
89 // ----------------------------------------------------------------------------- |
|
90 // CVideoCollectionWrapper::getCollectionsModel() |
|
91 // ----------------------------------------------------------------------------- |
|
92 // |
|
93 VideoProxyModelGeneric* VideoCollectionWrapper::getCollectionsModel() |
|
94 { |
|
95 FUNC_LOG; |
|
96 if(d) |
|
97 { |
|
98 return d->getCollectionsModel(); |
|
99 } |
|
100 return 0; |
|
101 } |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // CVideoCollectionWrapper::getCollectionContentModel() |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 VideoProxyModelGeneric* VideoCollectionWrapper::getCollectionContentModel() |
|
108 { |
|
109 FUNC_LOG; |
|
110 if(d) |
|
111 { |
|
112 return d->getCollectionContentModel(); |
71 } |
113 } |
72 return 0; |
114 return 0; |
73 } |
115 } |
74 |
116 |
75 // ----------------------------------------------------------------------------- |
117 // ----------------------------------------------------------------------------- |