MCPcopy Create free account
hub / github.com/KDE/kdevelop / newSession

Method newSession

kdevplatform/shell/sessioncontroller.cpp:112–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 void newSession(const QString& name = {})
113 {
114 auto* session = new Session(QUuid::createUuid().toString());
115 if (!name.isEmpty()) {
116 session->setName(name);
117 }
118
119 KProcess::startDetached(ShellExtension::getInstance()->executableFilePath(), QStringList() << QStringLiteral("-s") << session->id().toString() << standardArguments());
120 delete session;
121#if 0
122 //Terminate this instance of kdevelop if the user agrees
123 const auto windows = Core::self()->uiController()->controller()->mainWindows();
124 for (Sublime::MainWindow* window : windows) {
125 window->close();
126 }
127#endif
128 }
129
130 void newNamedSession()
131 {

Callers 2

SessionControllerMethod · 0.80
startNewSessionMethod · 0.80

Calls 11

QStringListClass · 0.85
standardArgumentsFunction · 0.85
executableFilePathMethod · 0.80
mainWindowsMethod · 0.80
uiControllerMethod · 0.80
toStringMethod · 0.45
isEmptyMethod · 0.45
setNameMethod · 0.45
idMethod · 0.45
controllerMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected