From c0248a2c02381b5a5dce5c4543db6ff46486f2f1 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Fri, 04 Feb 2005 17:45:50 +0000 Subject: use a sane method to discover valid device nodes --- (limited to 'libopie2/opiecore/oinputsystem.h') diff --git a/libopie2/opiecore/oinputsystem.h b/libopie2/opiecore/oinputsystem.h index 7919610..6f822a1 100644 --- a/libopie2/opiecore/oinputsystem.h +++ b/libopie2/opiecore/oinputsystem.h @@ -77,25 +77,25 @@ class OInputSystem : public QObject void synchronize(); /** * @internal destructor - */ + */ ~OInputSystem(); - + protected: OInputSystem(); - + static OInputSystem* _instance; DeviceMap _devices; }; class OInputDevice : public QObject -{ +{ public: OInputDevice( QObject* parent, const char* name = 0 ); ~OInputDevice(); - #include "oinputsystemenums.h" - + #include "oinputsystemenums.h" + public: /** * @returns the identity string of this input device @@ -123,7 +123,12 @@ class OInputDevice : public QObject * @returns a string containing a printable form of the global keymask */ QString globalKeyMask() const; - + /** + * @internal + * @returns whether a certain @a path corresponds to an input device + */ + static bool isValid( const QString& path ); + private: int _fd; input_id _id; -- cgit v0.9.0.2