diff options
author | deva <deva> | 2006-05-04 14:19:37 +0000 |
---|---|---|
committer | deva <deva> | 2006-05-04 14:19:37 +0000 |
commit | 60c43b0a065175a49ae0aa2b10280e893479889b (patch) | |
tree | ed007e88dbc34d03b016f19a164bc0126af6f76a /client/control.cc | |
parent | d5da69b6ed984df4c60c3a7abfa8119db34eab2b (diff) |
*** empty log message ***
Diffstat (limited to 'client/control.cc')
-rw-r--r-- | client/control.cc | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/client/control.cc b/client/control.cc index 6dd4b4b..b6495d2 100644 --- a/client/control.cc +++ b/client/control.cc @@ -31,6 +31,7 @@ Control::Control() // Initialize control state frozen = false; recording = false; + muted = false; cpr = ""; } @@ -86,14 +87,21 @@ void Control::stop() recording = false; mutex.unlock(); } -/* -void Control::takeScreenshot() + +void Control::mute() { mutex.lock(); - screenshot = true; + muted = true; mutex.unlock(); } -*/ + +void Control::unmute() +{ + mutex.lock(); + muted = false; + mutex.unlock(); +} + bool Control::isFrozen() { bool isfrozen; @@ -111,17 +119,16 @@ bool Control::isRecording() mutex.unlock(); return isrecording; } -/* -bool Control::isScreenshot() + +bool Control::isMuted() { - bool isscreenshot; + bool ismuted; mutex.lock(); - isscreenshot = screenshot; - screenshot = false; + ismuted = muted; mutex.unlock(); - return isscreenshot; + return ismuted; } -*/ + // Global control object Control MIaV::control; |