update to rmmi

This commit is contained in:
Green Sky 2024-10-06 11:51:02 +02:00
parent 77fffb744e
commit 1a032ce260
No known key found for this signature in database
11 changed files with 15 additions and 15 deletions

View File

@ -14,7 +14,7 @@ void registerConfigCommands(
MessageCommandDispatcher& mcd,
ConfigModelI& conf,
Contact3Registry& cr,
RegistryMessageModel& rmm
RegistryMessageModelI& rmm
) {
mcd.registerCommand(
"Config", "conf",

View File

@ -11,6 +11,6 @@ void registerConfigCommands(
MessageCommandDispatcher& mcd,
ConfigModelI& conf,
Contact3Registry& cr,
RegistryMessageModel& rmm
RegistryMessageModelI& rmm
);

View File

@ -13,7 +13,7 @@ void registerFunCommands(
MessageCommandDispatcher& mcd,
ConfigModelI& conf,
Contact3Registry& cr,
RegistryMessageModel& rmm
RegistryMessageModelI& rmm
) {
mcd.registerCommand(
"fun", "fun",

View File

@ -11,6 +11,6 @@ void registerFunCommands(
MessageCommandDispatcher& mcd,
ConfigModelI& conf,
Contact3Registry& cr,
RegistryMessageModel& rmm
RegistryMessageModelI& rmm
);

View File

@ -1,7 +1,7 @@
#include <solanaceae/object_store/object_store.hpp>
#include <solanaceae/util/simple_config_model.hpp>
#include <solanaceae/contact/contact_model3.hpp>
#include <solanaceae/message3/registry_message_model.hpp>
#include <solanaceae/message3/registry_message_model_impl.hpp>
#include <solanaceae/message3/message_time_sort.hpp>
#include <solanaceae/plugin/plugin_manager.hpp>
#include <solanaceae/toxcore/tox_event_logger.hpp>
@ -186,7 +186,7 @@ int main(int argc, char** argv) {
}
Contact3Registry cr;
RegistryMessageModel rmm{cr};
RegistryMessageModelImpl rmm{cr};
MessageTimeSort mts{rmm};
MessageCleanser mc{cr, rmm, conf};
MessageCommandDispatcher mcd{cr, rmm, conf};
@ -234,7 +234,7 @@ int main(int argc, char** argv) {
g_provideInstance<ConfigModelI>("ConfigModelI", "host", &conf);
g_provideInstance<Contact3Registry>("Contact3Registry", "1", "host", &cr);
g_provideInstance<RegistryMessageModel>("RegistryMessageModel", "host", &rmm);
g_provideInstance<RegistryMessageModelI>("RegistryMessageModelI", "host", &rmm);
g_provideInstance<MessageCommandDispatcher>("MessageCommandDispatcher", "host", &mcd);
g_provideInstance<ToxI>("ToxI", "host", &tc);

View File

@ -54,7 +54,7 @@ static std::string getStatusFromContact(
bool handleContactAddToGroup(
ConfigModelI& conf,
Contact3Registry& cr,
RegistryMessageModel& rmm,
RegistryMessageModelI& rmm,
std::string_view params,
Message3Handle m,
@ -113,7 +113,7 @@ void registerManagementCommands(
MessageCommandDispatcher& mcd,
ConfigModelI& conf,
Contact3Registry& cr,
RegistryMessageModel& rmm
RegistryMessageModelI& rmm
) {
mcd.registerCommand(
"Management", "manage",

View File

@ -11,6 +11,6 @@ void registerManagementCommands(
MessageCommandDispatcher& mcd,
ConfigModelI& conf,
Contact3Registry& cr,
RegistryMessageModel& rmm
RegistryMessageModelI& rmm
);

View File

@ -10,7 +10,7 @@
MessageCleanser::MessageCleanser(
Contact3Registry& cr,
RegistryMessageModel& rmm,
RegistryMessageModelI& rmm,
ConfigModelI& conf
) : _cr(cr), _rmm(rmm), _conf(conf) {
if (!_conf.has_int("MessageCleanser", "old_age_minutes")) {

View File

@ -5,7 +5,7 @@
class MessageCleanser {
Contact3Registry& _cr;
RegistryMessageModel& _rmm;
RegistryMessageModelI& _rmm;
ConfigModelI& _conf;
static constexpr int64_t _old_age_default{150}; // minutes
@ -16,7 +16,7 @@ class MessageCleanser {
public:
MessageCleanser(
Contact3Registry& cr,
RegistryMessageModel& rmm,
RegistryMessageModelI& rmm,
ConfigModelI& conf
);
~MessageCleanser(void);

View File

@ -18,7 +18,7 @@ void registerToxCommands(
MessageCommandDispatcher& mcd,
ConfigModelI& conf,
Contact3Registry& cr,
RegistryMessageModel& rmm,
RegistryMessageModelI& rmm,
ToxI& t,
ToxPrivateI& tp
) {

View File

@ -13,7 +13,7 @@ void registerToxCommands(
MessageCommandDispatcher& mcd,
ConfigModelI& conf,
Contact3Registry& cr,
RegistryMessageModel& rmm,
RegistryMessageModelI& rmm,
ToxI& t,
ToxPrivateI& tp
);