genode/repos/gems/src/app/sculpt_manager/nitpicker.h
Norman Feske 3dd81b0d32 Sculpt for The Curious (TC)
This commit updates Early-Adopters (EA) version of Sculpt to the version
for The Curious (TC). Most importantly, it contains the new interactive
sculpt-manager component that automates many system management and
configuration tasks.
2018-05-31 14:02:20 +02:00

50 lines
1.1 KiB
C++

/*
* \brief Nitpicker wrapper for monitoring the user input of GUI components
* \author Norman Feske
* \date 2018-04-30
*/
/*
* Copyright (C) 2018 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _NITPICKER_H_
#define _NITPICKER_H_
/* Genode includes */
#include <root/component.h>
#include <nitpicker_session/nitpicker_session.h>
#include <base/component.h>
/* local includes */
#include "input_event_handler.h"
namespace Nitpicker {
using namespace Genode;
using Sculpt::Input_event_handler;
struct Session_component;
struct Root;
}
struct Nitpicker::Root : Genode::Root_component<Session_component>
{
Env &_env;
Input_event_handler &_event_handler;
Session_component *_create_session(const char *) override;
void _upgrade_session(Session_component *, const char *) override;
void _destroy_session(Session_component *) override;
Root(Env &, Allocator &, Input_event_handler &);
~Root();
};
#endif /* _NITPICKER_H_ */