-
Notifications
You must be signed in to change notification settings - Fork 0
/
dump.h
55 lines (43 loc) · 1.22 KB
/
dump.h
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
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef MEMDUMP_DUMP_H
#define MEMDUMP_DUMP_H
#include <gtkmm.h>
#include <gtkmm/button.h>
#include <gtkmm/window.h>
#include <sigc++/sigc++.h>
#include <thread>
#include "menu.h"
#include "address.h"
class Dump : public Gtk::Window {
public:
Dump(const Glib::RefPtr<Gtk::Application>& app);
virtual ~Dump();
// handle process selection
class ProcessHandler : public sigc::trackable {
public:
ProcessHandler(Dump& x): parent(x) { }
void on_process_selection(pid_t pid);
void on_address_selection(char* addr);
private:
Dump& parent;
};
protected:
void on_button_clicked();
void menu_win_close();
void addr_win_close();
void on_action_select_process();
void on_action_select_addr();
bool poll_memory(char* addr);
Gtk::ScrolledWindow m_ScrolledWindow;
Gtk::Grid m_Grid;
Gtk::Box m_box;
Glib::RefPtr<Gtk::Builder> m_refBuilder;
Glib::RefPtr<Gio::SimpleActionGroup> m_refActionGroup;
Menu* menuw;
Address* addrw;
ProcessHandler proc_handler;
// memorytool, process for current pid
std::shared_ptr<memlib::MemoryTool> mt;
std::shared_ptr<memlib::Process> proc;
sigc::connection curr_conn;
};
#endif