mobilemessaging/mmsui/mtminc/MmsMtmConst.h
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     General constants for MMS.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MMSMTMCONST_H
       
    22 #define MMSMTMCONST_H
       
    23 
       
    24 // CONSTANTS
       
    25 const TUid KUidMmsEditor = {0x100058DE};
       
    26 const TUid KUidMmsViewer = {0x100058DF};
       
    27 const TUid KUidNotViewer = {0x101F86A0};
       
    28 
       
    29 const TInt KMmsViewer = 0x100058DF;
       
    30 const TInt KNotViewer = 0x101F86A0;
       
    31 
       
    32 const TInt KKiloByte = 1024;
       
    33 
       
    34 const TInt KMmsNumberOfZoomStates = 2;
       
    35 
       
    36 _LIT(KMmsMtmResourceFile,"MMSUI");
       
    37 _LIT(KNotMtmResourceFile,"NOTUI");
       
    38 _LIT(KMmsMtmUiBitmapFile, "muiu.mbm");
       
    39 
       
    40 // MACROS
       
    41 
       
    42 #include <flogger.h>                    // HW debug logging support
       
    43                                       
       
    44 #ifdef USE_LOGGER
       
    45 _LIT(KMmsUiLogFile,"MMSUI.TXT");
       
    46 _LIT(KMmsUiLogDir,"MMSUI");
       
    47 _LIT(KMmsUiTimeFormatString,"%H:%T:%S:%*C2");
       
    48 
       
    49 #define CREATELOGTEXT(a)    RFileLogger::Write(KMmsUiLogDir(),KMmsUiLogFile(),EFileLoggingModeOverwrite,a)
       
    50 #define LOGTEXT(a)          RFileLogger::Write(KMmsUiLogDir(),KMmsUiLogFile(),EFileLoggingModeAppend,a)
       
    51 #define LOGTEXT2(a,b)       RFileLogger::WriteFormat(KMmsUiLogDir(),KMmsUiLogFile(),EFileLoggingModeAppend,TRefByValue<const TDesC>(a),b)
       
    52 #define LOGTEXT3(a,b,c)     RFileLogger::WriteFormat(KMmsUiLogDir(),KMmsUiLogFile(),EFileLoggingModeAppend,TRefByValue<const TDesC>(a),b,c)
       
    53 #define LOGHEXDUMP(a,b,c,d) RFileLogger::HexDump(KMmsUiLogDir(),KMmsUiLogFile(),EFileLoggingModeAppend,a,b,c,d);
       
    54 #define LOGTIMESTAMP(a)     {_LIT(temp, a); TTime time; time.HomeTime(); TBuf<256> buffer; time.FormatL( buffer, KMmsUiTimeFormatString ); buffer.Insert(0, temp); RFileLogger::Write(KMmsUiLogDir, KMmsUiLogFile, EFileLoggingModeAppend, buffer); }
       
    55 
       
    56 #else // no logger
       
    57 
       
    58 #define CREATELOGTEXT(a)
       
    59 #define LOGTEXT(a)
       
    60 #define LOGTEXT2(a,b)
       
    61 #define LOGTEXT3(a,b,c)
       
    62 #define LOGHEXDUMP(a,b,c,d)
       
    63 #define LOGTIMESTAMP(a)
       
    64 
       
    65 #endif // USE_LOGGER
       
    66 
       
    67 #endif // MMSMTMCONST_H
       
    68             
       
    69 // End of File