libyui-ncurses-rest-api
Loading...
Searching...
No Matches
NCHttpWidgetFactory.h
1/*
2 Copyright (C) 2018-2019 SUSE LLC
3 This library is free software; you can redistribute it and/or modify
4 it under the terms of the GNU Lesser General Public License as
5 published by the Free Software Foundation; either version 2.1 of the
6 License, or (at your option) version 3.0 of the License. This library
7 is distributed in the hope that it will be useful, but WITHOUT ANY
8 WARRANTY; without even the implied warranty of MERCHANTABILITY or
9 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
10 License for more details. You should have received a copy of the GNU
11 Lesser General Public License along with this library; if not, write
12 to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
13 Floor, Boston, MA 02110-1301 USA
14*/
15
16
17/*-/
18 File: NCHttpWidgetFactory.h
19 Purpose: Introducing rest-api related changes to ncurses libyui library
20 We need to override NCDialog dialog methods to handle rest api
21 events, so have to override creation of those too.
22/-*/
23
24#ifndef NCHttpWidgetFactory_h
25#define NCHttpWidgetFactory_h
26
27#include <yui/ncurses/NCWidgetFactory.h>
28
29
33class NCHttpWidgetFactory: public NCWidgetFactory
34{
35public:
36 // Need to override just single method to use NCHttpDialog instead of
37 // just NCDialog.
38
39 //
40 // Dialogs
41 //
42
43 virtual NCDialog * createDialog ( YDialogType dialogType, YDialogColorMode colorMode = YDialogNormalColor );
44};
45
46#endif //NCHttpWidgetFactory_h
Definition NCHttpWidgetFactory.h:34