00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef CEYLAN_INPUT_DEVICE_H_
00028 #define CEYLAN_INPUT_DEVICE_H_
00029
00030
00031 #include "CeylanTextDisplayable.h"
00032 #include "CeylanEvent.h"
00033
00034 #include <string>
00035
00036
00037
00038
00039 namespace Ceylan
00040 {
00041
00042
00043
00044 class Controller ;
00045
00046
00047
00069 class CEYLAN_DLL InputDevice : public TextDisplayable
00070 {
00071
00072
00073 public:
00074
00075
00076
00082 InputDevice() ;
00083
00084
00085
00091 explicit InputDevice( Controller & controller ) ;
00092
00093
00094
00096 virtual ~InputDevice() throw() ;
00097
00098
00099
00101 virtual bool isLinkedToController() const ;
00102
00103
00104
00114 virtual Controller & getController() const ;
00115
00116
00117
00130 virtual void setController( Controller & controller ) ;
00131
00132
00133
00141 virtual bool dropController() ;
00142
00143
00144
00155 virtual const std::string toString(
00156 Ceylan::VerbosityLevels level = Ceylan::high ) const ;
00157
00158
00159
00160 protected:
00161
00162
00168 Controller * _controller ;
00169
00170
00171
00172 private:
00173
00174
00183 InputDevice( const InputDevice & source ) ;
00184
00185
00194 InputDevice & operator = ( const InputDevice & source ) ;
00195
00196
00197
00198 } ;
00199
00200 }
00201
00202
00203
00204 #endif // CEYLAN_INPUT_DEVICE_H_