solanaceae_message3/solanaceae/message3/message_model3.hpp

28 lines
943 B
C++

#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;
};