|
1 /** |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: helper class to test VideoThumbnailData |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef _VIDEOTHUMBNAILDATATESTER_H_ |
|
19 #define _VIDEOTHUMBNAILDATATESTER_H_ |
|
20 |
|
21 // INCLUDES |
|
22 #include <qobject.h> |
|
23 #include "videothumbnaildata_p.h" |
|
24 |
|
25 class VideoSortFilterProxyModel; |
|
26 |
|
27 class VideoThumbnailDataTester : public VideoThumbnailDataPrivate |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 |
|
33 /** |
|
34 * Default constructor |
|
35 */ |
|
36 VideoThumbnailDataTester(); |
|
37 |
|
38 /** |
|
39 * Destructor |
|
40 */ |
|
41 virtual ~VideoThumbnailDataTester(); |
|
42 |
|
43 // |
|
44 // Test methods for VideoThumbnailData's signals. |
|
45 // |
|
46 |
|
47 /** |
|
48 * Emits doBackgroundFetching signal to itself. |
|
49 */ |
|
50 void emitDoBackgroundFetching(); |
|
51 |
|
52 /** |
|
53 * Emits reportThumbnailsReadySignal to itself. |
|
54 */ |
|
55 void emitReportThumbnailsReady(); |
|
56 |
|
57 /** |
|
58 * Emits modelChanged signal to itself. |
|
59 */ |
|
60 void emitModelChanged(); |
|
61 |
|
62 /** |
|
63 * Emits aboutToQuit signal to itself. |
|
64 */ |
|
65 void emitAboutToQuit(); |
|
66 |
|
67 // |
|
68 // Test methods for VideoThumbnailData's methods. |
|
69 // |
|
70 |
|
71 /** |
|
72 * Calls CVideoThumbnailDataPrivate::initialize |
|
73 */ |
|
74 void initialize(); |
|
75 |
|
76 /** |
|
77 * Calls CVideoThumbnailDataPrivate::cleanup |
|
78 */ |
|
79 void cleanup(); |
|
80 |
|
81 /** |
|
82 * Calls CVideoThumbnailDataPrivate::connectSignals |
|
83 */ |
|
84 void connectSignals(); |
|
85 |
|
86 /** |
|
87 * Calls CVideoThumbnailDataPrivate::disconnectSignals |
|
88 */ |
|
89 void disconnectSignals(); |
|
90 |
|
91 /** |
|
92 * Calls CVideoThumbnailDataPrivate::defaultThumbnail |
|
93 */ |
|
94 const QIcon* defaultThumbnail(TMPXItemId mediaId); |
|
95 |
|
96 /** |
|
97 * Calls CVideoThumbnailDataPrivate::continueBackgroundFetch |
|
98 */ |
|
99 void continueBackgroundFetch(); |
|
100 |
|
101 /** |
|
102 * Calls CVideoThumbnailDataPrivate::startFetchingThumbnails |
|
103 */ |
|
104 int startFetchingThumbnails(const QList<QModelIndex> &indexes, int priority); |
|
105 |
|
106 /** |
|
107 * Calls CVideoThumbnailDataPrivate::startFetchingThumbnail |
|
108 */ |
|
109 int startFetchingThumbnail(TMPXItemId mediaId, int priority); |
|
110 |
|
111 signals: |
|
112 |
|
113 /** |
|
114 * Signal. |
|
115 */ |
|
116 void doBackgroundFetchingSignal(); |
|
117 |
|
118 /** |
|
119 * Signal. |
|
120 */ |
|
121 void modelChangedSignal(); |
|
122 |
|
123 /** |
|
124 * Signal. |
|
125 */ |
|
126 void reportThumbnailsReadySignal(); |
|
127 |
|
128 /** |
|
129 * Signal. |
|
130 */ |
|
131 void aboutToQuitSignal(); |
|
132 |
|
133 private: |
|
134 |
|
135 }; |
|
136 |
|
137 #endif // _VIDEOTHUMBNAILDATATESTER_H_ |
|
138 |
|
139 // End of file |
|
140 |