equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2004-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 the License "Eclipse Public License v1.0" |
5 * under the terms of the License "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". |
33 #include "sisregistrypackage.h" |
33 #include "sisregistrypackage.h" |
34 #include "arrayutils.h" |
34 #include "arrayutils.h" |
35 #include "hashcontainer.h" |
35 #include "hashcontainer.h" |
36 #include "dessisdataprovider.h" |
36 #include "dessisdataprovider.h" |
37 #include "siscontroller.h" |
37 #include "siscontroller.h" |
38 |
38 #include "cleanuputils.h" |
39 |
39 |
40 using namespace Swi; |
40 using namespace Swi; |
41 |
41 |
42 TInt StartSisRegistry() |
42 TInt StartSisRegistry() |
43 { |
43 { |
378 return output; |
378 return output; |
379 } |
379 } |
380 |
380 |
381 EXPORT_C void RSisRegistrySession::RetrieveLogFileL(RPointerArray<CLogEntry>& aLogEntry) |
381 EXPORT_C void RSisRegistrySession::RetrieveLogFileL(RPointerArray<CLogEntry>& aLogEntry) |
382 { |
382 { |
|
383 CleanupResetAndDestroyPushL(aLogEntry); |
383 HBufC8* buffer = SendReceiveBufferLC(EloggingFile); |
384 HBufC8* buffer = SendReceiveBufferLC(EloggingFile); |
384 |
385 |
385 RDesReadStream stream(*buffer); |
386 RDesReadStream stream(*buffer); |
386 CleanupClosePushL(stream); |
387 CleanupClosePushL(stream); |
387 TInt err; |
388 TInt err; |
406 } |
407 } |
407 while(err == KErrNone); |
408 while(err == KErrNone); |
408 } |
409 } |
409 |
410 |
410 CleanupStack::PopAndDestroy(2,buffer); //buffer,stream |
411 CleanupStack::PopAndDestroy(2,buffer); //buffer,stream |
|
412 CleanupStack::Pop(&aLogEntry); |
411 } |
413 } |
412 |
414 |
413 HBufC8* RSisRegistrySession::SendReceiveBufferLC(TInt aMessage, TPtrC8 aInputBuffer, TInt aThirdArgument) |
415 HBufC8* RSisRegistrySession::SendReceiveBufferLC(TInt aMessage, TPtrC8 aInputBuffer, TInt aThirdArgument) |
414 { |
416 { |
415 HBufC8* output = HBufC8::NewLC(KDefaultBufferSize); |
417 HBufC8* output = HBufC8::NewLC(KDefaultBufferSize); |