rem: void AccountsPage::SendingTab::doLoadOther() { KConfigGroup general( KMKernel::config(), "General"); KConfigGroup composer( KMKernel::config(), "Composer");  int numTransports = general.readNumEntry("transports", 0);  QListViewItem *top = 0; mTransportInfoList.clear(); mTransportList->clear(); QStringList transportNames; for ( int i = 1 ; i <= numTransports ; i++ ) { KMTransportInfo *ti = new KMTransportInfo(); ti->readConfig(i); mTransportInfoList.append( ti ); transportNames << ti->name; top = new QListViewItem( mTransportList, top, ti->name, ti->type ); } emit transportListChanged( transportNames );  QListViewItem *listItem = mTransportList->firstChild(); if ( listItem ) { listItem->setText( 1, i18n("%1: type of transport. Result used in " "Configure->Accounts->Sending listview, " "\"type\" column, first row, to indicate " "that this is the default transport", "%1 (Default)").arg( listItem->text(1) ) ); mTransportList->setCurrentItem( listItem ); mTransportList->setSelected( listItem, true ); }  mSendMethodCombo->setCurrentItem( kmkernel->msgSender()->sendImmediate() ? 0 : 1 ); mMessagePropertyCombo->setCurrentItem( kmkernel->msgSender()->sendQuotedPrintable() ? 1 : 0 );  mConfirmSendCheck->setChecked( composer.readBoolEntry( "confirm-before-send", false ) ); QString str = general.readEntry( "Default domain" ); if( str.isEmpty() ) {    char buffer[256]; if ( !gethostname( buffer, 255 ) )  buffer[255] = 0; else buffer[0] = 0; str = QString::fromLatin1( *buffer ? buffer : "localhost" ); } mDefaultDomainEdit->setText( str ); }
add: virtual void doLoadOther() {}
context: void AccountsPage::SendingTab::doLoadOther() {  KConfigGroup general( KMKernel::config(), "General");  KConfigGroup composer( KMKernel::config(), "Composer");  int numTransports = general.readNumEntry("transports", 0);  QListViewItem *top = 0;  mTransportInfoList.clear();  mTransportList->clear();  QStringList transportNames;  for ( int i = 1 ; i <= numTransports ; i++ ) {    KMTransportInfo *ti = new KMTransportInfo();    ti->readConfig(i);    mTransportInfoList.append( ti );    transportNames << ti->name;    top = new QListViewItem( mTransportList, top, ti->name, ti->type );  }  emit transportListChanged( transportNames );  QListViewItem *listItem = mTransportList->firstChild();  if ( listItem ) {    listItem->setText( 1, i18n("%1: type of transport. Result used in "                               "Configure->Accounts->Sending listview, "                               "\"type\" column, first row, to indicate "                               "that this is the default transport",                               "%1 (Default)").arg( listItem->text(1) ) );    mTransportList->setCurrentItem( listItem );    mTransportList->setSelected( listItem, true );  }  mSendMethodCombo->setCurrentItem(                kmkernel->msgSender()->sendImmediate() ? 0 : 1 );  mMessagePropertyCombo->setCurrentItem(                kmkernel->msgSender()->sendQuotedPrintable() ? 1 : 0 );  mConfirmSendCheck->setChecked( composer.readBoolEntry( "confirm-before-send",                                                         false ) );  QString str = general.readEntry( "Default domain" );  if( str.isEmpty() )  {    //### FIXME: Use the global convenience function instead of the homebrewed    //           solution once we can rely on HEAD kdelibs.    //str = KGlobal::hostname(); ???????    char buffer[256];    if ( !gethostname( buffer, 255 ) )      // buffer need not be NUL-terminated if it has full length      buffer[255] = 0;    else      buffer[0] = 0;    str = QString::fromLatin1( *buffer ? buffer : "localhost" );  }  mDefaultDomainEdit->setText( str );}