1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
#ifndef DEBUGDISPLAY_H
#define DEBUGDISPLAY_H
#include <string>
#include <cstdint>
#include <GenericDisplay.h>
#include <map_types.h>
#include <DrbdResource.h>
#include <DrbdConnection.h>
#include <DrbdVolume.h>
#include <MessageLog.h>
class DebugDisplay : public GenericDisplay
{
public:
DebugDisplay(
ResourcesMap& resources_map_ref,
MessageLog& log_ref,
HotkeysMap& hotkeys_info_ref
);
DebugDisplay(const DebugDisplay& orig) = delete;
DebugDisplay& operator=(const DebugDisplay& orig) = delete;
DebugDisplay(DebugDisplay&& orig) = default;
DebugDisplay& operator=(DebugDisplay&& orig) = default;
virtual ~DebugDisplay() noexcept;
virtual void initial_display() override;
virtual void status_display() override;
virtual void display_header() const override;
virtual void set_terminal_size(uint16_t size_x, uint16_t size_y) override;
virtual void key_pressed(const char key) override;
private:
ResourcesMap& resources_map;
MessageLog& log;
HotkeysMap& hotkeys_info;
virtual void display_hotkeys_info() const;
};
#endif /* DEBUGDISPLAY_H */
|