Skip to content

Commit

Permalink
Started working on Linux AppTracker implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
SySyAli committed Dec 26, 2023
1 parent f6eb620 commit 11adb30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions AppTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions AppTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
};

Expand Down

0 comments on commit 11adb30

Please sign in to comment.