|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file te_uloggermclsuitedefs.cpp |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #include <e32cons.h> |
|
22 #include <e32def.h> |
|
23 #include "te_uloggermclsuitedefs.h" |
|
24 #include "lightlogger.h" |
|
25 |
|
26 CClearConfig::~CClearConfig() |
|
27 { |
|
28 /*Destructor*/ |
|
29 } |
|
30 |
|
31 CClearConfig::CClearConfig() |
|
32 { |
|
33 /*Constructor*/ |
|
34 } |
|
35 |
|
36 void CClearConfig::Clear(RULogger& loggerSession) |
|
37 { |
|
38 loggerSession.Stop(); |
|
39 loggerSession.DeActivateInputPlugin(); |
|
40 CArrayPtrFlat<HBufC8> *allplugins = new (ELeave)CArrayPtrFlat<HBufC8>(1); |
|
41 loggerSession.GetInstalledOutputPlugins(*allplugins); |
|
42 for(TInt i=0;i<(allplugins->Count());i++) |
|
43 if(allplugins->Count()) |
|
44 { |
|
45 TBuf8<50> dataBuf; |
|
46 dataBuf.Copy(allplugins->At(i)->Des()); |
|
47 loggerSession.RemovePluginConfigurations(dataBuf); |
|
48 } |
|
49 CArrayFixFlat<TUint8> *getfilter = new (ELeave)CArrayFixFlat<TUint8>(1); |
|
50 loggerSession.GetPrimaryFiltersEnabled(*getfilter); |
|
51 TInt Result=loggerSession.SetPrimaryFiltersEnabled(*getfilter, EFalse); |
|
52 RArray<TUint32> get2filter; |
|
53 loggerSession.GetSecondaryFiltersEnabled(get2filter); |
|
54 loggerSession.SetSecondaryFiltersEnabled(get2filter, EFalse); |
|
55 loggerSession.SetSecondaryFilteringEnabled(ETrue); |
|
56 loggerSession.SetBufferSize(1024); |
|
57 loggerSession.SetNotificationSize(512); |
|
58 } |