blob: c3af86c182469f331b5860652f868a270d46ea9b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "instance.h"
#include "mastodon_instance.h"
#include "src/settings_interface.h"
Instance* Instance::create_instance() {
return create_instance(SettingsInterface::quick_read_setting<AppSettingsTypes::InstanceType>("net/instance/type"));
}
Instance* Instance::create_instance(AppSettingsTypes::InstanceType type) {
switch (type) {
case AppSettingsTypes::InstanceType::MASTODON:
return new MastodonInstance;
default:
return nullptr;
}
}
QString Instance::oauth2_step1() {
return "";
}
Instance::OAuth2Step2 Instance::oauth2_step2(const QString &auth_code) {
return {false};
}
|