equal
deleted
inserted
replaced
231 // --------------------------------------------------------------------------- |
231 // --------------------------------------------------------------------------- |
232 // Returns property of this entry by name. |
232 // Returns property of this entry by name. |
233 // --------------------------------------------------------------------------- |
233 // --------------------------------------------------------------------------- |
234 // |
234 // |
235 EXPORT_C TInt CSPEntry::GetProperty( const CSPProperty*& aProperty, |
235 EXPORT_C TInt CSPEntry::GetProperty( const CSPProperty*& aProperty, |
236 TServicePropertyName aPropertyName ) const |
236 TServicePropertyName aPropertyName ) const |
237 { |
237 { |
238 TInt index = SearchProperty( aPropertyName ); |
238 TInt index = SearchProperty( aPropertyName ); |
239 |
239 |
240 if ( KErrNotFound != index ) |
240 if ( KErrNotFound != index ) |
241 { |
241 { |
252 // --------------------------------------------------------------------------- |
252 // --------------------------------------------------------------------------- |
253 // Returns property of this entry by index. |
253 // Returns property of this entry by index. |
254 // --------------------------------------------------------------------------- |
254 // --------------------------------------------------------------------------- |
255 // |
255 // |
256 EXPORT_C TInt CSPEntry::GetProperty( const CSPProperty*& aProperty, |
256 EXPORT_C TInt CSPEntry::GetProperty( const CSPProperty*& aProperty, |
257 TInt aIndex ) const |
257 TInt aIndex ) const |
258 { |
258 { |
259 if ( iPropertyArray.Count() > aIndex && 0 <= aIndex ) |
259 if ( iPropertyArray.Count() > aIndex && 0 <= aIndex ) |
260 { |
260 { |
261 aProperty = iPropertyArray[aIndex]; |
261 aProperty = iPropertyArray[aIndex]; |
262 return KErrNone; |
262 return KErrNone; |
345 // --------------------------------------------------------------------------- |
345 // --------------------------------------------------------------------------- |
346 // Reset the service entry, remove all properties |
346 // Reset the service entry, remove all properties |
347 // --------------------------------------------------------------------------- |
347 // --------------------------------------------------------------------------- |
348 // |
348 // |
349 EXPORT_C void CSPEntry::Reset() |
349 EXPORT_C void CSPEntry::Reset() |
350 { |
350 { |
351 iServiceId = KSPNoId; |
351 iServiceId = KSPNoId; |
352 iServiceName.Close(); |
352 iServiceName.Close(); |
353 iPropertyArray.ResetAndDestroy(); |
353 iPropertyArray.ResetAndDestroy(); |
354 } |
354 } |
355 |
355 |