|
1 /* |
|
2 * Copyright (c) 2008 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 * Logging defines for Msgindicatorplugin application |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #if !defined(__MGSPLUGINLOG_H__) |
|
22 #define __MGSPLUGINLOG_H__ |
|
23 |
|
24 #if defined ( _DEBUG ) |
|
25 |
|
26 //OFFLINE_TESTING |
|
27 //#define OFFLINE_TESTING |
|
28 |
|
29 // Offline id's |
|
30 // 1 = Envelope |
|
31 // 2 = Email |
|
32 // 4 = Fax |
|
33 // 5 = Other message |
|
34 // 7 = Voicemail general, |
|
35 // 8 = Voicemail Line1 |
|
36 // 9 = Voicemail Line2 |
|
37 // 10 = Voicemail Both Lines |
|
38 // 14 = Outbox |
|
39 // 30 = Remotemailbox |
|
40 |
|
41 const TInt KOffLineId = 7; |
|
42 //OFFLINE_TESTING |
|
43 |
|
44 #include <flogger.h> |
|
45 |
|
46 const TInt KMsgPluginMajorVersion=4; |
|
47 const TInt KMsgPluginMinorVersion=0; |
|
48 const TInt KMsgPluginBuildVersion=0; |
|
49 |
|
50 |
|
51 _LIT(KMsgIndicatorPluginLogDir, "Mce"); |
|
52 _LIT(KMsgIndicatorPluginLogFile, "MSGPLUGIN.txt"); |
|
53 _LIT8(KMsgIndicatorPluginLogMessageAppBanner, "MSG Indicator Plugin %d.%d.%d"); |
|
54 _LIT8(KMsgIndicatorPluginLogExit, "MSG Indicator Plugin exit"); |
|
55 |
|
56 #define MSGPLUGINLOGGER_CREATE {RFileLogger::WriteFormat(KMsgIndicatorPluginLogDir, KMsgIndicatorPluginLogFile, EFileLoggingModeOverwrite, KMsgIndicatorPluginLogMessageAppBanner, KMsgPluginMajorVersion, KMsgPluginMinorVersion, KMsgPluginBuildVersion);} |
|
57 #define MSGPLUGINLOGGER_DELETE {RFileLogger::Write(KMsgIndicatorPluginLogDir, KMsgIndicatorPluginLogFile, EFileLoggingModeAppend, KMsgIndicatorPluginLogExit);} |
|
58 #define MSGPLUGINLOGGER_WRITE(a) {_LIT(temp, a); RFileLogger::Write(KMsgIndicatorPluginLogDir, KMsgIndicatorPluginLogFile, EFileLoggingModeAppend, temp);} |
|
59 #define MSGPLUGINLOGGER_WRITE_FORMAT(a,b) {_LIT(temp, a); RFileLogger::WriteFormat(KMsgIndicatorPluginLogDir, KMsgIndicatorPluginLogFile, EFileLoggingModeAppend, temp, b);} |
|
60 |
|
61 |
|
62 #else // _DEBUG |
|
63 |
|
64 #define MSGPLUGINLOGGER_CREATE |
|
65 #define MSGPLUGINLOGGER_DELETE |
|
66 #define MSGPLUGINLOGGER_WRITE(a) |
|
67 #define MSGPLUGINLOGGER_WRITE_FORMAT(a, b) |
|
68 |
|
69 #endif // _DEBUG |
|
70 |
|
71 #endif // __MGSPLUGINLOG_H__ |
|
72 |
|
73 // End of File |