libyui-ncurses
2.44.1
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
NCtoY2Event.h
1
/*
2
Copyright (C) 2000-2012 Novell, Inc
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
19
File: NCtoY2Event.h
20
21
Authors: Michael Andres <ma@suse.de>
22
Stefan Hundhammer <sh@suse.de>
23
24
/-*/
25
26
#ifndef NCtoY2Event_h
27
#define NCtoY2Event_h
28
29
#include <NCurses.h>
// NCursesEvent, iostream
30
31
32
/**
33
* Helper class for translating an NCurses event to a YEvent.
34
**/
35
36
class
NCtoY2Event
:
public
NCursesEvent
37
{
38
39
public
:
40
41
friend
std::ostream & operator<<( std::ostream & stream,
const
NCtoY2Event
& event );
42
43
/**
44
* Default constructor
45
**/
46
NCtoY2Event
() {}
47
48
/**
49
* Constructor from an NCursesEvent
50
**/
51
NCtoY2Event
(
const
NCursesEvent
& ncev );
52
53
/**
54
* Assignment operator
55
**/
56
NCtoY2Event
&
operator=
(
const
NCursesEvent
& ncev );
57
58
/**
59
* The reason of existence of this class:
60
* Translate the NCursesEvent to a YEvent.
61
**/
62
YEvent *
propagate
();
63
};
64
65
66
#endif // ifndef NCtoY2Event_h
NCursesEvent
Definition:
NCurses.h:71
NCtoY2Event::operator=
NCtoY2Event & operator=(const NCursesEvent &ncev)
Definition:
NCtoY2Event.cc:40
NCtoY2Event
Definition:
NCtoY2Event.h:36
NCtoY2Event::NCtoY2Event
NCtoY2Event()
Definition:
NCtoY2Event.h:46
NCtoY2Event::propagate
YEvent * propagate()
Definition:
NCtoY2Event.cc:52
src
NCtoY2Event.h
Generated by
1.8.5