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