tacticonserver/server/tacticonpluginfw/tacticonhapticsplugin/src/tacticonhapticsplayer.cpp
changeset 41 f9a00adead4a
parent 15 8c57b70b4bf3
equal deleted inserted replaced
40:30ab61ef7897 41:f9a00adead4a
    28 #include "tacticonhapticsplayerTraces.h"
    28 #include "tacticonhapticsplayerTraces.h"
    29 #endif
    29 #endif
    30 
    30 
    31 
    31 
    32 // Tacticons
    32 // Tacticons
    33 _LIT8( KPositiveTacticon,     "PositiveTacticon");
    33 
    34 _LIT8( KNegativeTacticon,     "NegativeTacticon");
    34 _LIT8( KPositiveTacticon,     "PositiveTacticon" );
       
    35 _LIT8( KNegativeTacticon,     "NegativeTacticon" );
    35 _LIT8( KNeutralTacticon,      "NeutralTacticon" );
    36 _LIT8( KNeutralTacticon,      "NeutralTacticon" );
    36 
    37 /*
    37 
    38     _LIT8( KAlertTacticon,        "AlertTacticon" );
       
    39     _LIT8( KInformationTacticon,  "InformationTacticon" );
       
    40     _LIT8( KNewMessageTacticon,   "NewMessageTacticon" );
       
    41     _LIT8( KNewEmailTacticon,     "NewEmailTacticon" );
       
    42     _LIT8( KCalendarTacticon,     "CalendarTacticon" );
       
    43     _LIT8( KClockTacticon,        "ClockTacticon" );
       
    44     _LIT8( KRingingToneTacticon,  "RingingToneTacticon" );
       
    45 */
       
    46 //  the tacticon names following are temporary mapped to NeutralTacticon,
       
    47 // they will be updated when the IVT files are ready.
       
    48     _LIT8( KAlertTacticon,        "NeutralTacticon" );
       
    49     _LIT8( KInformationTacticon,  "NeutralTacticon" );
       
    50     _LIT8( KNewMessageTacticon,   "NeutralTacticon" );
       
    51     _LIT8( KNewEmailTacticon,     "NeutralTacticon" );
       
    52     _LIT8( KCalendarTacticon,     "NeutralTacticon" );
       
    53     _LIT8( KClockTacticon,        "NeutralTacticon" );
       
    54     _LIT8( KRingingToneTacticon,  "NeutralTacticon" );
       
    55     
    38 // max length of tacticon names defined above
    56 // max length of tacticon names defined above
    39 const TInt KTacticonNameMaxLen = 128;
    57 const TInt KTacticonNameMaxLen = 128;
    40 
    58 
    41 // ---------------------------------------------------------------------------
    59 // ---------------------------------------------------------------------------
    42 // Constructor.
    60 // Constructor.
   231         case ENegativeTacticon:
   249         case ENegativeTacticon:
   232             name = KNegativeTacticon;
   250             name = KNegativeTacticon;
   233             break;
   251             break;
   234         case ENeutralTacticon:
   252         case ENeutralTacticon:
   235             name = KNeutralTacticon;
   253             name = KNeutralTacticon;
   236             break;                      
   254             break;
       
   255         case EAlertTacticon:
       
   256             name = KAlertTacticon;
       
   257             break;
       
   258         case EInformationTacticon:
       
   259             name = KInformationTacticon;
       
   260             break;
       
   261         case ENewMessageTacticon:
       
   262             name = KNewMessageTacticon;
       
   263             break;
       
   264         case ENewEmailTacticon:
       
   265             name = KNewEmailTacticon;
       
   266             break;
       
   267         case ECalendarTacticon:
       
   268             name =KCalendarTacticon;
       
   269             break;
       
   270         case EClockTacticon:
       
   271             name = KClockTacticon;
       
   272             break;
       
   273         case ERingingToneTacticon:
       
   274             name = KRingingToneTacticon;
       
   275             break;
   237         default:
   276         default:
   238             return;
   277             return;
   239         }
   278         }
   240     TInt effectIndex(0);
   279     TInt effectIndex(0);
   241     iHaptics->GetEffectIndexFromName( iIVTHandle, name, effectIndex );
   280     iHaptics->GetEffectIndexFromName( iIVTHandle, name, effectIndex );