The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Private Attributes | List of all members
preferences::acquaintance Class Reference

#include <preferences.hpp>

Public Member Functions

 acquaintance ()
 
 acquaintance (const config &cfg)
 
 acquaintance (const std::string &nick, const std::string &status, const std::string &notes)
 
const std::string & get_nick () const
 
const std::string & get_status () const
 
const std::string & get_notes () const
 
void save (config &item)
 

Private Attributes

std::string nick_
 acquaintance's MP nick More...
 
std::string status_
 status (e.g., "friend", "ignore") More...
 
std::string notes_
 notes on the acquaintance More...
 

Detailed Description

Definition at line 70 of file preferences.hpp.

Constructor & Destructor Documentation

◆ acquaintance() [1/3]

preferences::acquaintance::acquaintance ( )
inline

Definition at line 73 of file preferences.hpp.

◆ acquaintance() [2/3]

preferences::acquaintance::acquaintance ( const config cfg)
inlineexplicit

Definition at line 77 of file preferences.hpp.

References nick_, notes_, and status_.

◆ acquaintance() [3/3]

preferences::acquaintance::acquaintance ( const std::string &  nick,
const std::string &  status,
const std::string &  notes 
)
inline

Definition at line 84 of file preferences.hpp.

Member Function Documentation

◆ get_nick()

const std::string& preferences::acquaintance::get_nick ( ) const
inline

Definition at line 91 of file preferences.hpp.

References nick_.

Referenced by gui2::dialogs::preferences_dialog::get_friends_list_row_data(), and prefs::prefs().

◆ get_notes()

const std::string& preferences::acquaintance::get_notes ( ) const
inline

Definition at line 93 of file preferences.hpp.

References notes_.

Referenced by gui2::dialogs::preferences_dialog::get_friends_list_row_data().

◆ get_status()

const std::string& preferences::acquaintance::get_status ( ) const
inline

Definition at line 92 of file preferences.hpp.

References status_.

Referenced by gui2::dialogs::preferences_dialog::get_friends_list_row_data().

◆ save()

void preferences::acquaintance::save ( config item)
inline

Definition at line 95 of file preferences.hpp.

References nick_, notes_, and status_.

Member Data Documentation

◆ nick_

std::string preferences::acquaintance::nick_
private

acquaintance's MP nick

Definition at line 104 of file preferences.hpp.

Referenced by acquaintance(), get_nick(), and save().

◆ notes_

std::string preferences::acquaintance::notes_
private

notes on the acquaintance

Definition at line 110 of file preferences.hpp.

Referenced by acquaintance(), get_notes(), and save().

◆ status_

std::string preferences::acquaintance::status_
private

status (e.g., "friend", "ignore")

Definition at line 107 of file preferences.hpp.

Referenced by acquaintance(), get_status(), and save().


The documentation for this class was generated from the following file: