equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-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 #if !defined(__SSL_LOGFILE_H__) |
|
17 #define __SSL_LOGFILE_H__ |
|
18 |
|
19 #include <comms-infras/commsdebugutility.h> |
|
20 |
|
21 |
|
22 #ifdef _DEBUG |
|
23 #define __TRACEFILE__ |
|
24 #endif |
|
25 |
|
26 //#ifndef __WINSCW__ |
|
27 //#undef __TRACEFILE__ |
|
28 //#endif |
|
29 |
|
30 #ifdef __TRACEFILE__ |
|
31 #define LOG(a) a |
|
32 #else |
|
33 #define LOG(a) |
|
34 #endif |
|
35 |
|
36 #ifdef __TRACEFILE__ |
|
37 _LIT(KSSLLogFileName,"SSLLog.txt"); |
|
38 _LIT(KSSLLogDir,"SSL"); |
|
39 |
|
40 class CSSLProviderBase; |
|
41 class RFile; |
|
42 class Log |
|
43 { |
|
44 public: |
|
45 static void Write(const TDesC& aDes); |
|
46 static void Printf(TRefByValue<const TDesC> aFmt, ...); |
|
47 static void HexDump(const TText* aHeader, const TText* aMargin, const TUint8* aPtr, TInt aLen); |
|
48 }; |
|
49 |
|
50 #endif // __TRACEFILE__ |
|
51 |
|
52 #endif // __SSL_LOGFILE_H__ |