equal
deleted
inserted
replaced
110 void CSIPSettingsModel::SetDefaultProfileL( |
110 void CSIPSettingsModel::SetDefaultProfileL( |
111 TInt aIndex ) |
111 TInt aIndex ) |
112 { |
112 { |
113 __GSLOGSTRING1("CSIPSettingsModel::SetDefaultProfileL index: %d", aIndex) |
113 __GSLOGSTRING1("CSIPSettingsModel::SetDefaultProfileL index: %d", aIndex) |
114 TRAPD(err, iHandler->SetDefaultProfileL( aIndex )); |
114 TRAPD(err, iHandler->SetDefaultProfileL( aIndex )); |
115 if( err != KErrNone ) |
|
116 { |
|
117 if ( err == KErrInUse ) |
115 if ( err == KErrInUse ) |
118 { |
116 { |
119 HBufC* txtErr = StringLoader::LoadLC( R_QTN_SIP_ERROR_PROFILE_USED ); |
117 HBufC* txtErr = StringLoader::LoadLC( R_QTN_SIP_ERROR_PROFILE_USED ); |
120 CAknErrorNote* note = new ( ELeave ) CAknErrorNote( ETrue ); |
118 CAknErrorNote* note = new ( ELeave ) CAknErrorNote( ETrue ); |
121 note->ExecuteLD( txtErr->Des() ); |
119 note->ExecuteLD( txtErr->Des() ); |
123 } |
121 } |
124 else |
122 else |
125 { |
123 { |
126 User::Leave( err ); |
124 User::Leave( err ); |
127 } |
125 } |
128 } |
|
129 } |
126 } |
130 |
127 |
131 // ----------------------------------------------------------------------------- |
128 // ----------------------------------------------------------------------------- |
132 // CSIPSettingsModel::ListOfProfileNamesL |
129 // CSIPSettingsModel::ListOfProfileNamesL |
133 // Returns the list of profile names |
130 // Returns the list of profile names |