diff -r f54ad444594d -r 61bc0f252b2b camerauis/cameraxui/cxengine/inc/api/cxestillimage.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/camerauis/cameraxui/cxengine/inc/api/cxestillimage.h Tue Aug 31 15:03:46 2010 +0300 @@ -0,0 +1,61 @@ +/* +* 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 CXESTILLIMAGE_H +#define CXESTILLIMAGE_H + +#include +#include +#include + +class CxeImageDataItem; + +/** + * The CxeStillImage class represents a single image (part of a burst capture). This class can + * be used to access the file name and snapshot bitmap for the image. + * + * The dataItem method can be used to access the CxeImageDataItem object, which represents + * the image in the file saving queue. + */ +class CxeStillImage +{ +public: + static const int INVALID_ID = -1; + + virtual CxeImageDataItem* dataItem() = 0; // NULL if already saved or if image data has not yet been received + + virtual QString filename() const = 0; + + /** + * Get the snapshot image. + * + * @return Snapshot pixmap. May be null pixmap if no snapshot is available. + */ + virtual QPixmap snapshot() const = 0; + + virtual bool saved() const = 0; + + virtual int id() const = 0; + +protected: + CxeStillImage() {} + +private: + Q_DISABLE_COPY( CxeStillImage ) +}; + + +#endif // CXESTILLIMAGE_H