radioapp/radioenginewrapper/inc/radioenummapper.h
changeset 28 075425b8d9a4
parent 13 46974bebc798
equal deleted inserted replaced
24:6df133bd92e1 28:075425b8d9a4
    29  *   ENUM_MAP_ITEM( UiNamespace::UiValue2, EngineNamespace::EEngineValue2 )
    29  *   ENUM_MAP_ITEM( UiNamespace::UiValue2, EngineNamespace::EEngineValue2 )
    30  * END_ENUM_MAP( KSomeMap )
    30  * END_ENUM_MAP( KSomeMap )
    31  */
    31  */
    32 #define BEGIN_ENUM_MAP(name) const RadioEnumMapper::EnumMap name[] = {
    32 #define BEGIN_ENUM_MAP(name) const RadioEnumMapper::EnumMap name[] = {
    33 #define ENUM_MAP_ITEM(ui_enum, engine_enum ) { ui_enum, engine_enum }
    33 #define ENUM_MAP_ITEM(ui_enum, engine_enum ) { ui_enum, engine_enum }
    34 #define END_ENUM_MAP(name) }; const TInt name ## Count = sizeof ( name ) / sizeof ( name[0] );
    34 #define END_ENUM_MAP(name) }; const int name ## Count = sizeof ( name ) / sizeof ( name[0] );
    35 
    35 
    36 /*!
    36 /*!
    37  * Convenience macros to do the mappings
    37  * Convenience macros to do the mappings
    38  */
    38  */
    39 #define MAP_FROM_UI_ENUM(type,uienum, map) RadioEnumMapper::FromUiEnum<type>( uienum, map, map ## Count )
    39 #define MAP_FROM_UI_ENUM(type,uienum, map) RadioEnumMapper::FromUiEnum<type>( uienum, map, map ## Count )