Skip to content

Commit

Permalink
added version, display it at start
Browse files Browse the repository at this point in the history
  • Loading branch information
marazmista committed Feb 20, 2019
1 parent a81750a commit 0cedf6b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions radeon-profile-daemon/rpdthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rpdThread::rpdThread() : QThread(),
signalReceiver(nullptr),
connectionConfirmed(false)
{
qInfo() << "radeon-profile-daemon (v. " + appVersion + ")";
qDebug() << "Starting in debug mode";

createServer();
Expand All @@ -21,10 +22,11 @@ rpdThread::rpdThread() : QThread(),

connectionCheckTimer.setInterval(20000);
connect(&connectionCheckTimer, SIGNAL(timeout()), this, SLOT(checkConnection()));

}

void rpdThread::newConn() {
qWarning() << "Connecting to the client";
qInfo() << "Connecting to the client";
signalReceiver = daemonServer.nextPendingConnection();
connect(signalReceiver,SIGNAL(readyRead()),this,SLOT(decodeSignal()));
connect(signalReceiver,SIGNAL(disconnected()),this,SLOT(disconnected()));
Expand All @@ -41,7 +43,7 @@ void rpdThread::createServer()
if (daemonServer.isListening())
return;

qDebug() << "Awaiting connections...";
qInfo() << "Awaiting connections...";

QLocalServer::removeServer(serverName);
daemonServer.listen(serverName);
Expand All @@ -66,7 +68,7 @@ void rpdThread::closeConnection()
}

void rpdThread::disconnected() {
qWarning() << "Disconnecting from the client";
qInfo() << "Client disconnected";

closeConnection();
}
Expand Down
2 changes: 1 addition & 1 deletion radeon-profile-daemon/rpdthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#define SIGNAL_SHAREDMEM_KEY '6'
#define SIGNAL_ALIVE '7'


const QString appVersion = "20190220";
const QString serverName = "radeon-profile-daemon-server";

class rpdThread : public QThread
Expand Down

0 comments on commit 0cedf6b

Please sign in to comment.