本文整理汇总了C++中KApplication::isRestored方法的典型用法代码示例。如果您正苦于以下问题:C++ KApplication::isRestored方法的具体用法?C++ KApplication::isRestored怎么用?C++ KApplication::isRestored使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KApplication
的用法示例。
在下文中一共展示了KApplication::isRestored方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char *argv[])
{
KAboutData aboutData( "kmouth", I18N_NOOP("KMouth"),
KMOUTH_VERSION, description, KAboutData::License_GPL,
"(c) 2002/2003, Gunnar Schmi Dt", 0, "http://www.schmi-dt.de/kmouth/index.en.html", "[email protected]");
aboutData.addAuthor("Gunnar Schmi Dt",0, "[email protected]");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
aboutData.addCredit("Olaf Schmidt", I18N_NOOP("Tips, extended phrase books"), 0, 0);
KApplication app;
if (app.isRestored())
{
RESTORE(KMouthApp);
}
else
{
KMouthApp *kmouth = new KMouthApp();
if (!kmouth->configured())
return 0;
kmouth->show();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
if (args->count())
{
kmouth->openDocumentFile(args->url(0));
}
args->clear();
}
return app.exec();
}
示例2: main
int main(int argc, char *argv[])
{
KAboutData aboutData( "kimagemapeditor", I18N_NOOP("KImageMapEditor"),
VERSION, description, KAboutData::License_GPL,
"(C) 2001-2008 Jan Schaefer", 0, "http://www.nongnu.org/kimagemap/", "[email protected]");
aboutData.addAuthor("Jan Schaefer",0, "[email protected]");
aboutData.addCredit("Joerg Jaspert",I18N_NOOP("For helping me with the Makefiles, and creating the Debian package"));
aboutData.addCredit("Aaron Seigo and Michael",I18N_NOOP("For helping me fixing --enable-final mode"));
aboutData.addCredit("Antonio Crevillen",I18N_NOOP("For the Spanish translation"));
aboutData.addCredit("Fabrice Mous",I18N_NOOP("For the Dutch translation"));
aboutData.addCredit("Germain Chazot",I18N_NOOP("For the French translation"));
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication a;
a.dcopClient()->registerAs(a.name());
if (a.isRestored())
{
RESTORE(KimeShell);
}
else
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
if ( args->count() == 0 )
{
KimeShell *kimeShell = new KimeShell();
kimeShell->setStdout(args->isSet("stdout"));
kimeShell->readConfig();
kimeShell->show();
kimeShell->openLastFile();
}
else
{
int i = 0;
for (; i < args->count(); i++ )
{
KimeShell *kimeShell = new KimeShell();
kimeShell->setStdout(args->isSet("stdout"));
kimeShell->readConfig();
kimeShell->show();
kimeShell->openFile(args->url(i));
}
}
args->clear();
}
return a.exec();
}
示例3: main
int main( int argc, char** argv )
{
KAboutData aboutData( "kdat", I18N_NOOP("KDat"),
KDAT_VERSION, description, KAboutData::License_GPL,
"(c) 1999-2000, Sean Vyain; 2001-2002 Lawrence Widman");
/* 2002-01-28 LEW: so we can dump core if we want to */
// KCrash::setCrashHandler(0); // this is supposed to work, but it doesn't
#ifdef DEBUG
{
char *newarg;
if( ( newarg = (char *)malloc( strlen("--nocrashhandler") + 1 ) ) == NULL )
{
KMessageBox::sorry(NULL, i18n("Can't allocate memory in kdat"));
exit(1);
}
strcpy( newarg, "--nocrashhandler" );
argv[ argc ] = newarg;
argc++;
}
{
int i;
for(i=0; i<argc; i++){
printf("Arg %d: %s\n", i, argv[i]);
}
}
#endif /* DEBUG */
/* 2002-01-28 LEW */
KCmdLineArgs::init( argc, argv, &aboutData );
aboutData.addAuthor( "Lawrence Widman", 0, "[email protected]");
// KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication app;
app.setMainWidget( KDatMainWindow::getInstance() );
/* set up error handler so we don't crash without notice */
signal(SIGHUP, error_handler);
signal(SIGINT, error_handler);
signal(SIGFPE, error_handler);
signal(SIGSEGV, error_handler);
signal(SIGTERM, error_handler);
if ( app.isRestored() && KDatMainWindow::canBeRestored( 1 ) ) {
KDatMainWindow::getInstance()->restore( 1 );
} else {
KDatMainWindow::getInstance()->show();
}
return app.exec();
}
示例4: main
int main(int argc, char **argv)
{
KLocale::setMainCatalogue("kasablanca");
KAboutData about("kasablanca", I18N_NOOP("kasablanca"), version, description,
KAboutData::License_GPL, "(C) 2004 Magnus Kulke", 0, 0,
"[email protected]");
about.addAuthor( "Magnus Kulke", 0, "[email protected]" );
about.addAuthor( "Big Biff", 0, "[email protected]" );
about.addCredit( "Stefan Bogner", 0, "[email protected]" );
about.addCredit( "Christoph Thielecke", 0, "[email protected]" );
about.addCredit( "Richard Stellingwerf", 0, "[email protected]" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions(options);
KApplication app;
// register ourselves as a dcop client
app.dcopClient()->registerAs(app.name(), false);
// see if we are starting with session management
if (app.isRestored())
{
RESTORE(Kasablanca);
}
else
{
// no session.. just start up normally
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
if (args->count() == 0)
{
Kasablanca *widget = new Kasablanca;
widget->show();
}
else
{
int i = 0;
for (; i < args->count(); i++)
{
Kasablanca *widget = new Kasablanca;
widget->show();
// TODO: Load the ftp url passed on the command line.
// widget->load(args->url(i));
}
}
args->clear();
}
return app.exec();
}
示例5: main
int main(int argc, char **argv)
{
KAboutData about("d3lphin",
I18N_NOOP("Dolphin"),
"0.9.2",
I18N_NOOP("File Manager"),
KAboutData::License_GPL,
"(C) 2007 Marcel Juhnke");
about.setHomepage("https://marrat.homelinux.org/D3lphin");
about.setBugAddress("[email protected]");
about.addAuthor("Marcel Juhnke", I18N_NOOP("Maintainer and developer"), "[email protected]");
about.addAuthor("Michael Austin", I18N_NOOP("Documentation"), "[email protected]");
about.addAuthor("Orville Bennett", I18N_NOOP("Documentation"), "[email protected]");
about.addCredit("Peter Penz", I18N_NOOP("... for the great original Dolphin"));
about.addCredit("Cvetoslav Ludmiloff, Stefan Monov", I18N_NOOP("... for their development on the original Dolphin"));
about.addCredit("Aaron J. Seigo", I18N_NOOP("... for the great support and the amazing patches for the orignal Dolphin"));
about.addCredit("Patrice Tremblay, Gregor Kalisnik, Filip Brcic, Igor Stepin and Jan Mette", I18N_NOOP("... for their patches"));
about.addCredit("Ain, Itai, Ivan, Jannick, Stephane, Patrice, Piotr, Stefano and Power On",
I18N_NOOP("... for their translations"));
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions(options);
KApplication app;
Dolphin& mainWin = Dolphin::mainWin();
mainWin.show();
if (app.isRestored()) {
int n = 1;
while (KMainWindow::canBeRestored(n)){
Dolphin::mainWin().restore(n);
++n;
}
} else {
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
if (args->count() > 0) {
mainWin.activeView()->setURL(args->url(0));
for (int i = 1; i < args->count(); ++i) {
KRun::run("d3lphin", args->url(i));
}
}
args->clear();
}
return app.exec();
}
示例6: main
int main(int argc, char **argv)
{
// Initialize net-snmp library
KSNMP::init("atmosphere");
KAboutData about("atmosphere", I18N_NOOP("ATMOSphere"), version, description,
KAboutData::License_GPL, "(C) 2004 Flameeyes", 0, 0, "[email protected]");
about.addAuthor( "Flameeyes", 0, "[email protected]" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( options );
KApplication app;
ATMOSphere *mainWin = 0;
try {
if (app.isRestored())
{
RESTORE(ATMOSphere);
}
else
{
// no session.. just start up normally
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
/// @todo do something with the command line args here
mainWin = new ATMOSphere();
app.setMainWidget( mainWin );
mainWin->show();
args->clear();
}
} catch( ATMOS::Exception &e ) {
KMessageBox::error(0, e.message(), "Unhandled exception!", KMessageBox::Dangerous);
}
// mainWin has WDestructiveClose flag by default, so it will delete itself.
int ret = app.exec();
// Deinitialize net-snmp library
KSNMP::shutdown();
return ret;
}
示例7: main
int main(int argc, char *argv[]) {
KAboutData aboutData( "kalcatel", I18N_NOOP("KAlcatel"),
VERSION, description, KAboutData::License_GPL,
"(c) 2002, Michal Cihar",
I18N_NOOP("This application allows you to manage messages, calls, contacts, todos\n"
"and calendar in your Alcatel One Touch 50x and 70x mobile.\n\n"
"Protocol used by this phone is binary and not documented, so this\n"
"program could not guarantee any functionality in your case, but it works well for me."),
"http://cihar.liten.cz", "[email protected]");
aboutData.addAuthor("Michal Cihar",0, "[email protected]");
aboutData.addCredit("Alcatel", I18N_NOOP("for NOT publishing specification of protocol\n"
"Their only answer was:\n"
"\"Your piece of advice will be helpful enough for us to deliberate\n"
"and get the best service for all our customers.\"\n\n"
"However they probably like this program because they write about it\n"
"in their news (HTTP Referer can contain many information) and they\n"
"downloaded few copies of it (from alcatel.de and alcatel.be) ;-)."),
"[email protected]", "http://www.alcatel.com");
aboutData.addCredit("George Voina", I18N_NOOP("for initial KDE/Qt 3 porting"),
"[email protected]", "http://www.esat.kuleuven.ac.be/~gvoina");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication app;
if (app.isRestored()) {
RESTORE(KAlcatelApp);
} else {
KAlcatelApp *kalcatel = new KAlcatelApp();
kalcatel->show();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
if (args->count()) {
kalcatel->openDocumentFile(args->arg(0));
} else {
// kalcatel->openDocumentFile();
}
args->clear();
}
return app.exec();
}
示例8: main
int main(int argc, char **argv)
{
KAboutData about("composer", I18N_NOOP("Composer"), version, description,
KAboutData::License_GPL, "(C) 2007 sebastian", 0, 0, "[email protected]");
about.addAuthor( "sebastian", 0, "[email protected]" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions(options);
KApplication app;
// register ourselves as a dcop client
app.dcopClient()->registerAs(app.name(), false);
// see if we are starting with session management
if (app.isRestored())
{
RESTORE(Composer);
}
else
{
// no session.. just start up normally
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
if (args->count() == 0)
{
Composer *widget = new Composer;
widget->show();
}
else
{
int i = 0;
for (; i < args->count(); i++)
{
Composer *widget = new Composer;
widget->show();
widget->load(args->url(i));
}
}
args->clear();
}
return app.exec();
}
示例9: main
int main(int argc, char **argv)
{
// specify data for About dialog
KAboutData* about = new KAboutData("aptgetkonsole", "aptgetkonsole", "");
about->setProgramLogo( QImage("/usr/share/icons/hicolor/32x32/apps/kappinstaller.png") );
about->setShortDescription( "aptgetkonsole" );
about->setLicense(KAboutData::License_GPL_V2);
about->setHomepage("http://linux.wuertz.org");
about->setBugAddress("[email protected]");
about->setCopyrightStatement("(c) 2008 Fabian Wuertz");
about->addAuthor("Fabian Würtz (xadras)", "Developer", "[email protected]", "http://linux.wuertz.org/");
KCmdLineArgs::init(argc, argv, about);
KCmdLineArgs::addCmdLineOptions( options );
KApplication app;
ac *mainWin = 0;
// start program
if (!app.isRestored())
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
QString changes;
for(int i = 0; i < args->count(); i++) // Counting start at 0!
changes = QString::fromLocal8Bit(args->arg(i));
mainWin = new ac( changes );
app.setMainWidget( mainWin );
mainWin->show();
args->clear();
}
return app.exec();
}
示例10: main
int main(int argc, char **argv)
{
KAboutData about("protoeditor", I18N_NOOP("Protoeditor"), version, description,
KAboutData::License_GPL, "(C) 2004 Thiago Silva", 0, 0, "[email protected]");
about.addAuthor( "Thiago Silva", 0, "[email protected]" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions( options );
KApplication app;
//ProtoEditor *protoeditor = 0;
//ProtoEditor protoeditor;
MainWindow window;
if (app.isRestored())
{
RESTORE(MainWindow);
}
else
{
// no session.. just start up normally
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
//protoeditor = new ProtoEditor();
//QWidget* mainWin = protoeditor.mainWindow();
app.setMainWidget(&window);
window.show();
args->clear();
}
// mainWin has WDestructiveClose flag by default, so it will delete itself.
return app.exec();
//delete protoeditor;
}
示例11: main
int main(int argc, char **argv)
{
KAboutData about("konjue", I18N_NOOP("Konjue"), version, description,
KAboutData::License_GPL, "(C) 2005 Pieter Pareit", 0, 0, "[email protected]");
about.addAuthor( "Pieter Pareit", 0, "[email protected]" );
about.addCredit( "Pierre Sarrazin", I18N_NOOP("Programmer of Verbiste, backend used by Konjue."),
"sarrazip AT sarrazip DOT com", "http://sarrazip.com" );
about.addCredit( "Sebastian Sariego Benitez", I18N_NOOP("Artist that created the icon for Konjue."),
"segfault AT kde DOT cl", "http://segfault.kde.cl" );
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions(options);
KApplication app;
// register ourselves as a dcop client
app.dcopClient()->registerAs(app.name(), false);
// see if we are starting with session management
if (app.isRestored())
{
RESTORE(Konjue);
}
else
{
// no session.. just start up normally, create window
Konjue *widget = new Konjue;
widget->show();
// load all verbs that were give as arguments
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
for (int i = 0; i < args->count(); i++)
{
widget->displayVerb( args->arg( i ) );
}
args->clear();
}
return app.exec();
}
示例12: main
int main(int argc, char *argv[]) {
int i_file, i_v, i_curve;
int i_plot;
QString fullPath;
KAboutData aboutData("kst", I18N_NOOP("Kst"),
KSTVERSION, description, KAboutData::License_GPL,
I18N_NOOP("(c) 2000-2007 Barth Netterfield"),
0,
"http://kst.kde.org/");
aboutData.addAuthor("Barth Netterfield",
I18N_NOOP("Original author and maintainer."),
"[email protected]",
"http://omega.astro.utoronto.ca/");
aboutData.addAuthor("Staikos Computing Services Inc.",
I18N_NOOP("Developed for the University of Toronto."),
"[email protected]",
"http://www.staikos.net/");
aboutData.addAuthor("Sumus Technology Limited",
I18N_NOOP("Developed for the University of British Columbia"),
"[email protected]",
"http://www.sumusltd.com/");
aboutData.addAuthor("Rick Chern",
I18N_NOOP("University of British Columbia"),
"",
"");
aboutData.addAuthor("Duncan Hanson",
I18N_NOOP("University of British Columbia"),
"",
"");
aboutData.addAuthor("Nicolas Brisset",
"",
"",
"");
aboutData.addAuthor("Matthew Truch",
"",
"http://matt.truch.net/",
"[email protected]");
aboutData.addAuthor("Theodore Kisner",
"",
"[email protected]",
"");
aboutData.setTranslator(I18N_NOOP("_: NAME OF TRANSLATORS\nYour names"),
I18N_NOOP("_: EMAIL OF TRANSLATORS\nYour emails"));
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication app;
KImageIO::registerFormats();
KstDialogs::replaceSelf(new KstGuiDialogs);
KstData::replaceSelf(new KstGuiData);
KstApp::initialize();
atexit(exitHelper);
if (app.isRestored()) {
RESTORE(KstApp)
} else {
KstApp *kst = new KstApp;
InType in;
QColor color;
QCStringList ycolList;
QCStringList matrixList;
QCStringList yEqList;
QCStringList psdList;
QCStringList hsList;
QCStringList errorList;
unsigned int i_ycol;
QCStringList::Iterator hs_string;
QCStringList::Iterator eq_i;
QCStringList::Iterator mat_i;
bool showQuickStart = false;
bool showDataWizard = false;
bool nOK;
int n_y = 0;
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
CheckForCMDErrors(args);
QString wizardfile = args->getOption("w");
QString printfile = args->getOption("print");
QString pngfile = args->getOption("png");
bool print_and_exit = false;
if (printfile != "<none>") {
print_and_exit = true;
}
if (pngfile != "<none>") {
print_and_exit = true;
}
if (!print_and_exit) {
app.setMainWidget(kst);
QRect rect = KGlobalSettings::desktopGeometry(kst);
kst->resize(5 * rect.width() / 6, 5 * rect.height() / 6);
kst->show();
}
//.........这里部分代码省略.........
示例13: main
int main(int argc, char *argv[])
{
KAboutData aboutData( "kdirstat", "KDirStat",
VERSION, description, KAboutData::License_GPL,
"(c) 1999-2008 Stefan Hundhammer", 0, 0,
"[email protected]" );
aboutData.addAuthor( "Stefan Hundhammer",
I18N_NOOP("\n"
"If you have any comments or if you would simply like to tell\n"
"your opinion about this program, please use \n"
"\"Send Feedback Mail\" from the \"Help\" menu.\n"
"\n"
"Any feedback (even negative!) is appreciated." ),
"[email protected]",
"http://kdirstat.sourceforge.net/" );
aboutData.addCredit( "SequoiaView Team",
I18N_NOOP( "for showing just how useful treemaps really can be." ),
0, // e-mail
"http://www.win.tue.nl/sequoiaview" );
aboutData.addCredit( "Jarke J. van Wijk, Huub van de Wetering, Mark Bruls",
I18N_NOOP( "for their papers about treemaps." ),
"[email protected]",
"http://www.win.tue.nl/~vanwijk/" );
aboutData.addCredit( "Ben Shneiderman",
I18N_NOOP( "for his ingenious idea of treemaps -\n"
"a truly intuitive way of visualizing tree contents." ),
"", // E-Mail
"http://www.cs.umd.edu/hcil/treemaps/" );
aboutData.setTranslator( "", "" ); // Default KDE templates don't apply - better leave it empty
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication app;
if ( app.isRestored() )
{
RESTORE( KDirStatApp );
}
else
{
KDirStatApp *kdirstat = new KDirStatApp();
kdirstat->show();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
if ( args->count() )
{
// Process command line arguments as URLs or paths to scan
KURL url = fixedUrl( args->arg( 0 ) );
// kdDebug() << "Opening " << url.url() << endl;
kdirstat->openURL( url );
}
else
{
kdirstat->fileAskOpenDir();
}
args->clear();
}
// kdDebug() << "Entering main loop" << endl;
return app.exec();
}
示例14: about
extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
{
static KCmdLineOptions options[] = {
{ "+[directory]", I18N_NOOP("The sandbox to be loaded"), 0 },
{ "resolve <file>", I18N_NOOP("Show resolve dialog for the given file"), 0 },
{ "log <file>", I18N_NOOP("Show log dialog for the given file"), 0 },
{ "annotate <file>", I18N_NOOP("Show annotation dialog for the given file"), 0 },
KCmdLineLastOption
};
KAboutData about("cervisia", I18N_NOOP("Cervisia"), CERVISIA_VERSION,
I18N_NOOP("A CVS frontend"), KAboutData::License_GPL,
I18N_NOOP("Copyright (c) 1999-2002 Bernd Gehrmann\n"
"Copyright (c) 2002-2007 the Cervisia authors"), 0,
"http://www.kde.org/apps/cervisia");
about.addAuthor("Bernd Gehrmann", I18N_NOOP("Original author and former "
"maintainer"), "[email protected]", 0);
about.addAuthor("Christian Loose", I18N_NOOP("Maintainer"),
"[email protected]", 0);
about.addAuthor("Andr\303\251 W\303\266bbeking", I18N_NOOP("Developer"),
"[email protected]", 0);
about.addAuthor("Carlos Woelz", I18N_NOOP("Documentation"),
"[email protected]", 0);
about.addCredit("Richard Moore", I18N_NOOP("Conversion to KPart"),
"[email protected]", 0);
KCmdLineArgs::init(argc, argv, &about);
KCmdLineArgs::addCmdLineOptions(options);
KApplication app;
QString resolvefile = KCmdLineArgs::parsedArgs()->getOption("resolve");
if (!resolvefile.isEmpty())
return ShowResolveDialog(resolvefile);
// is command line option 'show log dialog' specified?
QString logFile = KCmdLineArgs::parsedArgs()->getOption("log");
if( !logFile.isEmpty() )
return ShowLogDialog(logFile);
// is command line option 'show annotation dialog' specified?
QString annotateFile = KCmdLineArgs::parsedArgs()->getOption("annotate");
if( !annotateFile.isEmpty() )
return ShowAnnotateDialog(annotateFile);
if ( app.isRestored() ) {
RESTORE(CervisiaShell);
} else {
CervisiaShell* shell = new CervisiaShell();
const KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
if( args->count() )
{
KURL directory = args->url(0);
shell->openURL(directory);
}
else
shell->openURL();
shell->setIcon(app.icon());
app.setMainWidget(shell);
shell->show();
}
int res = app.exec();
cleanupTempFiles();
return res;
}
示例15: aboutData
//.........这里部分代码省略.........
// FIXME: more: font
args->clear();
int c = 0, l = 0;
if(!sz.isEmpty())
{
char *ls = (char *)strchr(sz.data(), 'x');
if(ls != NULL)
{
*ls = '\0';
ls++;
c = atoi(sz.data());
l = atoi(ls);
}
else
{
KCmdLineArgs::usage(i18n("expected --vt_sz <#columns>x<#lines> e.g. 80x40\n"));
}
}
if(!kapp->authorizeKAction("size"))
fixed_size = true;
// ///////////////////////////////////////////////
// Ignore SIGHUP so that we don't get killed when
// our parent-shell gets closed.
signal(SIGHUP, SIG_IGN);
putenv((char *)"COLORTERM="); // to trigger mc's color detection
KonsoleSessionManaged ksm;
if(a->isRestored() || !profile.isEmpty())
{
if(!shell)
shell = konsole_shell(eargs);
if(profile.isEmpty())
sessionconfig = a->sessionConfig();
sessionconfig->setDesktopGroup();
int n = 1;
QString key;
QString sTitle;
QString sPgm;
QString sTerm;
QString sIcon;
QString sCwd;
int n_tabbar;
// TODO: Session management stores everything in same group,
// should use one group / mainwindow
while(KMainWindow::canBeRestored(n) || !profile.isEmpty())
{
sessionconfig->setGroup(QString("%1").arg(n));
if(!sessionconfig->hasKey("Pgm0"))
sessionconfig->setDesktopGroup(); // Backwards compatible
int session_count = sessionconfig->readNumEntry("numSes");
int counter = 0;
wname = sessionconfig->readEntry("class", wname).latin1();
sPgm = sessionconfig->readEntry("Pgm0", shell);
sessionconfig->readListEntry("Args0", eargs);