-
Notifications
You must be signed in to change notification settings - Fork 5
/
OnPairsEvent.cpp
39 lines (31 loc) · 1.2 KB
/
OnPairsEvent.cpp
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
/******************************************************************************
* wxVcashGUI: a GUI for Vcash, a decentralized currency
* for the internet (https://vcash.info).
*
* Copyright (c) The Vcash Developers
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
******************************************************************************/
#include "OnPairsEvent.h"
using namespace wxGUI;
wxDEFINE_EVENT(wxGUI::wxEVT_ONSTATUS, OnStatusEvent);
wxDEFINE_EVENT(wxGUI::wxEVT_ONERROR, OnErrorEvent);
wxDEFINE_EVENT(wxGUI::wxEVT_ONALERT, OnAlertEvent);
OnPairsEvent::OnPairsEvent(wxEventType commandType, int id)
: wxCommandEvent(commandType, id) { }
OnPairsEvent::OnPairsEvent(const OnPairsEvent &event)
: wxCommandEvent(event) {
this->SetPairs(event.GetPairs());
}
wxEvent *OnPairsEvent::Clone() const {
return new OnPairsEvent(*this);
}
std::map<std::string, std::string> OnPairsEvent::GetPairs() const {
return pairs;
}
void OnPairsEvent::SetPairs(const std::map<std::string, std::string> &pairs) {
this->pairs = pairs;
}