equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: VideoCollectionWrapper class implementation |
14 * Description: VideoCollectionWrapper class implementation |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 // Version : %version: % |
|
19 |
18 // INCLUDE FILES |
20 // INCLUDE FILES |
19 #include <qabstractitemmodel.h> |
21 #include <qabstractitemmodel.h> |
20 #include <QDebug> |
22 |
21 #include "videocollectionwrapper.h" |
23 #include "videocollectionwrapper.h" |
22 #include "videocollectionwrapper_p.h" |
24 #include "videocollectionwrapper_p.h" |
23 #include "videosortfilterproxymodel.h" |
25 #include "videosortfilterproxymodel.h" |
|
26 #include "videocollectiontrace.h" |
24 |
27 |
25 // ----------------------------------------------------------------------------- |
28 // ----------------------------------------------------------------------------- |
26 // VideoCollectionWrapper::CVideoCollectionWrapper() |
29 // VideoCollectionWrapper::CVideoCollectionWrapper() |
27 // ----------------------------------------------------------------------------- |
30 // ----------------------------------------------------------------------------- |
28 // |
31 // |
29 VideoCollectionWrapper &VideoCollectionWrapper::instance() |
32 VideoCollectionWrapper &VideoCollectionWrapper::instance() |
30 { |
33 { |
|
34 FUNC_LOG; |
31 static VideoCollectionWrapper _staticWrapper; |
35 static VideoCollectionWrapper _staticWrapper; |
32 |
36 |
33 return _staticWrapper; |
37 return _staticWrapper; |
34 } |
38 } |
35 |
39 |
39 // |
43 // |
40 VideoCollectionWrapper::VideoCollectionWrapper() : |
44 VideoCollectionWrapper::VideoCollectionWrapper() : |
41 d( new VideoCollectionWrapperPrivate ), |
45 d( new VideoCollectionWrapperPrivate ), |
42 mReferenceCount(0) |
46 mReferenceCount(0) |
43 { |
47 { |
44 qDebug() << "CVideoCollectionWrapper::CVideoCollectionWrapper(): Constructing singleton"; |
48 FUNC_LOG; |
45 } |
49 } |
46 |
50 |
47 // ----------------------------------------------------------------------------- |
51 // ----------------------------------------------------------------------------- |
48 // CVideoCollectionWrapper::~CVideoCollectionWrapper() |
52 // CVideoCollectionWrapper::~CVideoCollectionWrapper() |
49 // ----------------------------------------------------------------------------- |
53 // ----------------------------------------------------------------------------- |
50 // |
54 // |
51 VideoCollectionWrapper::~VideoCollectionWrapper() |
55 VideoCollectionWrapper::~VideoCollectionWrapper() |
52 { |
56 { |
|
57 FUNC_LOG; |
53 // NOP |
58 // NOP |
54 } |
59 } |
55 |
60 |
56 // ----------------------------------------------------------------------------- |
61 // ----------------------------------------------------------------------------- |
57 // CVideoCollectionWrapper::getModel() |
62 // CVideoCollectionWrapper::getModel() |
58 // ----------------------------------------------------------------------------- |
63 // ----------------------------------------------------------------------------- |
59 // |
64 // |
60 VideoSortFilterProxyModel* VideoCollectionWrapper::getModel(int type) |
65 VideoSortFilterProxyModel* VideoCollectionWrapper::getModel(VideoCollectionCommon::TModelType type) |
61 { |
66 { |
|
67 FUNC_LOG; |
62 if(d) |
68 if(d) |
63 { |
69 { |
64 return d->getModel(type); |
70 return d->getModel(type); |
65 } |
71 } |
66 return 0; |
72 return 0; |
70 // VideoCollectionWrapper::sendAsyncStatus() |
76 // VideoCollectionWrapper::sendAsyncStatus() |
71 // ----------------------------------------------------------------------------- |
77 // ----------------------------------------------------------------------------- |
72 // |
78 // |
73 void VideoCollectionWrapper::sendAsyncStatus(int statusCode, QVariant &additional) |
79 void VideoCollectionWrapper::sendAsyncStatus(int statusCode, QVariant &additional) |
74 { |
80 { |
|
81 FUNC_LOG; |
75 emit asyncStatus(statusCode, additional); |
82 emit asyncStatus(statusCode, additional); |
76 } |
83 } |
77 |
84 |
78 // End of file |
85 // End of file |