File: smb4kqmlplugin.cpp

package info (click to toggle)
smb4k 4.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,328 kB
  • sloc: cpp: 19,304; xml: 967; makefile: 7; sh: 5
file content (24 lines) | stat: -rw-r--r-- 768 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
    smb4kqmlplugin - The QML plugin for use with Plasma/QtQuick

    SPDX-FileCopyrightText: 2012-2023 Alexander Reinholdt <alexander.reinholdt@kdemail.net>
    SPDX-License-Identifier: GPL-2.0-or-later
*/

// application specific includes
#include "smb4kqmlplugin.h"
#include "smb4kbookmarkobject.h"
#include "smb4kdeclarative.h"
#include "smb4knetworkobject.h"
#include "smb4kprofileobject.h"

// Qt includes
#include <QQmlComponent>

void Smb4KQMLPlugin::registerTypes(const char *uri)
{
    qmlRegisterType<Smb4KNetworkObject>(uri, 2, 0, "NetworkObject");
    qmlRegisterType<Smb4KBookmarkObject>(uri, 2, 0, "BookmarkObject");
    qmlRegisterType<Smb4KProfileObject>(uri, 2, 0, "ProfileObject");
    qmlRegisterType<Smb4KDeclarative>(uri, 2, 0, "Interface");
}