30
|
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 |
// INCLUDES
|
|
19 |
#define private public
|
|
20 |
#include "videothumbnaildata_p.h"
|
|
21 |
#undef private
|
|
22 |
|
|
23 |
#include "videothumbnaildatatester.h"
|
|
24 |
|
|
25 |
// -----------------------------------------------------------------------------
|
|
26 |
// VideoTnDataTester::VideoTnDataTester()
|
|
27 |
// -----------------------------------------------------------------------------
|
|
28 |
//
|
|
29 |
VideoThumbnailDataTester::VideoThumbnailDataTester()
|
|
30 |
{
|
|
31 |
connect(this, SIGNAL(doBackgroundFetchingSignal()), this, SLOT(doBackgroundFetching()));
|
|
32 |
connect(this, SIGNAL(reportThumbnailsReadySignal()), this, SLOT(reportThumbnailsReadySlot()));
|
34
|
33 |
connect(this, SIGNAL(aboutToQuitSignal()), this, SLOT(aboutToQuitSlot()));
|
30
|
34 |
}
|
|
35 |
|
|
36 |
// -----------------------------------------------------------------------------
|
|
37 |
// VideoThumbnailDataTester::~VideoThumbnailDataTester()
|
|
38 |
// -----------------------------------------------------------------------------
|
|
39 |
//
|
|
40 |
VideoThumbnailDataTester::~VideoThumbnailDataTester()
|
|
41 |
{
|
|
42 |
disconnect(this, SIGNAL(doBackgroundFetchingSignal()), this, SLOT(doBackgroundFetching()));
|
|
43 |
disconnect(this, SIGNAL(reportThumbnailsReadySignal()), this, SLOT(reportThumbnailsReadySlot()));
|
34
|
44 |
disconnect(this, SIGNAL(aboutToQuitSignal()), this, SLOT(aboutToQuitSlot()));
|
30
|
45 |
}
|
|
46 |
|
|
47 |
// -----------------------------------------------------------------------------
|
|
48 |
// VideoThumbnailDataTester::emitDoBackgroundFetching()
|
|
49 |
// -----------------------------------------------------------------------------
|
|
50 |
//
|
|
51 |
void VideoThumbnailDataTester::emitDoBackgroundFetching()
|
|
52 |
{
|
|
53 |
emit doBackgroundFetchingSignal();
|
|
54 |
}
|
|
55 |
|
|
56 |
// -----------------------------------------------------------------------------
|
|
57 |
// VideoThumbnailDataTester::emitDoBackgroundFetching()
|
|
58 |
// -----------------------------------------------------------------------------
|
|
59 |
//
|
|
60 |
void VideoThumbnailDataTester::emitReportThumbnailsReady()
|
|
61 |
{
|
|
62 |
emit reportThumbnailsReadySignal();
|
|
63 |
}
|
|
64 |
|
|
65 |
// -----------------------------------------------------------------------------
|
34
|
66 |
// VideoThumbnailDataTester::emitAboutToQuit()
|
30
|
67 |
// -----------------------------------------------------------------------------
|
|
68 |
//
|
34
|
69 |
void VideoThumbnailDataTester::emitAboutToQuit()
|
30
|
70 |
{
|
34
|
71 |
emit aboutToQuitSignal();
|
30
|
72 |
}
|
|
73 |
|
|
74 |
// -----------------------------------------------------------------------------
|
|
75 |
// VideoThumbnailDataTester::initialize()
|
|
76 |
// -----------------------------------------------------------------------------
|
|
77 |
//
|
58
|
78 |
int VideoThumbnailDataTester::initialize()
|
30
|
79 |
{
|
58
|
80 |
return VideoThumbnailDataPrivate::initialize();
|
30
|
81 |
}
|
|
82 |
|
|
83 |
// -----------------------------------------------------------------------------
|
|
84 |
// VideoThumbnailDataTester::cleanup()
|
|
85 |
// -----------------------------------------------------------------------------
|
|
86 |
//
|
|
87 |
void VideoThumbnailDataTester::cleanup()
|
|
88 |
{
|
|
89 |
VideoThumbnailDataPrivate::cleanup();
|
|
90 |
}
|
|
91 |
|
|
92 |
// -----------------------------------------------------------------------------
|
|
93 |
// VideoThumbnailDataTester::connectSignals()
|
|
94 |
// -----------------------------------------------------------------------------
|
|
95 |
//
|
|
96 |
void VideoThumbnailDataTester::connectSignals()
|
|
97 |
{
|
|
98 |
VideoThumbnailDataPrivate::connectSignals();
|
|
99 |
}
|
|
100 |
|
|
101 |
// -----------------------------------------------------------------------------
|
|
102 |
// VideoThumbnailDataTester::disconnectSignals()
|
|
103 |
// -----------------------------------------------------------------------------
|
|
104 |
//
|
|
105 |
void VideoThumbnailDataTester::disconnectSignals()
|
|
106 |
{
|
|
107 |
VideoThumbnailDataPrivate::disconnectSignals();
|
|
108 |
}
|
|
109 |
|
|
110 |
// -----------------------------------------------------------------------------
|
|
111 |
// VideoThumbnailDataTester::defaultThumbnail()
|
|
112 |
// -----------------------------------------------------------------------------
|
|
113 |
//
|
|
114 |
const QIcon* VideoThumbnailDataTester::defaultThumbnail(TMPXItemId mediaId)
|
|
115 |
{
|
|
116 |
return VideoThumbnailDataPrivate::defaultThumbnail(mediaId);
|
|
117 |
}
|
|
118 |
|
|
119 |
// -----------------------------------------------------------------------------
|
|
120 |
// VideoThumbnailDataTester::continueBackgroundFetch()
|
|
121 |
// -----------------------------------------------------------------------------
|
|
122 |
//
|
|
123 |
void VideoThumbnailDataTester::continueBackgroundFetch()
|
|
124 |
{
|
|
125 |
VideoThumbnailDataPrivate::continueBackgroundFetch();
|
|
126 |
}
|
|
127 |
|
34
|
128 |
|
|
129 |
// -----------------------------------------------------------------------------
|
|
130 |
// VideoThumbnailDataTester::startFetchingThumbnails()
|
|
131 |
// -----------------------------------------------------------------------------
|
|
132 |
//
|
|
133 |
int VideoThumbnailDataTester::startFetchingThumbnails(const QList<QModelIndex> &indexes, int priority)
|
|
134 |
{
|
|
135 |
return VideoThumbnailDataPrivate::startFetchingThumbnails(indexes, priority);
|
|
136 |
}
|
|
137 |
|
|
138 |
// -----------------------------------------------------------------------------
|
|
139 |
// VideoThumbnailDataTester::continueBackgroundFetch()
|
|
140 |
// -----------------------------------------------------------------------------
|
|
141 |
//
|
|
142 |
int VideoThumbnailDataTester::startFetchingThumbnail(TMPXItemId mediaId, int priority)
|
|
143 |
{
|
|
144 |
return VideoThumbnailDataPrivate::startFetchingThumbnail(mediaId, priority);
|
|
145 |
}
|
|
146 |
|
30
|
147 |
// End of file
|
|
148 |
|