Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Opie::Core::OInputSystem Class Reference

A container class for the Linux input device subsystem. More...

#include </home/clem/local/src/opie/libopie2/opiecore/linux/oinputsystem.h>

Collaboration diagram for Opie::Core::OInputSystem:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QDict< OInputDeviceDeviceMap
typedef QDictIterator< OInputDeviceDeviceIterator

Public Member Functions

int count () const
DeviceIterator iterator () const
OInputDevicedevice (const QString &interface) const
void synchronize ()
 ~OInputSystem ()

Static Public Member Functions

static OInputSysteminstance ()

Protected Member Functions

 OInputSystem ()

Protected Attributes

DeviceMap _devices

Static Protected Attributes

static OInputSystem_instance = 0

Detailed Description

A container class for the Linux input device subsystem.

This class provides access to all available input system devices of your device.

Author:
Michael 'Mickey' Lauer <mickey@Vanille.de>

Definition at line 50 of file oinputsystem.h.


Member Typedef Documentation

typedef QDictIterator<OInputDevice> Opie::Core::OInputSystem::DeviceIterator
 

Definition at line 54 of file oinputsystem.h.

typedef QDict<OInputDevice> Opie::Core::OInputSystem::DeviceMap
 

Definition at line 53 of file oinputsystem.h.


Constructor & Destructor Documentation

OInputSystem::~OInputSystem  ) 
 

For internal use only.

destructor

Definition at line 85 of file oinputsystem.cpp.

References qDebug().

OInputSystem::OInputSystem  )  [protected]
 

Definition at line 56 of file oinputsystem.cpp.

References qDebug(), and synchronize().

Referenced by instance().


Member Function Documentation

int OInputSystem::count  )  const
 

Returns:
the number of available input devices

Definition at line 91 of file oinputsystem.cpp.

References _devices, and QDict< type >::count().

OInputDevice * OInputSystem::device const QString interface  )  const
 

Returns:
a pointer to the OAudioInterface object for the specified interface or 0, if not found
See also:
OAudioInterface

Definition at line 97 of file oinputsystem.cpp.

References _devices.

OInputSystem * OInputSystem::instance  )  [static]
 

Returns:
a pointer to the (one and only) OInputSystem instance.

Definition at line 103 of file oinputsystem.cpp.

References _instance, and OInputSystem().

Referenced by main(), and Opie::Core::Internal::Zaurus::readHingeSensor().

OInputSystem::DeviceIterator OInputSystem::iterator  )  const
 

Returns:
an iterator usable for iterating through all network interfaces.

Definition at line 110 of file oinputsystem.cpp.

References _devices.

Referenced by main(), and InputCategory::populate().

void OInputSystem::synchronize  ) 
 

For internal use only.

Rebuild the internal interface database

Note:
Sometimes it might be useful to call this from client code,

Definition at line 63 of file oinputsystem.cpp.

References _devices, QDir::absFilePath(), QValueList< T >::begin(), QDict< type >::count(), QValueList< T >::end(), QDir::entryList(), QDir::exists(), QDict< type >::insert(), Opie::Core::OInputDevice::isValid(), QDir::Name, qDebug(), qWarning(), and QDir::System.

Referenced by OInputSystem().


Member Data Documentation

DeviceMap Opie::Core::OInputSystem::_devices [protected]
 

Definition at line 87 of file oinputsystem.h.

Referenced by count(), device(), iterator(), and synchronize().

OInputSystem * OInputSystem::_instance = 0 [static, protected]
 

Definition at line 54 of file oinputsystem.cpp.

Referenced by instance().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 18:00:32 2005 for OPIE by  doxygen 1.4.2