|
| | ItemTagPair () |
| | This class provides a wrapper over the Database methods to access the properties of tag / image association.
|
| |
|
| ItemTagPair (const ItemInfo &info, int tagId) |
| |
|
| ItemTagPair (const ItemTagPair &other) |
| |
|
| ItemTagPair (qlonglong imageId, int tagId) |
| | Access the properties of the given image - tag pair.
|
| |
| void | addProperty (const QString &key, const QString &value) |
| | Adds the given property.
|
| |
|
QStringList | allValues (const QStringList &keys) const |
| | Returns value() concatenated for all given keys.
|
| |
|
void | assignTag () |
| | Assigns the tag to the image.
|
| |
|
void | clearProperties () |
| | Removes all properties.
|
| |
|
bool | hasAnyProperty (const QStringList &keys) const |
| | Returns true if any of the properties is set.
|
| |
|
bool | hasProperty (const QString &key) const |
| | Returns true if the property is set.
|
| |
|
bool | hasValue (const QString &key, const QString &value) const |
| | Returns true of the given property and value is set.
|
| |
|
qlonglong | imageId () const |
| |
|
bool | isAssigned () const |
| | Returns if the tag is assigned to the image.
|
| |
|
bool | isNull () const |
| |
|
ItemTagPair & | operator= (const ItemTagPair &other) |
| |
|
QMultiMap< QString, QString > | properties () const |
| | Returns a map of all key->value pairs.
|
| |
|
QStringList | propertyKeys () const |
| | Returns all set property keys.
|
| |
|
void | removeProperties (const QString &key) |
| | Remove all occurrences of the property.
|
| |
|
void | removeProperty (const QString &key, const QString &value) |
| | Remove all occurrences of the property.
|
| |
|
void | setProperty (const QString &key, const QString &value) |
| | Set the given property. Replaces all previous occurrences of this property.
|
| |
|
int | tagId () const |
| |
|
void | unAssignTag () |
| | Removes the tag from the image.
|
| |
|
QString | value (const QString &key) const |
| | Returns the value of the given property, or a null string if not set.
|
| |
|
QStringList | values (const QString &key) const |
| | Returns a list of values with the given property.
|
| |