simpledatamodeladapter/inc/presencelogger.h
branchRCL_3
changeset 18 fbd2e7cec7ef
parent 0 c8caa15ef882
equal deleted inserted replaced
17:2669f8761a99 18:fbd2e7cec7ef
       
     1 /*
       
     2 * Copyright (c) 2006 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:  IETF SIMPLE Protocol implementation for XIMP Framework
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef DATAMODELADAPTERLOGGER_H
       
    20 #define DATAMODELADAPTERLOGGER_H
       
    21 
       
    22 #define DP_TP_PRINT(s) L##s
       
    23 #define DP_STRA_PRINT(s) DP_TP_PRINT(s)
       
    24 #define DP_STR_PRINT(t) DP_STRA_PRINT("[PrwAdapter]") L##t
       
    25 #define DP_LIT_PRINT(s) TPtrC((const TText *) DP_STR_PRINT(s))
       
    26 #ifdef _DEBUG     
       
    27     #include <e32svr.h>
       
    28     #define _DEBUG_SIMPLE_DATAMODEL_ADAPTER
       
    29 #endif
       
    30 
       
    31 #ifdef _DEBUG_SIMPLE_DATAMODEL_ADAPTER
       
    32     #define DP_SDA(a) {RDebug::Print(DP_LIT_PRINT(a));}
       
    33     #define DP_SDA2(a, b) {RDebug::Print(DP_LIT_PRINT(a),b);}
       
    34     #define DP_SDA3(a, b, c) RDebug::Print(DP_LIT_PRINT(a), b, c);
       
    35 #else
       
    36     #define DP_SDA(a);
       
    37     #define DP_SDA2(a, b);
       
    38     #define DP_SDA3(a, b, c);
       
    39 #endif
       
    40 
       
    41 #ifdef SIMPLE_EUNIT
       
    42 #define SIMPLE_UNIT_TEST(ClassName) friend class ClassName;
       
    43 #else 
       
    44 #define SIMPLE_UNIT_TEST(ClassName)
       
    45 #endif // SIMPLE_EUNIT
       
    46 
       
    47 #endif //DATAMODELADAPTERLOGGER_H
       
    48