summaryrefslogtreecommitdiff
path: root/eventsview-plugins/eventsview-plugin-fediverse/plugin.cpp
blob: 509b6023da1bb95b5f600c593f1b7cc82e907c7a (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
25
26
27
/*
 * SPDX-FileCopyrightText: 2013 - 2026 Jolla Ltd.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

#include <QQmlExtensionPlugin>
#include <QtQml>

#include "fediversepostactions.h"
#include "fediversepostsmodel.h"

class JollaEventsviewFediversePlugin : public QQmlExtensionPlugin
{
    Q_OBJECT
    Q_PLUGIN_METADATA(IID "com.jolla.eventsview.fediverse")

public:
    void registerTypes(const char *uri) override
    {
        Q_ASSERT(QLatin1String(uri) == QLatin1String("com.jolla.eventsview.fediverse"));
        qmlRegisterType<FediversePostsModel>(uri, 1, 0, "FediversePostsModel");
        qmlRegisterType<FediversePostActions>(uri, 1, 0, "FediversePostActions");
    }
};

#include "plugin.moc"