summaryrefslogtreecommitdiff
path: root/client/control.cc
diff options
context:
space:
mode:
authordeva <deva>2006-04-14 14:37:56 +0000
committerdeva <deva>2006-04-14 14:37:56 +0000
commitafdd0a07be6a669cdd8343fc033f170395b470c0 (patch)
treef5422200c992ae43e9aef42136aab24578fbbfd0 /client/control.cc
parente5dc1f42337228bf367ae8ea28469a8eef4861bd (diff)
*** empty log message ***
Diffstat (limited to 'client/control.cc')
-rw-r--r--client/control.cc19
1 files changed, 17 insertions, 2 deletions
diff --git a/client/control.cc b/client/control.cc
index 143e11c..92bd74c 100644
--- a/client/control.cc
+++ b/client/control.cc
@@ -87,6 +87,13 @@ void Control::stop()
mutex.unlock();
}
+void Control::takeScreenshot()
+{
+ mutex.lock();
+ screenshot = true;
+ mutex.unlock();
+}
+
bool Control::isFrozen()
{
bool isfrozen;
@@ -105,8 +112,16 @@ bool Control::isRecording()
return isrecording;
}
+bool Control::isScreenshot()
+{
+ bool isscreenshot;
+ mutex.lock();
+ isscreenshot = screenshot;
+ screenshot = false;
+ mutex.unlock();
+ return isscreenshot;
+}
+
// Global control object
Control MIaV::control;
-
-