profilesservices/ProfileEngine/WrapperSrc/CProEngToneSettingsImpl.cpp
changeset 63 cae55c3d1f20
parent 59 4868a89ec1e3
equal deleted inserted replaced
59:4868a89ec1e3 63:cae55c3d1f20
   114 
   114 
   115 // -----------------------------------------------------------------------------
   115 // -----------------------------------------------------------------------------
   116 // CProEngToneSettingsImpl::
   116 // CProEngToneSettingsImpl::
   117 // -----------------------------------------------------------------------------
   117 // -----------------------------------------------------------------------------
   118 //
   118 //
   119 TInt CProEngToneSettingsImpl::SetRingingType( TProfileRingingType /*aRingingType*/ )
   119 TInt CProEngToneSettingsImpl::SetRingingType( TProfileRingingType aRingingType )
   120     {
   120     {
   121     // since 10.1, ring type can't be set by user
   121     if( iModifiableFlags & EProfileFlagRingingType )
   122     return KErrNotSupported;
   122         {
       
   123         iToneSettings.iRingingType = aRingingType;
       
   124         return KErrNone;
       
   125         }
       
   126     return KErrAccessDenied;
   123     }
   127     }
   124 
   128 
   125 // -----------------------------------------------------------------------------
   129 // -----------------------------------------------------------------------------
   126 // CProEngToneSettingsImpl::
   130 // CProEngToneSettingsImpl::
   127 // -----------------------------------------------------------------------------
   131 // -----------------------------------------------------------------------------