QtMobility Reference Documentation

QLandmarkCategoryId Class Reference

The QLandmarkCategoryId class provides a unique identifier for a category. More...

 #include <QLandmarkCategoryId>

This class was introduced in Qt Mobility 1.1.

Public Functions

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

Detailed Description

The QLandmarkCategoryId class provides a unique identifier for a category.

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

Member Function Documentation

QLandmarkCategoryId::QLandmarkCategoryId ()

Creates an invalid identifier.

The local id and manager URI are empty strings.

QLandmarkCategoryId::QLandmarkCategoryId ( const QLandmarkCategoryId & other )

Constructs a copy of other.

QLandmarkCategoryId::~QLandmarkCategoryId ()

Destroys the identifier.

bool QLandmarkCategoryId::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 QLandmarkCategoryId::localId () const

Returns the local id of the category identifier.

This id is specific to a particular landmark manager.

This function was introduced in Qt Mobility 1.1.

See also setLocalId().

QString QLandmarkCategoryId::managerUri () const

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

This function was introduced in Qt Mobility 1.1.

See also setManagerUri().

void QLandmarkCategoryId::setLocalId ( const QString & id )

Sets the local id of the category identifier.

This function was introduced in Qt Mobility 1.1.

See also localId().

void QLandmarkCategoryId::setManagerUri ( const QString & uri )

Sets the manager uri which this category identifier belongs to.

This function was introduced in Qt Mobility 1.1.

See also managerUri().

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

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

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

This function was introduced in Qt Mobility 1.1.

See also operator==().

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

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

This function was introduced in Qt Mobility 1.1.

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

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

Two QLandmarkCategoryIds 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.