aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive/base_archive.cpp
blob: 0e96c61fea088e0821946ce2c8ff77985ff275cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "src/archive/base_archive.h"
#include "src/archive/mastodon.h"

Archive* Archive::create_archive(ArchiveType archive_type, const QString& main_filename) {
    switch (archive_type) {
        case MASTODON:
            return new MastodonArchive(main_filename);
        default:
            return nullptr;
    }
}

Archive::Archive(const QString& filename) : main_filename(filename) {}

const QString Archive::get_instance_address() {
    return "";
}

APActorPtr Archive::get_main_actor() {
    return nullptr;
}