1 /*
2  * Copyright 2011-2013 Arx Libertatis Team (see the AUTHORS file)
3  *
4  * This file is part of Arx Libertatis.
5  *
6  * Arx Libertatis is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * Arx Libertatis is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with Arx Libertatis.  If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef ARX_PLATFORM_DIALOG_H
21 #define ARX_PLATFORM_DIALOG_H
22 
23 #include <string>
24 
25 namespace dialog {
26 
27 enum DialogType {
28 	DialogInfo,
29 	DialogWarning,
30 	DialogError,
31 	DialogYesNo,
32 	DialogOkCancel
33 };
34 
35 void showInfo(const std::string& message, const std::string& dialogTitle = "Information");
36 void showWarning(const std::string& message, const std::string& dialogTitle = "Warning");
37 void showError(const std::string& message, const std::string& dialogTitle = "Error");
38 
39 bool askYesNo(const std::string& question, const std::string& dialogTitle = "Yes/No?");
40 bool askOkCancel(const std::string& question, const std::string& dialogTitle = "Ok/Cancel?");
41 
42 }
43 
44 #endif // ARX_PLATFORM_DIALOG_H
45