File indexing completed on 2024-05-05 17:01:33
0001 /*************************************************************************** 0002 smb4kqmlplugin - The QML plugin for use with Plasma/QtQuick 0003 ------------------- 0004 begin : Di Feb 21 2012 0005 copyright : (C) 2012-2019 by Alexander Reinholdt 0006 email : alexander.reinholdt@kdemail.net 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * This program is free software; you can redistribute it and/or modify * 0011 * it under the terms of the GNU General Public License as published by * 0012 * the Free Software Foundation; either version 2 of the License, or * 0013 * (at your option) any later version. * 0014 * * 0015 * This program is distributed in the hope that it will be useful, but * 0016 * WITHOUT ANY WARRANTY; without even the implied warranty of * 0017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * 0018 * General Public License for more details. * 0019 * * 0020 * You should have received a copy of the GNU General Public License * 0021 * along with this program; if not, write to the * 0022 * Free Software Foundation, Inc., 51 Franklin Street, Suite 500, Boston,* 0023 * MA 02110-1335, USA * 0024 ***************************************************************************/ 0025 0026 #ifdef HAVE_CONFIG_H 0027 #include <config.h> 0028 #endif 0029 0030 // application specific includes 0031 #include "smb4kqmlplugin.h" 0032 #include "smb4kbookmarkobject.h" 0033 #include "smb4kdeclarative.h" 0034 #include "smb4knetworkobject.h" 0035 #include "smb4kprofileobject.h" 0036 #include "core/smb4kglobal.h" 0037 #include "core/smb4kbookmarkhandler.h" 0038 #include "core/smb4kcustomoptionsmanager.h" 0039 0040 // Qt includes 0041 #include <QQmlComponent> 0042 0043 void Smb4KQMLPlugin::registerTypes(const char *uri) 0044 { 0045 qmlRegisterType<Smb4KNetworkObject>(uri, 2, 0, "NetworkObject"); 0046 qmlRegisterType<Smb4KBookmarkObject>(uri, 2, 0, "BookmarkObject"); 0047 qmlRegisterType<Smb4KProfileObject>(uri, 2, 0, "ProfileObject"); 0048 qmlRegisterType<Smb4KDeclarative>(uri, 2, 0, "Interface"); 0049 } 0050