/** * INPUT: * Headers: - * Parameters: * IDs: ProfileId, RegistryId * * OUTPUT: * Parameters: - * IDs: - */ void TCmdDestroyProfile::ExecuteL() { // -- Setup --------------------------------------------------------------- // Get selected registry CTcSIPProfileContainer& container = SelectProfileL(); // Get profile from the profile registry CSIPManagedProfile& profile = GetManagedProfileL( container ); // -- Execution ----------------------------------------------------------- // Deleting profile from the persistent storage container.ManagedProfileRegistry().DestroyL( profile ); // -- Response creation --------------------------------------------------- }
/** * INPUT: * Headers: - * Parameters: Type*, IapId*, AORs*, PrivateIdentity*, Name*, SigComp*, * AutoRegistration*, SecurityNegotiation*, Server*, * ServerParameter*, ServerExtensionParameter*, * ExtensionParameter*, Default* * IDs: ProfileId, RegistryId * * OUTPUT: * Parameters: - * IDs: - */ void TCmdUpdateProfile::ExecuteL() { // -- Setup --------------------------------------------------------------- // Get selected registry CTcSIPProfileContainer& container = SelectProfileL(); // Get profile from the profile registry CSIPManagedProfile& profile = GetManagedProfileL( container ); // -- Execution ----------------------------------------------------------- SetProfileParamsL( &profile ); // Saving the profile container.ManagedProfileRegistry().SaveL( profile ); // -- Response creation --------------------------------------------------- AddProfileIdResponseL( profile ); }