ccservices/cmsservices/cmsengine/Server/src/cmsserversession.cpp
branchRCL_3
changeset 5 81f8547efd4f
parent 0 e686773b3f54
child 6 e8e3147d53eb
equal deleted inserted replaced
3:04ab22b956c2 5:81f8547efd4f
   800             {
   800             {
   801             PRINT( _L( " CCmsServerSession::ServiceL():Create a new contact object" ) );
   801             PRINT( _L( " CCmsServerSession::ServiceL():Create a new contact object" ) );
   802             CreateContactL( aMessage );
   802             CreateContactL( aMessage );
   803             break;
   803             break;
   804             }
   804             }
       
   805         case ECmsIsTopContact:
       
   806             {
       
   807             PRINT( _L( " CCmsServerSession::ServiceL():Is Top Contact" ) );
       
   808             IsTopContactL( aMessage );
       
   809             break;
       
   810             }
       
   811 		case ECmsSetVoiceCallDefault:
       
   812         	{
       
   813         	iCmsServer->PhonebookProxyHandle().SetVoiceCallDefaultL();
       
   814         	aMessage.Complete( KErrNone );
       
   815         	break;
       
   816         	}
   805         default:
   817         default:
   806             {
   818             {
   807             PRINT( _L( " CCmsServerSession::ServiceL(): not supported request" ) );
   819             PRINT( _L( " CCmsServerSession::ServiceL(): not supported request" ) );
   808             aMessage.Complete( KErrNotSupported );
   820             aMessage.Complete( KErrNotSupported );
   809             break;
   821             break;
   810             }
   822             }
   811         }
   823         }
   812     PRINT( _L( "End CCmsServerSession::DoServiceL()" ) );  
   824     PRINT( _L( "End CCmsServerSession::DoServiceL()" ) );  
   813     }
   825     }
   814 
   826 
       
   827 
       
   828 // ----------------------------------------------------------
       
   829 // CCmsServerSession::IsTopContactL
       
   830 // 
       
   831 // ----------------------------------------------------------
       
   832 //
       
   833 void CCmsServerSession::IsTopContactL( const RMessage2& aMessage )
       
   834     {
       
   835     PRINT( _L( "Start CCmsServerSession::IsTopContactL()" ) );            
       
   836     if( iServerContact && !iServerContact->IsDeleted() )
       
   837         {   
       
   838         //Currently only contactlink array is supported.
       
   839         iServerContact->IsTopContactL( aMessage );
       
   840         }
       
   841     else
       
   842         {
       
   843         PRINT( _L( "CCmsServerSession::IsTopContactL'(): Contact has been deleted => complete with KErrNotFound" ) );        
       
   844         aMessage.Complete( KErrNotFound );
       
   845         }
       
   846     
       
   847     PRINT( _L( "End CCmsServerSession::IsTopContactL()" ) );            
       
   848     }
       
   849 
       
   850 
   815 // End of file
   851 // End of file