libyui-rest-api
Loading...
Searching...
No Matches
YMultiSelectionBoxActionHandler.h
1/*
2 Copyright (C) 2021 SUSE LLC
3
4 This library is free software; you can redistribute it and/or modify
5 it under the terms of the GNU Lesser General Public License as
6 published by the Free Software Foundation; either version 2.1 of the
7 License, or (at your option) version 3.0 of the License. This library
8 is distributed in the hope that it will be useful, but WITHOUT ANY
9 WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
11 License for more details. You should have received a copy of the GNU
12 Lesser General Public License along with this library; if not, write
13 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
14 Floor, Boston, MA 02110-1301 USA
15*/
16
17#ifndef YMultiSelectionBoxActionHandler_h
18#define YMultiSelectionBoxActionHandler_h
19
20#include <functional>
21
22#include <yui/YMultiSelectionBox.h>
23
24#include "YWidgetActionHandler.h"
25
26
28{
29public:
30
31 typedef enum Status {
32 ON,
33 OFF,
34 TOGGLE
35 } CheckBoxStatus;
36
39
40public:
41 std::function<void (YMultiSelectionBox*)> check_handler( YMultiSelectionBox * widget,
42 const std::string &value,
43 CheckBoxStatus status );
44
45 std::function<void (YMultiSelectionBox*)> select_handler( YMultiSelectionBox * widget,
46 const std::string &value);
47
48private:
49
50 CheckBoxStatus new_state;
51
52};
53
54#endif // YMultiSelectionBoxActionHandler_h
Definition YMultiSelectionBoxActionHandler.h:28
Definition YWidgetActionHandler.h:45