comparison ui/processhelp_linux.cpp @ 1162:2a1206932f53

(issue107) Comment all TODO's and FIXME's with issues as documented in issue107
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 18 Sep 2014 18:53:11 +0200
parents 20ca94680003
children 2a1aa9df8f11
comparison
equal deleted inserted replaced
1161:b67681a61e3e 1162:2a1206932f53
21 { 21 {
22 int lockFileFD = -1; 22 int lockFileFD = -1;
23 } 23 }
24 24
25 const QList<int> ProcessHelp::getProcessesIdForName(const QString &processName) { 25 const QList<int> ProcessHelp::getProcessesIdForName(const QString &processName) {
26 // TODO 26 // TODO (issue39)
27 Q_UNUSED(processName); 27 Q_UNUSED(processName);
28 return QList<int>(); 28 return QList<int>();
29 } 29 }
30 30
31 bool ProcessHelp::otherProcessesExist(const QString &processName) { 31 bool ProcessHelp::otherProcessesExist(const QString &processName) {
32 // FIXME: We are using lock file semantics on GNU Linux so the
33 // name of this method is rather misleading.
34
35 QDir dataDir(QStandardPaths::writableLocation(QStandardPaths::DataLocation)); 32 QDir dataDir(QStandardPaths::writableLocation(QStandardPaths::DataLocation));
36 dataDir.mkpath("."); 33 dataDir.mkpath(".");
37 QString lockFilePath = dataDir.filePath(processName + ".pid"); 34 QString lockFilePath = dataDir.filePath(processName + ".pid");
38 lockFileFD = open_lockfile(lockFilePath.toLocal8Bit().data()); 35 lockFileFD = open_lockfile(lockFilePath.toLocal8Bit().data());
39 if (lockFileFD == -1) 36 if (lockFileFD == -1)
42 return true; 39 return true;
43 return false; 40 return false;
44 } 41 }
45 42
46 void ProcessHelp::activateWindowForProcess(const QString &executableName) { 43 void ProcessHelp::activateWindowForProcess(const QString &executableName) {
47 // TODO 44 // TODO (issue136)
48 Q_UNUSED(executableName); 45 Q_UNUSED(executableName);
49 return; 46 return;
50 } 47 }
51 48
52 void ProcessHelp::cleanUp() { 49 void ProcessHelp::cleanUp() {

http://wald.intevation.org/projects/trustbridge/