equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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 |
|
18 #include "cxestillimagesymbian.h" |
|
19 #include "cxutils.h" |
|
20 |
|
21 int CxeStillImageSymbian::mNextId = CxeStillImage::INVALID_ID + 1; |
|
22 |
|
23 CxeStillImageSymbian::CxeStillImageSymbian() |
|
24 : mSnapshot(), |
|
25 mDataItem(NULL), |
|
26 mSaved(false), |
|
27 mId(++mNextId) |
|
28 { |
|
29 } |
|
30 |
|
31 CxeStillImageSymbian::~CxeStillImageSymbian() |
|
32 { |
|
33 // Not owned. |
|
34 mDataItem = NULL; |
|
35 } |
|
36 |
|
37 CxeImageDataItem* CxeStillImageSymbian::dataItem() |
|
38 { |
|
39 return mDataItem; |
|
40 } |
|
41 |
|
42 QString CxeStillImageSymbian::filename() const |
|
43 { |
|
44 return mFilename; |
|
45 } |
|
46 |
|
47 QPixmap CxeStillImageSymbian::snapshot() const |
|
48 { |
|
49 return mSnapshot; |
|
50 } |
|
51 |
|
52 bool CxeStillImageSymbian::saved() const |
|
53 { |
|
54 return mSaved; |
|
55 } |
|
56 |
|
57 int CxeStillImageSymbian::id() const |
|
58 { |
|
59 return mId; |
|
60 } |
|
61 |
|
62 void CxeStillImageSymbian::setSnapshot( QPixmap pixmap ) |
|
63 { |
|
64 mSnapshot = pixmap; |
|
65 } |
|
66 |
|
67 void CxeStillImageSymbian::setFilename( const QString& filename ) |
|
68 { |
|
69 mFilename = filename; |
|
70 } |
|
71 |
|
72 void CxeStillImageSymbian::setSaved( bool saved ) |
|
73 { |
|
74 mSaved = saved; |
|
75 } |
|
76 |
|
77 void CxeStillImageSymbian::setDataItem( CxeImageDataItem* dataItem ) |
|
78 { |
|
79 mDataItem = dataItem; |
|
80 } |