From 11adb303b41aa18052c64075d5d32d6c3d56f134 Mon Sep 17 00:00:00 2001 From: SySyAli Date: Mon, 25 Dec 2023 20:35:37 -0500 Subject: [PATCH] Started working on Linux AppTracker implementation. --- AppTracker.cpp | 6 ++++++ AppTracker.h | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/AppTracker.cpp b/AppTracker.cpp index aa81fce..79ab381 100644 --- a/AppTracker.cpp +++ b/AppTracker.cpp @@ -21,6 +21,8 @@ void AppTracker::startTracking() { #ifdef _WIN32 startTrackingWindows(); +#elif __linux + startTrackingLinux(); #else throw std::runtime_error("Operating Systems other than Windows have not been supported yet!"); #endif @@ -99,4 +101,8 @@ void AppTracker::startTrackingWindows() Sleep(1000); // Check every second, check if this should be changed } } +#elif __linux +void AppTracker::startTrackingLinux(){ + throw std::runtime_error("linux is not implemented yet!"); +} #endif \ No newline at end of file diff --git a/AppTracker.h b/AppTracker.h index 396f54e..5f4e897 100644 --- a/AppTracker.h +++ b/AppTracker.h @@ -41,10 +41,10 @@ class AppTracker { #ifdef _WIN32 // startTracking Method - windows implementation void startTrackingWindows(); - +#elif __linux__ + void startTrackingLinux(); // TODO: Linux implementation // TODO: MacOS implementation - #endif };