rem: if ( isRestored() ) { if ( KMainWindow::canBeRestored( 1 ) ) { mMainWindow = new Akregator::MainWindow(); setMainWidget( mMainWindow ); mMainWindow->show(); mMainWindow->restore( 1 ); } } else {
context: int AkregatorApp::newInstance(){  DCOPRef akr("akregator", "AkregatorIface");  if ( isRestored() ) {    if ( KMainWindow::canBeRestored( 1 ) ) {      mMainWindow = new Akregator::MainWindow();      setMainWidget( mMainWindow );      mMainWindow->show();      mMainWindow->restore( 1 );    }  } else {    if ( !mMainWindow ) {      mMainWindow = new Akregator::MainWindow();      setMainWidget( mMainWindow );      mMainWindow->loadPart();      mMainWindow->setupProgressWidgets();      mMainWindow->show();      akr.send("openStandardFeedList");    }    KCmdLineArgs *args = KCmdLineArgs::parsedArgs();    QString addFeedGroup = !args->getOption("group").isEmpty() ? args->getOption("group") : i18n("Imported Folder");    QCStringList feeds = args->getOptionList("addfeed");    QStringList feedsToAdd;    for (QCStringList::ConstIterator it = feeds.begin(); it != feeds.end(); ++it)        feedsToAdd.append(*it);    if (!feedsToAdd.isEmpty())        akr.send("addFeedsToGroup", feedsToAdd, addFeedGroup );    args->clear();  }  return KUniqueApplication::newInstance();} 