libyui  3.0.10
YMenuEvent Class Reference

#include <YEvent.h>

Inheritance diagram for YMenuEvent:
Collaboration diagram for YMenuEvent:

List of all members.

Public Member Functions

 YMenuEvent (YItem *item)
 YMenuEvent (const char *id)
 YMenuEvent (const std::string &id)
virtual YItemitem () const
std::string id () const

Protected Member Functions

virtual ~YMenuEvent ()

Protected Attributes

YItem_item
std::string _id

Detailed Description

Event to be returned upon menu selection.

Definition at line 256 of file YEvent.h.


Constructor & Destructor Documentation

virtual YMenuEvent::~YMenuEvent ( ) [inline, protected, virtual]

Protected destructor - events can only be deleted via YDialog::deleteEvent(). The associated dialog will take care of this event and delete it when appropriate.

Definition at line 289 of file YEvent.h.


Member Function Documentation

std::string YMenuEvent::id ( ) const [inline]

Return the string ID of this event. This will be an empty string if the event was constructed with a YItem.

Definition at line 280 of file YEvent.h.

virtual YItem* YMenuEvent::item ( ) const [inline, virtual]

Return the YItem that corresponds to this event or 0 if the event was constructed with a string ID.

Reimplemented from YEvent.

Reimplemented from YEvent.

Definition at line 274 of file YEvent.h.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Friends