Home · All Classes · Annotated · Functions

QDLLink Class Reference

The QDLLink class encapsulates the data of a link. More...

#include <QDLLink>

Inherits QObject.

Public Functions

Additional Inherited Members


Detailed Description

The QDLLink class encapsulates the data of a link.

The QDLLink class encapsulates the data of a link.

A link is made up of four elements. They are:

  1. Application Reference (QString)- A reference to the application which contains the data to be linked. This is the application filename (for exmaple, addressbook)
  2. Data Reference (QByteArray)- Binary data that the source uses which uniquely identifies the data to be linked.
  3. Description (QString)- A description of the link to display to the user.
  4. Icon (QString) The name of an icon which qualifies the link in some way (for example, as a link to a contact, an event etc). Passed to QPixmap(":image/"+)

Member Function Documentation

QDLLink::QDLLink ()

Constructs a null link.

QDLLink::QDLLink ( const QString & appRef, const QByteArray & dataRef, const QString & desc, const QString & icon )

Constructs a link from the application reference appRef, the data reference dataRef, the description desc and the icon icon.

QDLLink::QDLLink ( const QDLLink & other )

Copy constructor. Performs a deep copy of the link specified by other.

QString QDLLink::appRef () const

Returns the application reference of the link.

See also setAppRef().

QByteArray QDLLink::dataRef () const

Returns the data reference of the link.

See also setDataRef().

QString QDLLink::description () const

Returns the description of the link.

See also setDescription().

QString QDLLink::icon () const

Returns the icon of the link.

See also setIcon().

bool QDLLink::isNull () const

Returns true if the link is null, otherwise returns false. A null link has no application or data reference.

void QDLLink::setAppRef ( const QString & ref )

Sets the application reference of the link to ref.

See also appRef().

void QDLLink::setDataRef ( const QByteArray & ref )

Sets the data reference of the link to ref.

See also dataRef().

void QDLLink::setDescription ( const QString & desc )

Sets the description of the link to desc.

See also description().

void QDLLink::setIcon ( const QString & icon )

Sets the icon of the link to icon.

See also icon().

QDLLink & QDLLink::operator= ( const QDLLink & other )

Deep copies the link specified by other.


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7