equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
52 * create thumbnail for the given image/video file name and data. |
52 * create thumbnail for the given image/video file name and data. |
53 */ |
53 */ |
54 int ThumbnailManager::getThumbnail(const QString& filename, void * clientData, int priority) |
54 int ThumbnailManager::getThumbnail(const QString& filename, void * clientData, int priority) |
55 { |
55 { |
56 CX_DEBUG_ENTER_FUNCTION(); |
56 CX_DEBUG_ENTER_FUNCTION(); |
|
57 Q_UNUSED(clientData); |
57 Q_UNUSED(priority); |
58 Q_UNUSED(priority); |
58 |
59 |
59 int id = 0; |
60 int id = 0; |
60 |
61 |
61 if (filename.isNull() || filename.isEmpty()) { |
62 if (filename.isNull() || filename.isEmpty()) { |
62 id = -1; |
63 id = -1; |
63 } else { |
64 } else { |
114 void ThumbnailManager::emulateThumbnailReady() |
115 void ThumbnailManager::emulateThumbnailReady() |
115 { |
116 { |
116 // get the current thumbnail id |
117 // get the current thumbnail id |
117 int id = mCurrentThumbnailId - 1; |
118 int id = mCurrentThumbnailId - 1; |
118 int status = KErrNone; |
119 int status = KErrNone; |
119 |
120 |
120 if (id == -1) { |
121 if (id == -1) { |
121 // if there are no valid thumbnails |
122 // if there are no valid thumbnails |
122 status = KErrNotFound; |
123 status = KErrNotFound; |
123 } |
124 } |
124 emit thumbnailReady(QPixmap(), 0, id, status); |
125 emit thumbnailReady(QPixmap(), 0, id, status); |