Update contrib.
1 // Copyright (c) 2002-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
18 #include "logpackage.h"
21 const TInt KLogPackageGranuality = 0x200;
24 CLogPackage::CLogPackage()
29 EXPORT_C CLogPackage::~CLogPackage()
34 void CLogPackage::ConstructL()
36 iBuffer = CBufFlat::NewL(KLogPackageGranuality);
39 EXPORT_C CLogPackage* CLogPackage::NewL()
41 CLogPackage* self = new(ELeave)CLogPackage;
42 CleanupStack::PushL(self);
44 CleanupStack::Pop(self);
48 EXPORT_C void CLogPackage::SetLogEventL(const CLogEvent& aEvent)
50 RBufWriteStream stream(*iBuffer);
55 EXPORT_C void CLogPackage::GetLogEventL(CLogEvent& aEvent) const
57 RBufReadStream stream(*iBuffer);
61 EXPORT_C void CLogPackage::SetLogEventTypeL(const CLogEventType& aType)
63 RBufWriteStream stream(*iBuffer);
68 EXPORT_C void CLogPackage::GetLogEventTypeL(CLogEventType& aType) const
70 RBufReadStream stream(*iBuffer);
74 EXPORT_C void CLogPackage::SetLogConfigL(const TLogConfig& aConfig)
76 RBufWriteStream stream(*iBuffer);
81 EXPORT_C void CLogPackage::GetLogConfigL(TLogConfig& aConfig) const
83 RBufReadStream stream(*iBuffer);
87 EXPORT_C void CLogPackage::SetLogFilterListL(const CLogFilterList& aFilterList)
89 RBufWriteStream stream(*iBuffer);
90 aFilterList.ExternalizeL(stream);
94 EXPORT_C void CLogPackage::GetLogFilterListL(CLogFilterList& aFilterList) const
96 RBufReadStream stream(*iBuffer);
97 aFilterList.InternalizeL(stream);