Some checks failed
ContinuousDelivery / linux-ubuntu (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Has been cancelled
ContinuousDelivery / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Has been cancelled
ContinuousDelivery / windows (push) Has been cancelled
ContinuousDelivery / windows-asan (push) Has been cancelled
ContinuousIntegration / linux (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:arm64-v8a vcpkg_toolkit:arm64-android]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:armeabi-v7a vcpkg_toolkit:arm-neon-android]) (push) Has been cancelled
ContinuousIntegration / android (map[ndk_abi:x86_64 vcpkg_toolkit:x64-android]) (push) Has been cancelled
ContinuousIntegration / macos (push) Has been cancelled
ContinuousIntegration / windows (push) Has been cancelled
ContinuousDelivery / release (push) Has been cancelled
37 lines
954 B
C++
37 lines
954 B
C++
#pragma once
|
|
|
|
#include <solanaceae/message3/registry_message_model.hpp>
|
|
|
|
#include "./image_loader.hpp"
|
|
|
|
namespace Message::Components {
|
|
|
|
struct TagNotImage {};
|
|
|
|
} // Message::Components
|
|
|
|
// adds metadata to file messages
|
|
class MediaMetaInfoLoader : public RegistryMessageModelEventI {
|
|
protected:
|
|
RegistryMessageModelI& _rmm;
|
|
RegistryMessageModelI::SubscriptionReference _rmm_sr;
|
|
|
|
std::vector<std::unique_ptr<ImageLoaderI>> _image_loaders;
|
|
|
|
void handleMessage(const Message3Handle& m);
|
|
|
|
public:
|
|
MediaMetaInfoLoader(RegistryMessageModelI& rmm);
|
|
virtual ~MediaMetaInfoLoader(void);
|
|
|
|
protected: // rmm
|
|
bool onEvent(const Message::Events::MessageConstruct& e) override;
|
|
bool onEvent(const Message::Events::MessageUpdated& e) override;
|
|
|
|
//protected: // os
|
|
// bool onEvent(const ObjectStore::Events::ObjectConstruct& e) override;
|
|
// should listen on update
|
|
// bool onEvent(const ObjectStore::Events::ObjectUpdate& e) override;
|
|
};
|
|
|