|
1 // Copyright (c) 2007-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 // ULogger shared |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalTechnology |
|
21 @prototype |
|
22 */ |
|
23 |
|
24 #ifndef ULOGGERSHARED_H |
|
25 #define ULOGGERSHARED_H |
|
26 |
|
27 #include <e32base.h> |
|
28 |
|
29 namespace Ulogger |
|
30 { |
|
31 |
|
32 //This is enumeration used for filtering the plugins |
|
33 enum TPluginFilter |
|
34 { |
|
35 EOutputPluginFilter = 0, |
|
36 EInputPluginFilter |
|
37 }; |
|
38 |
|
39 //const |
|
40 _LIT(KULoggerServerSemaphore, "ULoggerServerSemaphore"); |
|
41 _LIT(KServerName,"uloggerserver"); |
|
42 |
|
43 //configuration file sections |
|
44 _LIT8(KServerSection, "SERVERS"); |
|
45 _LIT8(KActiveSection, "ACTIVE_OUTPUT_PLUGIN"); |
|
46 _LIT8(KActiveControlSection, "ACTIVE_INPUT_PLUGIN"); |
|
47 _LIT8(KPrimaryFilterSection, "PRIMARY_FILTERS"); |
|
48 _LIT8(KSecondaryFilterSection, "SECONDARY_FILTERS"); |
|
49 _LIT(KSysConfigMutex, "SYSCONFIGMUTEX"); |
|
50 _LIT8(KTrace, "TRACE"); |
|
51 _LIT8(KBuffer, "buffer_size"); |
|
52 _LIT8(KSecondaryGlobalFilter, "secondary_global_filter"); |
|
53 _LIT8(KDataNotification, "data_notification_size"); |
|
54 _LIT8(KBufferMode, "buffer_mode"); |
|
55 _LIT8(KEnable, "enable"); |
|
56 _LIT8(KDisable, "disable"); |
|
57 _LIT8(KCircular, "circular"); |
|
58 _LIT8(KStraight, "straight"); |
|
59 _LIT(KVersion, "-version"); |
|
60 |
|
61 //Formattings |
|
62 _LIT8(KSeparator,";"); |
|
63 _LIT(KFormatString,"%S;");//';' is a separator |
|
64 _LIT(KConfigFormat, "%S;%S;"); |
|
65 |
|
66 //ulogger limitations |
|
67 static const TInt KMaxPluginName = 256; |
|
68 static const TInt KMaxBufferSize = 1024; |
|
69 static const TInt KMaxDnsSize = KMaxBufferSize; |
|
70 static const TInt KMaxPrimaryFiltersLimit = 256; |
|
71 static const TInt KMaxSecondaryFiltersLimit = 4096; |
|
72 static const TInt KMinBufferMTPLE = 512; |
|
73 static const TInt KMaxNumberOfLettersInCommand = 2; |
|
74 |
|
75 //server binary |
|
76 _LIT(KServerExe, "uloggerserver.exe"); |
|
77 |
|
78 //Paths where configuration file has to be searched |
|
79 _LIT(KConfigFilename, "uloggerconfig.ini"); //configuration file name |
|
80 _LIT(KPublicConfigFilePath, "\\ulogger\\"); //user path for the configuration file |
|
81 _LIT(KPrivateConfigFilePath, "\\private\\10273881\\"); //ulogger server private location |
|
82 _LIT(KDefaultConfigFilePath, "Z:\\private\\10273881\\uloggerconfig.ini"); //default configuration file |
|
83 |
|
84 // server variables |
|
85 const TInt KULoggerSrvMajorVersionNumber=1; |
|
86 const TInt KULoggerSrvMinorVersionNumber=0; |
|
87 const TInt KULoggerSrvBuildVersionNumber=1; //changed: 07/09/2007 |
|
88 |
|
89 |
|
90 } // namespace |
|
91 |
|
92 #endif // ULOGGERSHARED_H |