! \brief Constructor Check for a valid server and create one if none found. */
| 55 | Check for a valid server and create one if none found. |
| 56 | */ |
| 57 | QInterProcessChannel::QInterProcessChannel(QObject *p) |
| 58 | : QThread(p), pServer(0), pServerTimer(0) { |
| 59 | #ifdef Q_OS_WIN |
| 60 | rcFile = QDir::tempPath() + QDir::separator() + |
| 61 | QApplication::applicationName() + "rc"; |
| 62 | #else |
| 63 | rcFile = QDir::tempPath() + QDir::separator() + |
| 64 | QApplication::applicationName() + "-" + getenv("USER") + "-" + |
| 65 | getenv("DISPLAY") + "-" + "rc"; |
| 66 | #endif |
| 67 | |
| 68 | init(); |
| 69 | } |
| 70 | |
| 71 | /*! |
| 72 | \brief Destructor |
nothing calls this directly
no outgoing calls
no test coverage detected