libs/flake

KoDevice Class Reference

Base class for all custom input devices. More...

#include <KoDevice.h>

Inheritance diagram for KoDevice:

List of all members.

Public Member Functions

 KoDevice (QObject *parent, const QString &id)
virtual ~KoDevice ()
QString id () const
QString name () const
virtual bool start ()=0
virtual bool stop ()=0

Detailed Description

Base class for all custom input devices.

Definition at line 29 of file KoDevice.h.


Constructor & Destructor Documentation

KoDevice::KoDevice ( QObject parent,
const QString id 
)

Definition at line 31 of file KoDevice.cpp.

KoDevice::~KoDevice (  )  [virtual]

Definition at line 36 of file KoDevice.cpp.


Member Function Documentation

QString KoDevice::id (  )  const

Return the id for the device.

Returns:
the id for the device

Definition at line 41 of file KoDevice.cpp.

QString KoDevice::name (  )  const

Needed for KoGenericRegistry::listKeys() on windows.

Definition at line 46 of file KoDevice.cpp.

virtual bool KoDevice::start (  )  [pure virtual]

Starts the device.

Returns:
true if the device was started, false otherwise
virtual bool KoDevice::stop (  )  [pure virtual]

Stops the device.

Returns:
true if the device was stopped, false otherwise

The documentation for this class was generated from the following files: