void Traverso::saveState( QSessionManager &  manager)
{
	manager.setRestartHint(QSessionManager::RestartIfRunning);
	QStringList command;
	command << "traverso" << "-session" <<  QApplication::sessionId();
	manager.setRestartCommand(command);
}
Exemple #2
0
 bool saveState( QSessionManager&sm) {
     QStringList restartCommand = sm.restartCommand();
     if (has_noxft)
         restartCommand.append("--noxft");
     if (login_shell)
         restartCommand.append("--ls");
     if (full_script)
         restartCommand.append("--script");
     if (!auto_close)
         restartCommand.append("--noclose");
     if (fixed_size)
         restartCommand.append("--noresize");
     sm.setRestartCommand(restartCommand);
     return true;
 }
 void saveState( QSessionManager& sm ) {
     if (KDevelop::Core::self() && KDevelop::Core::self()->sessionController())
         sm.setRestartCommand(QStringList() << "kdevelop" << "-s" << KDevelop::Core::self()->sessionController()->activeSession()->id().toString());
     KApplication::saveState(sm);
 }