highlevel sceleton

This commit is contained in:
2023-08-08 20:13:10 +02:00
parent 80791626c7
commit 0459b43b64
6 changed files with 152 additions and 0 deletions

30
src/sha1_ngcft1.hpp Normal file
View File

@ -0,0 +1,30 @@
#pragma once
// solanaceae port of sha1 fts for NGCFT1
#include <solanaceae/message3/registry_message_model.hpp>
#include <solanaceae/tox_contacts/tox_contact_model2.hpp>
#include "./ngcft1.hpp"
class SHA1_NGCFT1 : public RegistryMessageModelEventI, public NGCFT1EventI {
RegistryMessageModel& _rmm;
NGCFT1EventProviderI& _nftep;
ToxContactModel2& _tcm;
public:
SHA1_NGCFT1(
RegistryMessageModel& rmm,
NGCFT1EventProviderI& nftep,
ToxContactModel2& tcm
);
//void iterate(float delta);
protected:
bool onEvent(const Events::NGCFT1_recv_request&) override;
bool onEvent(const Events::NGCFT1_recv_init&) override;
bool onEvent(const Events::NGCFT1_recv_data&) override;
bool onEvent(const Events::NGCFT1_send_data&) override; // const?
};