#include "instance.h" #ifdef MASTODONPP_BUILD #include "mastodon_instance.h" #endif #include "src/settings_interface.h" Instance* Instance::create_instance() { return create_instance(SettingsInterface::quick_read_setting("net/instance/type")); } Instance* Instance::create_instance(AppSettingsTypes::InstanceType type) { switch (type) { #ifdef MASTODONPP_BUILD case AppSettingsTypes::InstanceType::MASTODON: return new MastodonInstance; #endif default: return nullptr; } } QString Instance::oauth2_step1() { return ""; } Instance::OAuth2Step2 Instance::oauth2_step2(const QString &auth_code) { return {false}; }