void SoundEditWidget::loadContact( const KABC::Addressee &contact ) { const KABC::Sound sound = contact.sound(); if ( sound.isIntern() && !sound.data().isEmpty() ) { mHasSound = true; mSound = sound.data(); } updateView(); }
void SoundEditWidget::storeContact( KABC::Addressee &contact ) const { KABC::Sound sound( contact.sound() ); sound.setData( mSound ); contact.setSound( sound ); }