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 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 sergeykhbr
/*
2
 *  Copyright 2018 Sergey Khabarov, sergeykhbr@gmail.com
3
 *
4
 *  Licensed under the Apache License, Version 2.0 (the "License");
5
 *  you may not use this file except in compliance with the License.
6
 *  You may obtain a copy of the License at
7
 *
8
 *      http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *  Unless required by applicable law or agreed to in writing, software
11
 *  distributed under the License is distributed on an "AS IS" BASIS,
12
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *  See the License for the specific language governing permissions and
14
 *  limitations under the License.
15
 */
16
 
17
#ifndef __DEBUGGER_IGUI_H__
18
#define __DEBUGGER_IGUI_H__
19
 
20
#include "iface.h"
21
#include "attribute.h"
22
#include "iservice.h"
23
 
24
namespace debugger {
25
 
26
static const char *const IFACE_GUI_PLUGIN = "IGui";
27
static const char *const IFACE_GUI_CMD_HANDLER = "IGuiCmdHandler";
28
 
29
class IGuiCmdHandler : public IFace {
30
public:
31
    IGuiCmdHandler() : IFace(IFACE_GUI_CMD_HANDLER) {}
32
 
33
    virtual void handleResponse(AttributeType *req, AttributeType *resp) =0;
34
};
35
 
36
 
37
class IGui : public IFace {
38
public:
39
    IGui() : IFace(IFACE_GUI_PLUGIN) {}
40
 
41
    virtual IService *getParentService() =0;
42
 
43
    virtual IFace *getSocInfo() =0;
44
 
45
    virtual const AttributeType *getpConfig() =0;
46
 
47
    virtual void registerCommand(IGuiCmdHandler *src, AttributeType *cmd,
48
                                bool silent) =0;
49
    virtual void removeFromQueue(IFace *iface) =0;
50
};
51
 
52
}  // namespace debugger
53
 
54
#endif  // __DEBUGGER_IGUI_H__

powered by: WebSVN 2.1.0

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