1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
16 */ |
16 */ |
17 #ifndef CXESTILLIMAGESYMBIAN_H |
17 #ifndef CXESTILLIMAGESYMBIAN_H |
18 #define CXESTILLIMAGESYMBIAN_H |
18 #define CXESTILLIMAGESYMBIAN_H |
19 |
19 |
20 // Include Files |
20 // Include Files |
21 #include <QString> |
21 #include <QObject> |
22 #include <QPixmap> |
22 #include "cxeerror.h" |
23 #include "cxestillimage.h" |
23 #include "cxestillimage.h" |
24 |
24 |
|
25 class QString; |
|
26 class QPixmap; |
25 class CxeImageDataItem; |
27 class CxeImageDataItem; |
26 |
28 |
27 class CxeStillImageSymbian : public CxeStillImage |
29 class CxeStillImageSymbian : public QObject, |
|
30 public CxeStillImage |
28 { |
31 { |
|
32 Q_OBJECT |
29 public: |
33 public: |
30 CxeStillImageSymbian(); |
34 CxeStillImageSymbian(); |
31 virtual ~CxeStillImageSymbian(); |
35 virtual ~CxeStillImageSymbian(); |
32 |
36 |
33 public: // from CxeStillImage |
37 public: // from CxeStillImage |
34 CxeImageDataItem* dataItem(); // NULL if already saved |
38 CxeImageDataItem *dataItem(); // NULL if already saved |
35 QString filename() const; |
39 QString filename() const; |
36 QPixmap snapshot() const; |
40 QPixmap snapshot() const; |
37 bool saved() const; |
41 bool saved() const; |
38 int id() const; |
42 int id() const; |
39 |
43 |
40 public: |
44 public: |
41 void setSnapshot( QPixmap pixmap ); |
45 void setSnapshot(QPixmap pixmap); |
42 void setFilename( const QString& filename ); |
46 void setFilename(const QString &filename); |
43 void setSaved( bool saved ); |
47 void setSaved(bool saved); |
44 void setDataItem( CxeImageDataItem* dataItem ); |
48 void setDataItem(CxeImageDataItem *dataItem); |
|
49 |
|
50 private slots: |
|
51 void imageDataSaved(CxeError::Id status); |
45 |
52 |
46 private: |
53 private: |
47 QPixmap mSnapshot; |
54 QPixmap mSnapshot; |
48 CxeImageDataItem *mDataItem; // not own |
55 CxeImageDataItem *mDataItem; // not own |
49 QString mFilename; |
56 QString mFilename; |