Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QIrIasDatabase Class Reference

The QIrIasDatabase class provides access to the local IAS Database. More...

    #include <QIrIasDatabase>

Static Public Members


Detailed Description

The QIrIasDatabase class provides access to the local IAS Database.

IAS stands for Information Access Service. The IAS database provides a way for applications to register information about the infrared services they provide.

QIrIasDatabase class provides access to the local IAS Database, and gives the ability to add, query and delete attributes. This class also allows to modify the advertised major classes this device supports. These are generally referred to as service hints.


Member Function Documentation

QVariant QIrIasDatabase::attribute ( const QString & className, const QString & attribName )   [static]

Returns the value of an attribute from the local IAS Database. The className parameter specifies the class name of the attribute. The attribName parameter specifies the attribute name. Returns an invalid QVariant in case of failure, and valid otherwise. The value of QVariant can be one of:

NOTE: Under linux this function requires administrator privileges. Under windows this function has no effect and always returns an invalid value.

See also setAttribute() and removeAttribute().

bool QIrIasDatabase::removeAttribute ( const QString & className, const QString & attribName )   [static]

Attempts to remove the attribute from the local IAS Database. The className parameter specifies the class name of the attribute. The attribName parameter specifies the attribute name. Returns true if the attribute could be removed, false otherwise.

NOTE: Under linux this function requires administrator privileges. Under Windows this function has no effect and always returns false

See also setAttribute() and attribute().

bool QIrIasDatabase::setAttribute ( const QString & className, const QString & attribName, const QVariant & attr )   [static]

Sets a new attribute into the IAS Database returning true if successful; otherwise returning false. The attr parameter holds the attribute to be set. Attr can be of the following types:

Any other type will be treated as invalid. The className parameter holds the class name of the IAS attribute. The attribName parameter holds the attribute name of the attribute.

NOTE: Under linux this function requires administrator privileges.

See also attribute() and removeAttribute().


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3