mmserv/tms/inc/tmsutility.h
branchRCL_3
changeset 10 3d8c721bf319
parent 0 71ca22bcf22a
child 25 6f7ceef7b1d1
equal deleted inserted replaced
8:e35735ece90c 10:3d8c721bf319
    61 #define TOTMSOUTPUT(output) TMSUtility::ToTMSOutput(output)
    61 #define TOTMSOUTPUT(output) TMSUtility::ToTMSOutput(output)
    62 #define TOTAROUTPUT(output) TMSUtility::ToTAROutput(output)
    62 #define TOTAROUTPUT(output) TMSUtility::ToTAROutput(output)
    63 #define TOFOURCC(format) TMSUtility::ToFourCC(format)
    63 #define TOFOURCC(format) TMSUtility::ToFourCC(format)
    64 #define TOTMSFORMAT(fourcc) TMSUtility::FourCCToTMSFormat(fourcc)
    64 #define TOTMSFORMAT(fourcc) TMSUtility::FourCCToTMSFormat(fourcc)
    65 
    65 
       
    66 _LIT(KTMSPanic, "TMS Panic!" );
       
    67 #define PANIC(reason) User::Panic(KTMSPanic, reason)
       
    68 
    66 // TMSUtility class
    69 // TMSUtility class
    67 class TMSUtility
    70 class TMSUtility
    68     {
    71     {
    69 public:
    72 public:
    70     IMPORT_C static gint TMSResult(const gint error);
    73     IMPORT_C static gint TMSResult(const gint error);
       
    74     IMPORT_C static gint EtelToTMSResult(const gint error);
    71     IMPORT_C static TMSAudioOutput ToTMSOutput(
    75     IMPORT_C static TMSAudioOutput ToTMSOutput(
    72             CTelephonyAudioRouting::TAudioOutput taroutput);
    76             CTelephonyAudioRouting::TAudioOutput taroutput);
    73     IMPORT_C static CTelephonyAudioRouting::TAudioOutput ToTAROutput(
    77     IMPORT_C static CTelephonyAudioRouting::TAudioOutput ToTAROutput(
    74             TMSAudioOutput output);
    78             TMSAudioOutput output);
    75     IMPORT_C static TUint32 ToFourCC(TMSFormatType frmtType);
    79     IMPORT_C static TUint32 ToFourCC(TMSFormatType frmtType);