blob: aa993a0851c6511ca5040a4b5dd137749600067c (
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
|
/*
* Copyright (C) 2013-2026 Jolla Ltd.
*/
#include <QQmlExtensionPlugin>
#include <QtQml>
#include "mastodonpostactions.h"
#include "mastodonpostsmodel.h"
class JollaEventsviewMastodonPlugin : public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "com.jolla.eventsview.mastodon")
public:
void registerTypes(const char *uri) override
{
Q_ASSERT(QLatin1String(uri) == QLatin1String("com.jolla.eventsview.mastodon"));
qmlRegisterType<MastodonPostsModel>(uri, 1, 0, "MastodonPostsModel");
qmlRegisterType<MastodonPostActions>(uri, 1, 0, "MastodonPostActions");
}
};
#include "plugin.moc"
|