QtMobility Reference Documentation

QLandmarkId Class Reference

The QLandmarkId class provides a unique identifier for a landmark. More...

 #include <QLandmarkId>

This class was introduced in Qt Mobility 1.1.

Public Functions

QLandmarkId ()
QLandmarkId ( const QLandmarkId & other )
~QLandmarkId ()
bool isValid () const
QString localId () const
QString managerUri () const
void setLocalId ( const QString & id )
void setManagerUri ( const QString & uri )
bool operator!= ( const QLandmarkId & other ) const
QLandmarkId & operator= ( const QLandmarkId & other )
bool operator== ( const QLandmarkId & other ) const

Detailed Description

The QLandmarkId class provides a unique identifier for a landmark.

It consists of a manager URI which identifies the manager which contains the landmark, and a manager specific local id for that landmark.

Member Function Documentation

QLandmarkId::QLandmarkId ()

Creates an invalid identifier.

The local id and manager uri are empty strings.

QLandmarkId::QLandmarkId ( const QLandmarkId & other )

Constructs a copy of other.

This function was introduced in Qt Mobility 1.1.

QLandmarkId::~QLandmarkId ()

Destroys the identifier.

bool QLandmarkId::isValid () const

Returns true if the identifier is valid, meaning that both a manager URI and local id have been set.

This function was introduced in Qt Mobility 1.1.

QString QLandmarkId::localId () const

Returns the local id of the landmark identifier.

This id is specific to a particular landmark manager.

This function was introduced in Qt Mobility 1.1.

See also setLocalId().

QString QLandmarkId::managerUri () const

Returns the URI of the manager which this landmark identifer belongs to.

This function was introduced in Qt Mobility 1.1.

See also setManagerUri().

void QLandmarkId::setLocalId ( const QString & id )

Sets the local id of the landmark identifier.

This function was introduced in Qt Mobility 1.1.

See also localId().

void QLandmarkId::setManagerUri ( const QString & uri )

Sets the manager uri which this landmark identifier belongs to.

This function was introduced in Qt Mobility 1.1.

See also managerUri().

bool QLandmarkId::operator!= ( const QLandmarkId & other ) const

Returns true if this landmark identifier is not equal to other, otherwise returns false.

If either the manager URIs or local ids differ, then the QLandmarkIds are not considered equal.

This function was introduced in Qt Mobility 1.1.

See also operator==().

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

Assigns other to this landmark identifier and returns a reference to this landmark identifier.

This function was introduced in Qt Mobility 1.1.

bool QLandmarkId::operator== ( const QLandmarkId & other ) const

Returns true if this landmark identifer is equal to other, otherwise returns false.

Two QLandmarkIds are considered equal if both have the same manager URI and local id.

This function was introduced in Qt Mobility 1.1.

See also operator!=().

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.