/**
 * $Id$
 * $Revision$
 * $Author$
 * $Date$
 *
 * This file is part of The iWear Framework.
 * In particular this file is part of the Framework Uiservices
 *
 * The iWear Framework is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by the
 * Free Software Foundation as in version 2 of the License.

 * 
 * The iWear Framework is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * The iWear Framework; if not, write to the Free Software Foundation, Inc., 59
 * Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __MENUDATAFUNCTORPARAMETER_H
#define __MENUDATAFUNCTORPARAMETER_H

// iWear includes
#include <iwear_output/outputdatafunctorparameter.h>
#include <iwear_uiservices/menudata.h>

namespace iwear {
namespace uiservices {


class MenuDataFunctorParameter : public OutputDataFunctorParameter{

 public:
    
    /**
     * Constructor
     */
    MenuDataFunctorParameter(uint32_t element_id, 
			     MENU_EVENT menu_event, 
			     MENU_EVENT_INFORMATION menu_event_information);
    
    /**
     * Destructor for OutputDataFunctorParameter.
     */
    virtual ~MenuDataFunctorParameter(void);

    
    /**
     * @return The uid of the menu element on which something
     *         happened
     */
    inline const uint32_t get_element_id(void) const {
    	return this->element_id;
    }

    /**
     * @return The event
     */
    inline const MENU_EVENT get_menu_event(void) const {
    	return this->menu_event;
    }

    /**
     * @return The event information
     */
    inline const MENU_EVENT_INFORMATION get_menu_event_information(void) const {
    	return this->menu_event_information;
    }


 protected:

    /**
     * The id (as an uint32_t) of the menu element on which something happend
     */
    uint32_t element_id;

    /**
     * The event which occurred
     */
    MENU_EVENT menu_event;

    /**
     * The additional information
     */
    MENU_EVENT_INFORMATION menu_event_information;

};

} // namespace uiservices
} // namespace iwear

#endif // __MENUDATAFUNCTORPARAMETER_H

