diff -r 8b2d6d0384b0 -r d9aefe59d544 camerauis/cameraxui/cxengine/inc/cxethumbnailmanagersymbian.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/camerauis/cameraxui/cxengine/inc/cxethumbnailmanagersymbian.h Fri Apr 16 14:51:30 2010 +0300 @@ -0,0 +1,74 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ +#ifndef CXETHUMBNAILMANAGERSYMBIAN_H_ +#define CXETHUMBNAILMANAGERSYMBIAN_H_ + +#include +#include +#include +#include + +// forward declaration +class ThumbnailManager; + + +/*! +* Class handles thumbnail creation for both still and video. It uses Thumbnail manager +* component for creating the thumb nails for the given snapshot and the file name. +*/ +class CxeThumbnailManagerSymbian : public QObject +{ + Q_OBJECT + +public: + + CxeThumbnailManagerSymbian(); + ~CxeThumbnailManagerSymbian(); + +public slots: + + /** + * Creates from given thumbnail. + */ + virtual void createThumbnail(const QString& filename, QPixmap thumbnail); + + /** + * Cancels thumbnail creation. + */ + virtual void cancelThumbnail(const QString& filename); + +signals: + + /** + * Informs clients about thumbnail ready event + */ + void thumbnailReady(QPixmap thumbnail, int error); + +private slots: + + /** + * slot that gets called when thumbnail manager has created a thumbnail + */ + void thumbnailReady(QPixmap thumbnail, void * data, int id, int error); + +private: + ThumbnailManager* mThumbnailManager; + // file name, thumbnail id hash table + QHash mThumbnailRequests; +}; + +#endif /* CXETHUMBNAILMANAGERSYMBIAN_H_ */