The Battle for Wesnoth  1.15.2+dev
lobby.hpp
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 - 2018 by Tomasz Sniatowski <kailoran@gmail.com>
3  Part of the Battle for Wesnoth Project https://www.wesnoth.org/
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY.
11 
12  See the COPYING file for more details.
13 */
14 
15 #pragma once
16 
17 #include <string>
18 
19 namespace preferences {
20 
21  bool whisper_friends_only();
22  void set_whisper_friends_only(bool v);
23 
25  void set_auto_open_whisper_windows(bool v);
26 
28 
29  bool filter_lobby();
30  void set_filter_lobby(bool value);
31 
32  bool fi_invert();
33  void set_fi_invert(bool value);
34 
35  bool fi_vacant_slots();
36  void set_fi_vacant_slots(bool value);
37 
38  bool fi_friends_in_game();
39  void set_fi_friends_in_game(bool value);
40 
41  std::string fi_text();
42  void set_fi_text(const std::string& search_string);
43 } //end namespace preferences
void set_filter_lobby(bool value)
Definition: lobby.cpp:45
bool fi_vacant_slots()
Definition: lobby.cpp:60
void set_fi_vacant_slots(bool value)
Definition: lobby.cpp:65
void set_fi_friends_in_game(bool value)
Definition: lobby.cpp:75
void set_fi_text(const std::string &search_string)
Definition: lobby.cpp:85
bool whisper_friends_only()
Definition: lobby.cpp:20
bool auto_open_whisper_windows()
Definition: lobby.cpp:30
bool filter_lobby()
Definition: lobby.cpp:40
void set_fi_invert(bool value)
Definition: lobby.cpp:55
Modify, read and display user preferences.
void set_auto_open_whisper_windows(bool v)
void set_whisper_friends_only(bool v)
Definition: lobby.cpp:25
bool fi_invert()
Definition: lobby.cpp:50
bool fi_friends_in_game()
Definition: lobby.cpp:70
bool playerlist_group_players()
Definition: lobby.cpp:35
std::string fi_text()
Definition: lobby.cpp:80