Initial commit

This commit is contained in:
Kevin Yue
2020-02-15 16:26:32 +08:00
parent a40a2230d8
commit 321c73710e
27 changed files with 1282 additions and 0 deletions

19
GPService/main.cpp Normal file
View File

@@ -0,0 +1,19 @@
#include <QCoreApplication>
#include <QtDBus>
#include "gpservice.h"
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
if (!QDBusConnection::systemBus().isConnected()) {
qWarning("Cannot connect to the D-Bus session bus.\n"
"Please check your system settings and try again.\n");
return 1;
}
new GPService;
return a.exec();
}