mmsengine/mmscodec/src/mmscodec.cpp
changeset 0 72b543305e3a
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2003-2007 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 *     DLL entry point
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include <e32std.h>
       
    23 #include <flogger.h>
       
    24 
       
    25 #include "mmscodec.h"
       
    26 #include "mmsconst.h"
       
    27 #include "mmsservercommon.h"
       
    28 
       
    29 // EXTERNAL DATA STRUCTURES
       
    30 
       
    31 // EXTERNAL FUNCTION PROTOTYPES  
       
    32 
       
    33 // CONSTANTS
       
    34 
       
    35 // MACROS
       
    36 
       
    37 // LOCAL CONSTANTS AND MACROS
       
    38 
       
    39 // MODULE DATA STRUCTURES
       
    40 
       
    41 // LOCAL FUNCTION PROTOTYPES
       
    42 
       
    43 // ==================== LOCAL FUNCTIONS ====================
       
    44 
       
    45 
       
    46 // ================= OTHER EXPORTED FUNCTIONS ==============
       
    47 
       
    48 #ifndef _NO_MMSS_LOGGING_
       
    49 const TInt KLogBufferLength = 256;
       
    50 _LIT(KLogDir, "mmss");
       
    51 _LIT(KLogFile, "mmss.txt");
       
    52 
       
    53 void TMmsLogger::Log(TRefByValue<const TDesC> aFmt,...)
       
    54     {
       
    55     VA_LIST list;
       
    56     VA_START(list, aFmt);
       
    57 
       
    58     // Print to log file
       
    59     TBuf<KLogBufferLength> buf;
       
    60     buf.FormatList(aFmt, list);
       
    61 
       
    62     // Write to log file
       
    63     RFileLogger::Write(KLogDir, KLogFile, EFileLoggingModeAppend, buf);
       
    64     }
       
    65 #endif
       
    66 
       
    67 //  End of File