45
|
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 CXESTILLIMAGEDESKTOP_H
|
|
18 |
#define CXESTILLIMAGEDESKTOP_H
|
|
19 |
|
|
20 |
// Include Files
|
|
21 |
#include <QString>
|
|
22 |
#include <QPixmap>
|
|
23 |
#include "cxestillimage.h"
|
|
24 |
|
|
25 |
class CxeImageDataItem;
|
|
26 |
|
|
27 |
class CxeStillImageDesktop : public CxeStillImage
|
|
28 |
{
|
|
29 |
public:
|
|
30 |
CxeStillImageDesktop();
|
|
31 |
virtual ~CxeStillImageDesktop();
|
|
32 |
|
|
33 |
public: // from CxeStillImage
|
|
34 |
CxeImageDataItem *dataItem(); // NULL if already saved
|
|
35 |
QString filename() const;
|
|
36 |
QPixmap snapshot() const;
|
|
37 |
bool saved() const;
|
|
38 |
int id() const;
|
|
39 |
|
|
40 |
public:
|
|
41 |
void setSnapshot(QPixmap pixmap);
|
|
42 |
void setFilename(const QString &filename);
|
|
43 |
void setSaved(bool saved);
|
|
44 |
void setDataItem(CxeImageDataItem *dataItem);
|
|
45 |
|
|
46 |
private:
|
|
47 |
QPixmap mSnapshot;
|
|
48 |
CxeImageDataItem *mDataItem; // not own
|
|
49 |
QString mFilename;
|
|
50 |
bool mSaved;
|
|
51 |
const int mId;
|
|
52 |
static int mNextId;
|
|
53 |
};
|
|
54 |
|
|
55 |
#endif // CXESTILLIMAGEDESKTOP_H
|