mmserv/tms/tmsproxy/src/tmsproxy.cpp
branchRCL_3
changeset 3 4f62049db6ac
parent 0 71ca22bcf22a
child 10 3d8c721bf319
equal deleted inserted replaced
0:71ca22bcf22a 3:4f62049db6ac
   163 // TMSProxy::Version
   163 // TMSProxy::Version
   164 // -----------------------------------------------------------------------------
   164 // -----------------------------------------------------------------------------
   165 //
   165 //
   166 EXPORT_C TVersion TMSProxy::Version() const
   166 EXPORT_C TVersion TMSProxy::Version() const
   167     {
   167     {
   168     return (TVersion(KTMSServMajorVersionNumber,
   168     return (TVersion(KTMSServMajorVersionNumber, KTMSServMinorVersionNumber,
   169             KTMSServMinorVersionNumber, KTMSServBuildVersionNumber));
   169             KTMSServBuildVersionNumber));
   170     }
   170     }
   171 
   171 
   172 // -----------------------------------------------------------------------------
   172 // -----------------------------------------------------------------------------
   173 // TMSProxy::Close
   173 // TMSProxy::Close
   174 // -----------------------------------------------------------------------------
   174 // -----------------------------------------------------------------------------
   440     switch (type)
   440     switch (type)
   441         {
   441         {
   442         case EMsgQueueGlobalVolumeType:
   442         case EMsgQueueGlobalVolumeType:
   443         case EMsgQueueGlobalGainType:
   443         case EMsgQueueGlobalGainType:
   444             status = AddGlobalEffectObserver((*(TMSEffectObserver*) obsrv),
   444             status = AddGlobalEffectObserver((*(TMSEffectObserver*) obsrv),
   445                     (*(TMSEffect*)parent), clientid);
   445                     (*(TMSEffect*) parent), clientid);
   446             break;
   446             break;
   447         case EMsgQueueGlobalRoutingType:
   447         case EMsgQueueGlobalRoutingType:
   448             status = AddRoutingObserver((*(TMSGlobalRoutingObserver*) obsrv),
   448             status = AddRoutingObserver((*(TMSGlobalRoutingObserver*) obsrv),
   449                     (*(TMSGlobalRouting*)parent), clientid);
   449                     (*(TMSGlobalRouting*) parent), clientid);
   450             break;
   450             break;
   451         default:
   451         default:
   452             status = TMS_RESULT_INVALID_ARGUMENT;
   452             status = TMS_RESULT_INVALID_ARGUMENT;
   453             break;
   453             break;
   454         }
   454         }
   610         {
   610         {
   611         iMsgQHandler->Cancel();
   611         iMsgQHandler->Cancel();
   612         }
   612         }
   613     else
   613     else
   614         {
   614         {
   615         iMsgQHandler = CQueueHandler::NewL(&iMsgQueue, NULL);
   615         iMsgQHandler = TMSQueueHandler::NewL(&iMsgQueue, NULL);
   616         iMsgQHandler->AddObserver(*this, -1);
   616         iMsgQHandler->AddObserver(*this, -1);
   617         }
   617         }
   618     iMsgQHandler->Start();
   618     iMsgQHandler->Start();
   619     }
   619     }
   620 
   620 
   651                 {
   651                 {
   652                 output = *((guint*) user_data);
   652                 output = *((guint*) user_data);
   653                 }
   653                 }
   654             for (gint i = 0; i < iRoutingObsrvrList.Count(); i++)
   654             for (gint i = 0; i < iRoutingObsrvrList.Count(); i++)
   655                 {
   655                 {
   656                 iRoutingObsrvrList[i]->GlobalRoutingEvent(iRoutingParentList[i],
   656                 iRoutingObsrvrList[i]->GlobalRoutingEvent(
   657                         event, output);
   657                         iRoutingParentList[i], event, output);
   658                 }
   658                 }
   659             break;
   659             break;
   660             }
   660             }
   661         default:
   661         default:
   662             break;
   662             break;