From 33583f49150216f3bc84520b63bf4be16ace076d Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 29 May 2006 09:24:27 +0000 Subject: *** empty log message *** --- client/control.cc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'client/control.cc') diff --git a/client/control.cc b/client/control.cc index d634039..4b5d2fa 100644 --- a/client/control.cc +++ b/client/control.cc @@ -33,6 +33,9 @@ Control::Control() recording = false; muted = false; cpr = ""; + + getfreeze = false; + getshot = false; } Control::~Control() @@ -59,6 +62,7 @@ void Control::freeze() { mutex.lock(); frozen = true; + getfreeze = true; mutex.unlock(); } @@ -73,6 +77,7 @@ void Control::shoot() { mutex.lock(); frozen = false; + getshot = true; mutex.unlock(); } @@ -131,6 +136,24 @@ bool Control::isMuted() return ismuted; } +bool Control::getShot() +{ + mutex.lock(); + bool ret = getshot; + getshot = false; + mutex.unlock(); + return ret; +} + +bool Control::getFreeze() +{ + mutex.lock(); + bool ret = getfreeze; + getfreeze = false; + mutex.unlock(); + return ret; +} + // Global control object Control MIaV::control; -- cgit v1.2.3