|
1 /** |
|
2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalTechnology |
|
23 */ |
|
24 |
|
25 #ifndef __FLOGSTD_H__ |
|
26 #define __FLOGSTD_H__ |
|
27 |
|
28 #include "FLOGSVR.H" |
|
29 |
|
30 /** |
|
31 @internalComponent |
|
32 */ |
|
33 const TInt KFLogSrvMajorVersionNumber=1; |
|
34 |
|
35 /** |
|
36 Log Server Minor Version Number. |
|
37 */ |
|
38 const TInt KFLogSrvMinorVersionNumber=0; |
|
39 |
|
40 /** |
|
41 Log Server Build Version Number. |
|
42 */ |
|
43 const TInt KFLogSrvBuildVersionNumber=20; |
|
44 |
|
45 /** |
|
46 Shut down pause time 5secs. |
|
47 @internalComponent |
|
48 */ |
|
49 const TInt KShutdownPause=5000000; |
|
50 |
|
51 /** |
|
52 FullStop character. |
|
53 @internalComponent |
|
54 */ |
|
55 const TText KFullStopChar='.'; |
|
56 |
|
57 /** |
|
58 File logger server name in EKA2. |
|
59 @internalComponent |
|
60 */ |
|
61 _LIT(KFLoggerServerName,"!FLogger server"); |
|
62 |
|
63 |
|
64 /** |
|
65 @internalComponent |
|
66 */ |
|
67 enum TFileLoggerOperations |
|
68 { |
|
69 /** const to create a new log file. */ |
|
70 ECreateLog, |
|
71 |
|
72 /** const to write the log file. */ |
|
73 EWriteLog, |
|
74 |
|
75 /** const to close the log file. */ |
|
76 ECloseLog, |
|
77 |
|
78 /** const for create,write and to close the log file. */ |
|
79 ECreateWriteAndCloseLog |
|
80 |
|
81 }; |
|
82 |
|
83 NONSHARABLE_CLASS(CFLoggerScheduler) : public CActiveScheduler |
|
84 /** |
|
85 File Logger Scheduler |
|
86 @internalComponent |
|
87 */ |
|
88 { |
|
89 public: |
|
90 static void NewL(); |
|
91 ~CFLoggerScheduler(); |
|
92 private: |
|
93 inline CFLoggerScheduler() {} |
|
94 |
|
95 /** |
|
96 from CActiveScheduler |
|
97 */ |
|
98 void Error(TInt aError) const; |
|
99 |
|
100 private: |
|
101 CFileLoggerServer* iServer; |
|
102 }; |
|
103 |
|
104 #endif // __FLOGSTD_H__ |
|
105 |