00001 00012 /* 00013 00014 Copyright (c) 2007, Tim Burrell 00015 Licensed under the Apache License, Version 2.0 (the "License"); 00016 you may not use this file except in compliance with the License. 00017 You may obtain a copy of the License at 00018 00019 http://www.apache.org/licenses/LICENSE-2.0 00020 00021 Unless required by applicable law or agreed to in writing, software 00022 distributed under the License is distributed on an "AS IS" BASIS, 00023 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00024 See the License for the specific language governing permissions and 00025 limitations under the License. 00026 00027 */ 00028 00029 #include "AlsaEvent.hpp" 00030 #include "../libH/Debug.hpp" 00031 #include "../libH/Exception.hpp" 00032 00033 using namespace std; 00034 using namespace H; 00035 using namespace Gizmod; 00036 00038 // Typedef's, structs 00040 00042 // Construction 00044 00048 AlsaEvent::AlsaEvent() { 00049 Type = ALSAEVENT_ERROR; 00050 Mask = 0; 00051 IsActiveChanged = false; 00052 ElementsChanged = false; 00053 VolumePlaybackChanged = false; 00054 VolumeCaptureChanged = false; 00055 SwitchCaptureChanged = false; 00056 SwitchPlaybackChanged = false; 00057 } 00058 00062 AlsaEvent::AlsaEvent(AlsaEventType type, unsigned int mask) { 00063 Type = type; 00064 Mask = mask; 00065 IsActiveChanged = false; 00066 ElementsChanged = false; 00067 VolumePlaybackChanged = false; 00068 VolumeCaptureChanged = false; 00069 SwitchCaptureChanged = false; 00070 SwitchPlaybackChanged = false; 00071 } 00072 00076 AlsaEvent::AlsaEvent(AlsaEvent const & Event) { 00077 Type = Event.Type; 00078 Mask = Event.Mask; 00079 IsActiveChanged = Event.IsActiveChanged; 00080 ElementsChanged = Event.ElementsChanged; 00081 VolumePlaybackChanged = Event.VolumePlaybackChanged; 00082 VolumeCaptureChanged = Event.VolumeCaptureChanged; 00083 SwitchCaptureChanged = Event.SwitchCaptureChanged; 00084 SwitchPlaybackChanged = Event.SwitchPlaybackChanged; 00085 } 00086 00090 AlsaEvent::~AlsaEvent() { 00091 } 00092 00094 // Class Body