summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'SwifTools/Idle/PlatformIdleQuerier.h')
-rw-r--r--SwifTools/Idle/PlatformIdleQuerier.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/SwifTools/Idle/PlatformIdleQuerier.h b/SwifTools/Idle/PlatformIdleQuerier.h
new file mode 100644
index 0000000..e567b0e
--- /dev/null
+++ b/SwifTools/Idle/PlatformIdleQuerier.h
@@ -0,0 +1,18 @@
+#pragma once
+
+#include "SwifTools/Idle/IdleQuerier.h"
+
+namespace Swift {
+ class PlatformIdleQuerier : public IdleQuerier {
+ public:
+ PlatformIdleQuerier();
+ ~PlatformIdleQuerier();
+
+ virtual int getIdleTimeSeconds() {
+ return querier->getIdleTimeSeconds();
+ }
+
+ private:
+ IdleQuerier* querier;
+ };
+}