camerauis/cameraxui/cxengine/inc/cxeimagedataitemdesktop.h
branchRCL_3
changeset 24 bac7acad7cb3
parent 23 61bc0f252b2b
child 25 2c87b2808fd7
equal deleted inserted replaced
23:61bc0f252b2b 24:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2010 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 CXEIMAGEDATAITEMDESKTOP_H
       
    18 #define CXEIMAGEDATAITEMDESKTOP_H
       
    19 
       
    20 #include <QPixmap>
       
    21 #include "cxeimagedataitem.h"
       
    22 
       
    23 
       
    24 /**
       
    25  * CxeImageDataItem represents a single object that is in a queue to be saved to
       
    26  * the file system.
       
    27  */
       
    28 class CxeImageDataItemDesktop : public CxeImageDataItem
       
    29 {
       
    30     Q_OBJECT
       
    31 
       
    32 public:
       
    33     CxeImageDataItemDesktop(int index, QByteArray data, QString filename, int id);
       
    34     CxeImageDataItemDesktop(int index, QPixmap pixmapData, QString filename, int id);
       
    35 public: // from CxeImageDataItem
       
    36     virtual CxeError::Id save();
       
    37     virtual CxeImageDataItem::State state() const;
       
    38     virtual int id() const;
       
    39     virtual QString path() const;
       
    40 
       
    41 protected:
       
    42     int mIndex;
       
    43     int mId;
       
    44     QByteArray mData;
       
    45     QString mFilename;
       
    46     QPixmap mPixmapData;
       
    47     CxeImageDataItem::State mState;
       
    48 };
       
    49 
       
    50 #endif // CXEIMAGEDATAITEMDESKTOP_H