00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef DETECTLINUX_H
00022 #define DETECTLINUX_H
00023
00024 #include "inputdevice.h"
00025 #include "joystick.h"
00026 #include "keyboard.h"
00027 #include "mouse.h"
00028 #include "touch.h"
00029 #include "detect.h"
00030
00031 #include <QtCore/QObject>
00032 #include <QtCore/QList>
00033 #include <QtCore/QSharedData>
00034
00035 namespace GluonInput
00036 {
00037 class GLUON_INPUT_EXPORT DetectWin : public Detect
00038 {
00039 public:
00040 DetectWin( QObject* parent );
00041 ~DetectWin();
00042
00043 void detectDevices();
00044 void setAllEnabled( bool enable );
00045
00046 QList<InputDevice*> inputList();
00047 QList<Keyboard*> keyboardList();
00048 QList<Mouse*> mouseList();
00049 QList<Joystick*> joystickList();
00050 QList<Touch*> touchList();
00051 QList<InputDevice*> unknownDeviceList();
00052
00053 void addInput( InputDevice* i );
00054 void addKeyboard( InputDevice* i );
00055 void addMouse( InputDevice* i );
00056 void addJoystick( InputDevice* i );
00057 void addTouch( InputDevice* i );
00058 void addUnknown( InputDevice* i );
00059
00060 void clear();
00061
00062 private:
00063 class DetectWinPrivate;
00064 DetectWinPrivate* const d;
00065 };
00066 }
00067 #endif