Build fixes and some refactoring

This commit is contained in:
Mazay B 2023-06-30 00:21:56 +01:00
parent e0c2f873f5
commit 4a4c9cd63f
9 changed files with 22 additions and 94 deletions

View file

@ -91,7 +91,6 @@ AndroidController::AndroidController() : QObject()
connect(activity, &AndroidVPNActivity::eventStatisticUpdate, this,
[this](const QString& parcelBody) {
qDebug() << "Transact: update";
auto doc = QJsonDocument::fromJson(parcelBody.toUtf8());
QString rx = doc.object()["rx_bytes"].toString();
@ -229,8 +228,6 @@ void AndroidController::setFallbackConnectedNotification() {
}
void AndroidController::checkStatus() {
qDebug() << "check status";
AndroidVPNActivity::sendToService(ServiceAction::ACTION_REQUEST_STATISTIC, QString());
}

View file

@ -39,6 +39,7 @@ enum ServiceAction {
typedef enum ServiceAction ServiceAction;
// Event Types that will be Dispatched after registration
// Kotlin codes in the VPNServiceBinder.kt
enum ServiceEvents {
// The Service has Accepted our Binder
// Responds with the current status of the vpn.