diff options
author | deva <deva> | 2006-05-29 09:24:27 +0000 |
---|---|---|
committer | deva <deva> | 2006-05-29 09:24:27 +0000 |
commit | 33583f49150216f3bc84520b63bf4be16ace076d (patch) | |
tree | 00f75da9204fffd681c808863492a7e8c4a9e636 /client/control.cc | |
parent | d86028ba3e6c0db3c1f56077f481b3bebf883d86 (diff) |
*** empty log message ***
Diffstat (limited to 'client/control.cc')
-rw-r--r-- | client/control.cc | 23 |
1 files changed, 23 insertions, 0 deletions
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; |