|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __LOGPACKAGE_H__ |
|
17 #define __LOGPACKAGE_H__ |
|
18 |
|
19 #include <s32mem.h> |
|
20 #include <logcli.h> |
|
21 |
|
22 class CLogPackage : public CBase |
|
23 /** |
|
24 @internalComponent |
|
25 */ |
|
26 { |
|
27 public: |
|
28 IMPORT_C static CLogPackage* NewL(); |
|
29 IMPORT_C ~CLogPackage(); |
|
30 // |
|
31 IMPORT_C void SetLogEventL(const CLogEvent& aEvent); |
|
32 IMPORT_C void GetLogEventL(CLogEvent& aEvent) const; |
|
33 // |
|
34 IMPORT_C void SetLogEventTypeL(const CLogEventType& aType); |
|
35 IMPORT_C void GetLogEventTypeL(CLogEventType& aType) const; |
|
36 // |
|
37 IMPORT_C void SetLogConfigL(const TLogConfig& aConfig); |
|
38 IMPORT_C void GetLogConfigL(TLogConfig& aConfig) const; |
|
39 // |
|
40 IMPORT_C void SetLogFilterListL(const CLogFilterList& aFilterList); |
|
41 IMPORT_C void GetLogFilterListL(CLogFilterList& aFilterList) const; |
|
42 // |
|
43 inline TPtr8& Ptr(); |
|
44 inline void ResizeL(TInt aSize); |
|
45 // |
|
46 private: |
|
47 CLogPackage(); |
|
48 void ConstructL(); |
|
49 // |
|
50 private: |
|
51 CBufFlat* iBuffer; |
|
52 TPtr8 iPtr; |
|
53 }; |
|
54 |
|
55 inline TPtr8& CLogPackage::Ptr() |
|
56 { |
|
57 iPtr.Set(iBuffer->Ptr(0)); |
|
58 return iPtr; |
|
59 } |
|
60 |
|
61 inline void CLogPackage::ResizeL(TInt aSize) |
|
62 { |
|
63 iBuffer->ResizeL(aSize); |
|
64 } |
|
65 |
|
66 #endif |
|
67 |