ScummVM API documentation
dialogs_query.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef XEEN_DIALOGS_QUERY_H
23 #define XEEN_DIALOGS_QUERY_H
24 
25 #include "mm/xeen/dialogs/dialogs.h"
26 
27 namespace MM {
28 namespace Xeen {
29 
30 class Confirm : public ButtonContainer {
31 private:
32  Confirm(XeenEngine *vm) : ButtonContainer(vm) {}
33 
34  bool execute(const Common::String &msg, int mode);
35 public:
36  static bool show(XeenEngine *vm, const Common::String &msg, int mode = 0);
37 };
38 
39 class YesNo : public ButtonContainer {
40 private:
41  YesNo(XeenEngine *vm) : ButtonContainer(vm) {}
42 
43  bool execute(bool type, bool townFlag);
44 public:
45  static bool show(XeenEngine *vm, bool type, bool townFlag = false);
46 };
47 
48 } // End of namespace Xeen
49 } // End of namespace MM
50 
51 #endif
Definition: str.h:59
Definition: xeen.h:93
Definition: detection.h:27
Definition: dialogs.h:74
Definition: dialogs_query.h:39
Definition: dialogs_query.h:30