equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009-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 CXESTILLIMAGESYMBIAN_H |
|
18 #define CXESTILLIMAGESYMBIAN_H |
|
19 |
|
20 // Include Files |
|
21 #include <QObject> |
|
22 #include "cxeerror.h" |
|
23 #include "cxestillimage.h" |
|
24 |
|
25 class QString; |
|
26 class QPixmap; |
|
27 class CxeImageDataItem; |
|
28 |
|
29 class CxeStillImageSymbian : public QObject, |
|
30 public CxeStillImage |
|
31 { |
|
32 Q_OBJECT |
|
33 public: |
|
34 CxeStillImageSymbian(); |
|
35 virtual ~CxeStillImageSymbian(); |
|
36 |
|
37 public: // from CxeStillImage |
|
38 CxeImageDataItem *dataItem(); // NULL if already saved |
|
39 QString filename() const; |
|
40 QPixmap snapshot() const; |
|
41 bool saved() const; |
|
42 int id() const; |
|
43 |
|
44 public: |
|
45 void setSnapshot(QPixmap pixmap); |
|
46 void setFilename(const QString &filename); |
|
47 void setSaved(bool saved); |
|
48 void setDataItem(CxeImageDataItem *dataItem); |
|
49 |
|
50 private slots: |
|
51 void imageDataSaved(CxeError::Id status); |
|
52 |
|
53 private: |
|
54 QPixmap mSnapshot; |
|
55 CxeImageDataItem *mDataItem; // not own |
|
56 QString mFilename; |
|
57 bool mSaved; |
|
58 const int mId; |
|
59 static int mNextId; |
|
60 }; |
|
61 |
|
62 #endif // CXESTILLIMAGESYMBIAN_H |
|