libmusicbrainz3
3.0.2
|
Represents a MusicBrainz user. More...
Public Member Functions | |
User () | |
Constructor. More... | |
virtual | ~User () |
Destructor. More... | |
std::string | getName () const |
Returns the user name. More... | |
void | setName (const std::string &name) |
Sets the user name. More... | |
std::vector< std::string > & | getTypes () |
Returns the types of this user. More... | |
int | getNumTypes () const |
Returns number of types. More... | |
std::string | getType (int index) const |
Returns an type specified by index. More... | |
void | addType (const std::string &type) |
Add a type to the list of types. More... | |
bool | getShowNag () const |
Returns true if a nag screen should be displayed to the user. More... | |
void | setShowNag (bool value) |
Sets the value of the nag screen flag. More... | |
Represents a MusicBrainz user.
MusicBrainz::User::User | ( | ) |
Constructor.
|
virtual |
Destructor.
void MusicBrainz::User::addType | ( | const std::string & | type | ) |
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 | ) |