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". |
165 */ |
165 */ |
166 |
166 |
167 CxeError::Id CxeImageDataItemSymbian::save() |
167 CxeError::Id CxeImageDataItemSymbian::save() |
168 { |
168 { |
169 CX_DEBUG_ENTER_FUNCTION(); |
169 CX_DEBUG_ENTER_FUNCTION(); |
|
170 OstTrace0(camerax_performance, CXEIMAGEDATAITEMSYMBIAN_SAVE_IN, "msg: e_CX_IMAGEDATAITEM_SAVE 1"); |
170 |
171 |
171 mError = KErrNone; |
172 mError = KErrNone; |
172 |
173 |
173 CX_DEBUG(( "Starting to save %s", mPath.toAscii().constData() )); |
174 CX_DEBUG(( "Starting to save %s", mPath.toAscii().constData() )); |
174 |
175 |
225 CX_DEBUG(("file write completed")); |
226 CX_DEBUG(("file write completed")); |
226 } |
227 } |
227 |
228 |
228 mFile.Close(); //~400us |
229 mFile.Close(); //~400us |
229 mFs.Close(); //~450us |
230 mFs.Close(); //~450us |
230 OstTrace0(camerax_performance, CXEIMAGEDATAIMTEMSYMBIAN_SAVED, "msg: e_CX_SHOT_TO_SAVE 0"); |
231 OstTrace0(camerax_performance, CXEIMAGEDATAITEMSYMBIAN_SAVED, "msg: e_CX_SHOT_TO_SAVE 0"); |
231 |
232 |
232 if (mError == KErrNone) { |
233 if (mError == KErrNone) { |
233 setState(CxeImageDataItem::Saved); |
234 setState(CxeImageDataItem::Saved); |
234 } else { |
235 } else { |
235 setState(CxeImageDataItem::SaveFailed); |
236 setState(CxeImageDataItem::SaveFailed); |
236 } |
237 } |
237 emit imageSaved(CxeErrorHandlingSymbian::map(mError), mPath, mId); |
238 emit imageSaved(CxeErrorHandlingSymbian::map(mError), mPath, mId); |
238 |
239 |
239 CX_DEBUG(("mError: %d", mError)); |
240 OstTrace0(camerax_performance, CXEIMAGEDATAITEMSYMBIAN_SAVE_OUT, "msg: e_CX_IMAGEDATAITEM_SAVE 0"); |
240 CX_DEBUG_EXIT_FUNCTION(); |
241 CX_DEBUG_EXIT_FUNCTION(); |
241 return CxeErrorHandlingSymbian::map(mError); |
242 return CxeErrorHandlingSymbian::map(mError); |
242 } |
243 } |
243 |
244 |
244 /** |
245 /** |