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 #ifndef CXEFAKEIMAGEDATAITEM_H |
|
18 #define CXEFAKEIMAGEDATAITEM_H |
|
19 |
|
20 // Include Files |
|
21 #include "cxeimagedataitem.h" |
|
22 #include "cxeerror.h" |
|
23 |
|
24 class CxeFakeImageDataItem : public CxeImageDataItem |
|
25 { |
|
26 Q_OBJECT |
|
27 |
|
28 public: // constructor and destructor |
|
29 CxeFakeImageDataItem(int index, QByteArray data, QString filename, int id, bool addLocation); |
|
30 virtual ~CxeFakeImageDataItem(); |
|
31 |
|
32 public: // from CxeImageDataItem |
|
33 CxeError::Id save(); |
|
34 CxeImageDataItem::State state() const; |
|
35 int id() const; |
|
36 QString path() const; |
|
37 bool addLocation() const; |
|
38 |
|
39 private: |
|
40 int mId; |
|
41 int mIndex; |
|
42 QByteArray mData; |
|
43 QString mFileName; |
|
44 bool mAddLocationInfo; |
|
45 CxeImageDataItem::State mState; |
|
46 }; |
|
47 |
|
48 #endif // CXEFAKEIMAGEDATAITEM_H |