|
libmusicbrainz3
3.0.2
|
Represents a MusicBrainz user. More...
Public Member Functions | |
| User () | |
| Constructor. | |
| virtual | ~User () |
| Destructor. | |
| std::string | getName () const |
| Returns the user name. | |
| void | setName (const std::string &name) |
| Sets the user name. | |
| std::vector< std::string > & | getTypes () |
| Returns the types of this user. | |
| int | getNumTypes () const |
| Returns number of types. | |
| std::string | getType (int index) const |
| Returns an type specified by index. | |
| void | addType (const std::string &type) |
| Add a type to the list of types. | |
| bool | getShowNag () const |
| Returns true if a nag screen should be displayed to the user. | |
| void | setShowNag (bool value) |
| Sets the value of the nag screen flag. | |
Represents a MusicBrainz user.
Constructor.
| virtual MusicBrainz::User::~User | ( | ) | [virtual] |
Destructor.
| void MusicBrainz::User::addType | ( | const std::string & | type | ) |
Add a type to the list of types.
| type | a string containing absolute URIs |
| std::string MusicBrainz::User::getName | ( | ) | const |
Returns the user name.
| int MusicBrainz::User::getNumTypes | ( | ) | const |
Returns number of types.
This is equivalent to getTypes().size()
| bool MusicBrainz::User::getShowNag | ( | ) | const |
Returns true if a nag screen should be displayed to the user.
| std::string MusicBrainz::User::getType | ( | int | index | ) | const |
Returns an type specified by index.
This is equivalent to getTypes()[index]
| std::vector<std::string>& MusicBrainz::User::getTypes | ( | ) |
Returns the types of this user.
Most users' type list is empty. Currently, the following types are defined:
| void MusicBrainz::User::setName | ( | const std::string & | name | ) |
Sets the user name.
| name | a string containing the user name |
| void MusicBrainz::User::setShowNag | ( | bool | value | ) |