QDLLink Class Reference
The QDLLink class encapsulates the data of a link. More...
#include <QDLLink>
Inherits QObject.
Public Functions
- 36 public functions inherited from QObject
Additional Inherited Members
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 1 signal inherited from QObject
- 4 static public members inherited from QObject
- 8 protected functions inherited from QObject
- 2 protected variables inherited from QObject
- 1 static protected member inherited from QObject
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:
- Application Reference (QString)- A reference to the application which contains the data to be linked. This is the application filename (for exmaple, addressbook)
- Data Reference (QByteArray)- Binary data that the source uses which uniquely identifies the data to be linked.
- Description (QString)- A description of the link to display to the user.
- 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.