update to new ngc_events
This commit is contained in:
parent
5b39e85697
commit
427bac722b
@ -39,8 +39,8 @@ std::optional<std::pair<uint8_t, uint8_t>> parse_zox_pkg_header(const uint8_t* d
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ZoxNGCEventProvider::subscribeToEvents(void) {
|
void ZoxNGCEventProvider::subscribeToEvents(void) {
|
||||||
_tep.subscribe(this, Tox_Event::TOX_EVENT_GROUP_CUSTOM_PACKET);
|
_tep.subscribe(this, Tox_Event_Type::TOX_EVENT_GROUP_CUSTOM_PACKET);
|
||||||
_tep.subscribe(this, Tox_Event::TOX_EVENT_GROUP_CUSTOM_PRIVATE_PACKET);
|
_tep.subscribe(this, Tox_Event_Type::TOX_EVENT_GROUP_CUSTOM_PRIVATE_PACKET);
|
||||||
}
|
}
|
||||||
|
|
||||||
ZoxNGCEventProvider::ZoxNGCEventProvider(ToxEventProviderI& tep) : _tep(tep) {
|
ZoxNGCEventProvider::ZoxNGCEventProvider(ToxEventProviderI& tep) : _tep(tep) {
|
||||||
|
@ -18,7 +18,7 @@ void ZoxNGCHistorySync::subscribeToEvents(void) {
|
|||||||
_zngcepi.subscribe(this, ZoxNGC_Event::ngch_request);
|
_zngcepi.subscribe(this, ZoxNGC_Event::ngch_request);
|
||||||
_zngcepi.subscribe(this, ZoxNGC_Event::ngch_syncmsg);
|
_zngcepi.subscribe(this, ZoxNGC_Event::ngch_syncmsg);
|
||||||
|
|
||||||
_tep.subscribe(this, Tox_Event::TOX_EVENT_GROUP_PEER_JOIN);
|
_tep.subscribe(this, Tox_Event_Type::TOX_EVENT_GROUP_PEER_JOIN);
|
||||||
}
|
}
|
||||||
|
|
||||||
ZoxNGCHistorySync::ZoxNGCHistorySync(ToxEventProviderI& tep, ZoxNGCEventProviderI& zngcepi, ToxI& t, Contact3Registry& cr, ToxContactModel2& tcm, RegistryMessageModel& rmm)
|
ZoxNGCHistorySync::ZoxNGCHistorySync(ToxEventProviderI& tep, ZoxNGCEventProviderI& zngcepi, ToxI& t, Contact3Registry& cr, ToxContactModel2& tcm, RegistryMessageModel& rmm)
|
||||||
|
Loading…
Reference in New Issue
Block a user