QEverCloud 6.1.0
Unofficial Evernote Cloud API for Qt
Loading...
Searching...
No Matches
qevercloud::Tag Struct Reference

#include <Types.h>

Inheritance diagram for qevercloud::Tag:
qevercloud::Printable

Public Member Functions

virtual void print (QTextStream &strm) const override
bool operator== (const Tag &other) const
bool operator!= (const Tag &other) const
Public Member Functions inherited from qevercloud::Printable
 Printable ()=default
virtual ~Printable ()=default
virtual QString toString () const

Public Attributes

EverCloudLocalData localData
Optional< Guidguid
Optional< QString > name
Optional< GuidparentGuid
Optional< qint32 > updateSequenceNum

Detailed Description

A tag within a user's account is a unique name which may be organized a simple hierarchy.

Member Function Documentation

◆ operator!=()

bool qevercloud::Tag::operator!= ( const Tag & other) const
inline

◆ operator==()

bool qevercloud::Tag::operator== ( const Tag & other) const
inline

◆ print()

virtual void qevercloud::Tag::print ( QTextStream & strm) const
overridevirtual

Implements qevercloud::Printable.

Member Data Documentation

◆ guid

Optional< Guid > qevercloud::Tag::guid

The unique identifier of this tag. Will be set by the service, so may be omitted by the client when creating the Tag.
Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
Regex: EDAM_GUID_REGEX

◆ localData

EverCloudLocalData qevercloud::Tag::localData

See the declaration of EverCloudLocalData for details

◆ name

Optional< QString > qevercloud::Tag::name

A sequence of characters representing the tag's identifier. Case is preserved, but is ignored for comparisons. This means that an account may only have one tag with a given name, via case-insensitive comparison, so an account may not have both "food" and "Food" tags. May not contain a comma (','), and may not begin or end with a space.
Length: EDAM_TAG_NAME_LEN_MIN - EDAM_TAG_NAME_LEN_MAX
Regex: EDAM_TAG_NAME_REGEX

◆ parentGuid

Optional< Guid > qevercloud::Tag::parentGuid

If this is set, then this is the GUID of the tag that holds this tag within the tag organizational hierarchy. If this is not set, then the tag has no parent and it is a "top level" tag. Cycles are not allowed (e.g. a->parent->parent == a) and will be rejected by the service.
Length: EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
Regex: EDAM_GUID_REGEX

◆ updateSequenceNum

Optional< qint32 > qevercloud::Tag::updateSequenceNum

A number identifying the last transaction to modify the state of this object. The USN values are sequential within an account, and can be used to compare the order of modifications within the service.