inital commit (message v3)

This commit is contained in:
2023-07-22 23:31:56 +02:00
commit b08d2bf366
15 changed files with 744 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include <solanaceae/contact/contact_model3.hpp>
//#include "./file.hpp"
// TODO: move, rename, do something?, change in favor of tox?
//enum class FileKind : uint32_t {
//file = 0u,
//avatar = 1u,
//};
// interface to send messages
struct MessageModel3I {
virtual ~MessageModel3I(void) {}
// return true if a handler was found for the contact
virtual bool sendText(const Contact3 c, std::string_view message, bool action = false) { (void)c,(void)message,(void)action; return false; }
//virtual bool sendFile(const Contact& c, std::string_view file_name, std::unique_ptr<FileI> file) { (void)c,(void)message,(void)action; return false; }
virtual bool sendFilePath(const Contact3 c, std::string_view file_name, std::string_view file_path) { (void)c,(void)file_name,(void)file_path; return false; }
//virtual bool sendFileMem(const Contact& c, std::string_view file_name, const std::vector<uint8_t>& file) = 0;
};