camerauis/cameraxui/cxengine/inc/cxestillimagedesktop.h
author hgs
Wed, 18 Aug 2010 14:02:45 +0300
changeset 51 ccc0e7e3344f
parent 45 24fd82631616
permissions -rw-r--r--
201031_1
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
45
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
#ifndef CXESTILLIMAGEDESKTOP_H
hgs
parents:
diff changeset
    18
#define CXESTILLIMAGEDESKTOP_H
hgs
parents:
diff changeset
    19
hgs
parents:
diff changeset
    20
//  Include Files
hgs
parents:
diff changeset
    21
#include <QString>
hgs
parents:
diff changeset
    22
#include <QPixmap>
hgs
parents:
diff changeset
    23
#include "cxestillimage.h"
hgs
parents:
diff changeset
    24
hgs
parents:
diff changeset
    25
class CxeImageDataItem;
hgs
parents:
diff changeset
    26
hgs
parents:
diff changeset
    27
class CxeStillImageDesktop : public CxeStillImage
hgs
parents:
diff changeset
    28
{
hgs
parents:
diff changeset
    29
public:
hgs
parents:
diff changeset
    30
    CxeStillImageDesktop();
hgs
parents:
diff changeset
    31
    virtual ~CxeStillImageDesktop();
hgs
parents:
diff changeset
    32
hgs
parents:
diff changeset
    33
public: // from CxeStillImage
hgs
parents:
diff changeset
    34
    CxeImageDataItem *dataItem(); // NULL if already saved
hgs
parents:
diff changeset
    35
    QString filename() const;
hgs
parents:
diff changeset
    36
    QPixmap snapshot() const;
hgs
parents:
diff changeset
    37
    bool saved() const;
hgs
parents:
diff changeset
    38
    int id() const;
hgs
parents:
diff changeset
    39
hgs
parents:
diff changeset
    40
public:
hgs
parents:
diff changeset
    41
    void setSnapshot(QPixmap pixmap);
hgs
parents:
diff changeset
    42
    void setFilename(const QString &filename);
hgs
parents:
diff changeset
    43
    void setSaved(bool saved);
hgs
parents:
diff changeset
    44
    void setDataItem(CxeImageDataItem *dataItem);
hgs
parents:
diff changeset
    45
hgs
parents:
diff changeset
    46
private:
hgs
parents:
diff changeset
    47
    QPixmap mSnapshot;
hgs
parents:
diff changeset
    48
    CxeImageDataItem *mDataItem; // not own
hgs
parents:
diff changeset
    49
    QString mFilename;
hgs
parents:
diff changeset
    50
    bool mSaved;
hgs
parents:
diff changeset
    51
    const int mId;
hgs
parents:
diff changeset
    52
    static int mNextId;
hgs
parents:
diff changeset
    53
};
hgs
parents:
diff changeset
    54
hgs
parents:
diff changeset
    55
#endif  // CXESTILLIMAGEDESKTOP_H