libyui-ncurses-rest-api
Loading...
Searching...
No Matches
NCHttpDialog.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: NCHttpDialog.h
19 Purpose: Introducing rest-api related changes to ncurses libyui library.
20 We need to override getch method to process events properly
21/-*/
22
23#ifndef NCHttpDialog_h
24#define NCHttpDialog_h
25
26#include <yui/ncurses/NCDialog.h>
27
28
29class NCHttpDialog: public NCDialog
30{
31 public:
32 NCHttpDialog( YDialogType dialogType,
33 YDialogColorMode colorMode = YDialogNormalColor );
34 ~NCHttpDialog() { };
35 protected:
36 wint_t getch( int timeout_millisec = -1 );
37 private:
38 int wait_for_input(int timeout_millisec);
39};
40
41#endif // NCHttpDialog_h
Definition NCHttpDialog.h:30