OpenCores
URL https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [src/] [gui_plugin/] [igui.h] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 sergeykhbr
/**
2
 * @file
3
 * @copyright  Copyright 2016 GNSS Sensor Ltd. All right reserved.
4
 * @author     Sergey Khabarov - sergeykhbr@gmail.com
5
 * @brief      Graphical User Interface (GUI).
6
 */
7
 
8
#ifndef __DEBUGGER_IGUI_H__
9
#define __DEBUGGER_IGUI_H__
10
 
11
#include "iface.h"
12
#include "attribute.h"
13
 
14
namespace debugger {
15
 
16
static const char *const IFACE_GUI_PLUGIN = "IGui";
17
static const char *const IFACE_GUI_CMD_HANDLER = "IGuiCmdHandler";
18
 
19
class IGuiCmdHandler : public IFace {
20
public:
21
    IGuiCmdHandler() : IFace(IFACE_GUI_CMD_HANDLER) {}
22
 
23
    virtual void handleResponse(AttributeType *req, AttributeType *resp) =0;
24
};
25
 
26
 
27
class IGui : public IFace {
28
public:
29
    IGui() : IFace(IFACE_GUI_PLUGIN) {}
30
 
31
    virtual IFace *getSocInfo() =0;
32
 
33
    virtual void getWidgetsAttribute(const char *name, AttributeType *out) =0;
34
 
35
    virtual void registerCommand(IGuiCmdHandler *src, AttributeType *cmd,
36
                                bool silent) =0;
37
    virtual void removeFromQueue(IFace *iface) =0;
38
};
39
 
40
}  // namespace debugger
41
 
42
#endif  // __DEBUGGER_IGUI_H__

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.