continue transfer object refactor, re-enabling avatar receiving

This commit is contained in:
Green Sky
2025-05-04 19:11:28 +02:00
parent 7021e092b1
commit 2654cd1b19
12 changed files with 390 additions and 69 deletions

View File

@@ -1,6 +1,9 @@
#pragma once
#include <solanaceae/contact/fwd.hpp>
#include <solanaceae/object_store/fwd.hpp>
#include <solanaceae/file/file2.hpp>
#include "./image_loader.hpp"
#include "./texture_cache.hpp"
@@ -9,11 +12,15 @@
class ToxAvatarLoader {
ContactStore4I& _cs;
ObjectStore2& _os;
std::vector<std::unique_ptr<ImageLoaderI>> _image_loaders;
ByteSpanWithOwnership loadDataFromObj(Contact4 cv);
ByteSpanWithOwnership loadData(Contact4 cv);
public:
ToxAvatarLoader(ContactStore4I& cr);
ToxAvatarLoader(ContactStore4I& cs, ObjectStore2& os);
TextureLoaderResult load(TextureUploaderI& tu, Contact4 c);
};