libyui-ncurses-rest-api
Loading...
Searching...
No Matches
YNCHttpUI.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: YNCursesUI.h
19 Author: Rodion Iafarov <riafarov@suse.com>
20 Purpose: Introducing rest-api related changes to ncurses libyui library
21/-*/
22
23#ifndef YNCHttpUI_h
24#define YNCHttpUI_h
25
26#include <yui/YUI.h>
27#include <yui/YApplication.h>
28#include <yui/YWidgetFactory.h>
29#include <yui/ncurses/YNCursesUI.h>
30#include <yui/ncurses/NCurses.h>
31
32class YNCHttpUI: public YNCursesUI
33{
34
35public:
39 YNCHttpUI( bool withThreads );
40
45
49 virtual void idleLoop( int fd_ycp );
50
51protected:
52
60 virtual YWidgetFactory * createWidgetFactory();
61
62 /*
63 * Create the YApplication object that provides global methods.
64 *
65 * Reimplemented from YNCursesUI.
66 **/
67 virtual YApplication * createApplication();
68};
69
76extern "C" {
77 YUI * createYNCHttpUI( bool withThreads );
78}
79
80#endif // YNCHttpUI_h
Definition YNCHttpUI.h:33
YNCHttpUI(bool withThreads)
Definition YNCHttpUI.cc:32
virtual YWidgetFactory * createWidgetFactory()
Definition YNCHttpUI.cc:166
virtual void idleLoop(int fd_ycp)
Definition YNCHttpUI.cc:56
~YNCHttpUI()
Definition YNCHttpUI.h:44