camerauis/cameraxui/cxengine/inc/api/cxestillimage.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     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:
       
    15 *
       
    16 */
       
    17 #ifndef CXESTILLIMAGE_H
       
    18 #define CXESTILLIMAGE_H
       
    19 
       
    20 #include <QString>
       
    21 #include <QPixmap>
       
    22 #include <QObject>
       
    23 
       
    24 class CxeImageDataItem;
       
    25 
       
    26 /**
       
    27  * The CxeStillImage class represents a single image (part of a burst capture). This class can
       
    28  * be used to access the file name and snapshot bitmap for the image.
       
    29  *
       
    30  * The dataItem method can be used to access the CxeImageDataItem object, which represents
       
    31  * the image in the file saving queue.
       
    32  */
       
    33 class CxeStillImage
       
    34 {
       
    35 public:
       
    36     static const int INVALID_ID = -1;
       
    37 
       
    38     virtual CxeImageDataItem* dataItem() = 0; // NULL if already saved or if image data has not yet been received
       
    39 
       
    40     virtual QString filename() const = 0;
       
    41 
       
    42     /**
       
    43      * Get the snapshot image.
       
    44      *
       
    45      * @return Snapshot pixmap. May be null pixmap if no snapshot is available.
       
    46      */
       
    47     virtual QPixmap snapshot() const = 0;
       
    48 
       
    49     virtual bool saved() const = 0;
       
    50 
       
    51     virtual int id() const = 0;
       
    52 
       
    53 protected:
       
    54     CxeStillImage() {}
       
    55 
       
    56 private:
       
    57     Q_DISABLE_COPY( CxeStillImage )
       
    58 };
       
    59 
       
    60 
       
    61 #endif // CXESTILLIMAGE_H