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

Function dBusServiceNameForSession

kdevplatform/shell/sessionlock.cpp:27–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25}
26
27QString dBusServiceNameForSession(QStringView id)
28{
29 Q_ASSERT(id.startsWith(QLatin1Char{'{'}));
30 Q_ASSERT(id.endsWith(QLatin1Char{'}'}));
31 // We remove starting "{" and ending "}" from the string UUID representation
32 // as D-Bus apparently doesn't allow them in service names
33 return QLatin1String("org.kdevelop.kdevplatform-lock-") + id.sliced(1, id.size() - 2);
34}
35
36/// Force-removes the lock-file.
37void forceRemoveLockfile(const QString& lockFilename)

Callers 3

tryLockSessionMethod · 0.85
~SessionLockMethod · 0.85
handleLockedSessionMethod · 0.85

Calls 2

endsWithMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected