logsui/logsengine/src/logscall.cpp
changeset 10 b04270301d3b
parent 2 7119b73b84d6
child 15 76d2cf7a585e
equal deleted inserted replaced
6:41c0a814d878 10:b04270301d3b
   126         unsigned int serviceId)
   126         unsigned int serviceId)
   127 {
   127 {
   128     LOGS_QDEBUG_2( "logs [ENG] -> LogsCall::callToNumber(), type", callType )
   128     LOGS_QDEBUG_2( "logs [ENG] -> LogsCall::callToNumber(), type", callType )
   129         
   129         
   130     if (callType == TypeLogsVoiceCall) {
   130     if (callType == TypeLogsVoiceCall) {
   131         createcall("com.nokia.services.telephony", "dial(QString)", number, false);
   131         createcall("com.nokia.symbian.ICallDial", "dial(QString)", number, false);
   132     } else if (callType == TypeLogsVideoCall) {
   132     } else if (callType == TypeLogsVideoCall) {
   133         createcall("com.nokia.services.telephony", "dialVideo(QString)", number, false);
   133         createcall("com.nokia.symbian.ICallDial", "dialVideo(QString)", number, false);
   134     } else if (callType == TypeLogsVoIPCall){
   134     } else if (callType == TypeLogsVoIPCall){
   135         if ( serviceId ){
   135         if ( serviceId ){
   136         
   136         
   137             // Service id should(?) be used with every call type. If logs entry
   137             // Service id should(?) be used with every call type. If logs entry
   138             // is from xsp with video call support, then the executed
   138             // is from xsp with video call support, then the executed
   139             // video call should be mapped to the right xsp?
   139             // video call should be mapped to the right xsp?
   140             // also contact must be passed if available if change service is
   140             // also contact must be passed if available if change service is
   141             // provided (no point change service and try to call service specific
   141             // provided (no point change service and try to call service specific
   142             // uri with another service)?
   142             // uri with another service)?
   143             createCallWithService("com.nokia.services.telephony", 
   143             createCallWithService("com.nokia.symbian.ICallDial", 
   144                 "dialVoipService(QString,int)", number, false, serviceId);
   144                 "dialVoipService(QString,int)", number, false, serviceId);
   145         }
   145         }
   146         else {
   146         else {
   147             // This is likely to fail as long as telephony does not
   147             // This is likely to fail as long as telephony does not
   148             // offer any kind of service selection. Normally voip call
   148             // offer any kind of service selection. Normally voip call
   149             // should always have service id set but if it's missing
   149             // should always have service id set but if it's missing
   150             // for some reason, then this provides call failure UI.
   150             // for some reason, then this provides call failure UI.
   151             createcall("com.nokia.services.telephony", 
   151             createcall("com.nokia.symbian.ICallDial", 
   152                 "dialVoip(QString)", number, false);
   152                 "dialVoip(QString)", number, false);
   153         }
   153         }
   154     }
   154     }
   155     LOGS_QDEBUG( "logs [ENG] <- LogsCall::callToNumber()" )
   155     LOGS_QDEBUG( "logs [ENG] <- LogsCall::callToNumber()" )
   156 }
   156 }
   187 // ----------------------------------------------------------------------------
   187 // ----------------------------------------------------------------------------
   188 //
   188 //
   189 void LogsCall::createcall(QString service, QString type, QString num, bool sync)
   189 void LogsCall::createcall(QString service, QString type, QString num, bool sync)
   190 {
   190 {
   191     LOGS_QDEBUG_2( "logs [ENG] -> LogsCall::createcall(), num", num )
   191     LOGS_QDEBUG_2( "logs [ENG] -> LogsCall::createcall(), num", num )
       
   192     LOGS_QDEBUG_2( "logs [ENG] -> LogsCall::createcall(), service", service )
   192     XQServiceRequest snd(service, type, sync);
   193     XQServiceRequest snd(service, type, sync);
   193     snd << num;
   194     snd << num;
   194     // Start call at bg, call UI will bring itself to foreground when ever
   195     // Start call at bg, call UI will bring itself to foreground when ever
   195     // it thinks it is good time to do it.
   196     // it thinks it is good time to do it.
   196     XQRequestInfo info;
   197     XQRequestInfo info;