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 #ifndef __GizmoClient_h 00030 #define __GizmoClient_h 00031 00032 #if HAVE_CONFIG_H 00033 #include "config.h" 00034 #endif 00035 00036 #include "GizmoATIX10.hpp" 00037 #include "GizmoLIRC.hpp" 00038 #include "GizmoPowermate.hpp" 00039 #include "GizmoStandard.hpp" 00040 #include "GizmoEventATIX10.hpp" 00041 #include "GizmoEventCPUUsage.hpp" 00042 #include "GizmoEventLIRC.hpp" 00043 #include "GizmoEventPowermate.hpp" 00044 #include "GizmoEventSoundCard.hpp" 00045 #include "GizmoEventSoundVisualization.hpp" 00046 #include "GizmoEventStandard.hpp" 00047 #include "GizmoEventWindowFocus.hpp" 00048 #include "../libH/SocketClient.hpp" 00049 00051 // Namespace 00053 00054 namespace Gizmod { 00055 00057 // Typedef, enum's 00059 00061 // Class Definition 00063 00071 class GizmoClient : public H::SocketClient { 00072 public: 00073 // public functions 00074 void sendEventATIX10(GizmoEventATIX10 const & Event, GizmoATIX10 const & Gizmo); 00075 void sendEventCPUUsage(GizmoEventCPUUsage const & Event); 00076 void sendEventLIRC(GizmoEventLIRC const & Event, GizmoLIRC const & Gizmo); 00077 void sendEventPowermate(GizmoEventPowermate const & Event, GizmoPowermate const & Gizmo); 00078 void sendEventSoundCard(GizmoEventSoundCard const & Event); 00079 void sendEventSoundVisualization(GizmoEventSoundVisualization const & Event); 00080 void sendEventStandard(GizmoEventStandard const & Event, GizmoStandard const & Gizmo); 00081 void sendEventWindowFocus(GizmoEventWindowFocus const & Event); 00082 00083 // construction / deconstruction 00084 GizmoClient(); 00085 virtual ~GizmoClient(); 00086 00087 private: 00088 // private functions 00089 00090 // private member variables 00091 }; 00092 00094 00095 } // Gizmod namespace 00096 00097 #endif // __GizmoClient_h