equal
deleted
inserted
replaced
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". |
21 #include <f32file.h> // for RFile and RFs |
21 #include <f32file.h> // for RFile and RFs |
22 #include "cxeimagedataitem.h" |
22 #include "cxeimagedataitem.h" |
23 #include "cxestatemachine.h" |
23 #include "cxestatemachine.h" |
24 |
24 |
25 |
25 |
26 class RFs; |
|
27 |
|
28 class CxeImageDataItemSymbian : public CxeImageDataItem, |
26 class CxeImageDataItemSymbian : public CxeImageDataItem, |
29 public CxeStateMachine |
27 public CxeStateMachine |
30 { |
28 { |
31 Q_OBJECT |
29 Q_OBJECT |
32 public: // from CxeImageDataItemSymbian |
30 public: // from CxeImageDataItemSymbian |
40 |
38 |
41 CxeImageDataItem::State state() const; |
39 CxeImageDataItem::State state() const; |
42 CxeError::Id save(); |
40 CxeError::Id save(); |
43 int id() const; |
41 int id() const; |
44 bool isLocationEnabled() const; |
42 bool isLocationEnabled() const; |
45 |
43 |
46 public: // new methods |
44 public: // new methods |
47 QString path() const; |
45 QString path() const; |
48 |
46 |
49 protected: // from CxeStateMachine |
47 protected: // from CxeStateMachine |
50 void handleStateChanged( int newStateId, CxeError::Id error ); |
48 void handleStateChanged(int newStateId, CxeError::Id error); |
51 |
49 void initializeStates(); |
52 |
50 |
53 protected: |
51 protected: |
54 void initializeStates(); |
52 virtual bool checkDiskSpace(RFs *aFs, TInt aBytesToWrite, TInt aDrive); |
55 |
53 |
56 private: // private member functions |
54 private: // private member functions |
57 |
55 void trySave(); |
58 void saveCleanup(); // delete data and report |
56 void closeHandles(); |
59 int checkDiskSpace(RFs* aFs, TInt aBytesToWrite, TInt aDrive); |
|
60 |
|
61 |
57 |
62 private: // private data members |
58 private: // private data members |
63 |
59 |
64 int mIndex; |
60 int mIndex; |
65 int mError; |
|
66 int mId; |
61 int mId; |
67 |
62 |
68 // used for image saving |
63 // used for image saving |
69 QByteArray mData; |
64 QByteArray mData; |
70 bool mAddLocationInfo; |
65 bool mAddLocationInfo; |