/**************************************************************************** ** ** Copyright (C) 2017 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the QtOrganizer module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in ** accordance with the commercial license agreement provided with the ** Software or, alternatively, in accordance with the terms contained in ** a written agreement between you and The Qt Company. For licensing terms ** and conditions see https://www.qt.io/terms-conditions. For further ** information use the contact form at https://www.qt.io/contact-us. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 3 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL3 included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 3 requirements ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. ** ** GNU General Public License Usage ** Alternatively, this file may be used under the terms of the GNU ** General Public License version 2.0 or (at your option) the GNU General ** Public license version 3 or any later version approved by the KDE Free ** Qt Foundation. The licenses are as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 ** included in the packaging of this file. Please review the following ** information to ensure the GNU General Public License requirements will ** be met: https://www.gnu.org/licenses/gpl-2.0.html and ** https://www.gnu.org/licenses/gpl-3.0.html. ** ** $QT_END_LICENSE$ ** ****************************************************************************/ #include #include #include "qdeclarativeorganizercollection_p.h" #include "qdeclarativeorganizeritem_p.h" #include "qdeclarativeorganizeritemdetail_p.h" #include "qdeclarativeorganizeritemfetchhint_p.h" #include "qdeclarativeorganizeritemfilter_p.h" #include "qdeclarativeorganizeritemsortorder_p.h" #include "qdeclarativeorganizermodel_p.h" #include "qdeclarativeorganizerrecurrencerule_p.h" QT_BEGIN_NAMESPACE class QOrganizerQmlPlugin : public QQmlExtensionPlugin { Q_OBJECT Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid) public: void registerTypes(const char *uri) { Q_ASSERT(uri == QStringLiteral("QtOrganizer")); int major = 5; int minor = 0; qRegisterMetaType("QOrganizerAbstractRequest::State"); qRegisterMetaType("QOrganizerItemId"); qRegisterMetaType >("QList"); qRegisterMetaType("QOrganizerCollectionId"); qRegisterMetaType >("QList"); qmlRegisterType(uri, major, minor, "OrganizerModel"); qmlRegisterType(uri, major, minor, "RecurrenceRule"); qmlRegisterType(uri, major, minor, "FetchHint"); qmlRegisterType(uri, major, minor, "SortOrder"); qmlRegisterType(uri, major, minor, "Collection"); //items qmlRegisterType(uri, major, minor, "OrganizerItem"); qmlRegisterType(uri, major, minor, "Event"); qmlRegisterType(uri, major, minor, "EventOccurrence"); qmlRegisterType(uri, major, minor, "Journal"); qmlRegisterType(uri, major, minor, "Note"); qmlRegisterType(uri, major, minor, "Todo"); qmlRegisterType(uri, major, minor, "TodoOccurrence"); //details qmlRegisterType(uri, major, minor, "Detail"); qmlRegisterType(uri, major, minor, "EventTime"); qmlRegisterType(uri, major, minor, "Comment"); qmlRegisterType(uri, major, minor, "Description"); qmlRegisterType(uri, major, minor, "DisplayLabel"); qmlRegisterType(uri, major, minor, "Guid"); qmlRegisterType(uri, major, minor, "Location"); qmlRegisterType(uri, major, minor, "Parent"); qmlRegisterType(uri, major, minor, "Priority"); qmlRegisterType(uri, major, minor, "Recurrence"); qmlRegisterType(uri, major, minor, "Tag"); qmlRegisterType(uri, major, minor, "Timestamp"); qmlRegisterType(uri, major, minor, "Type"); qmlRegisterType(uri, major, minor, "JournalTime"); qmlRegisterType(uri, major, minor, "TodoProgress"); qmlRegisterType(uri, major, minor, "TodoTime"); qmlRegisterType(uri, major, minor, "ExtendedDetail"); qmlRegisterType(uri, major, minor, "EventAttendee"); qmlRegisterType(uri, major, minor, "EventRsvp"); qmlRegisterType(uri, major, minor, "Classification"); qmlRegisterType(uri, major, minor, "Version"); qmlRegisterType(uri, major, minor, "Reminder"); qmlRegisterType(uri, major, minor, "AudibleReminder"); qmlRegisterType(uri, major, minor, "EmailReminder"); qmlRegisterType(uri, major, minor, "VisualReminder"); //filters qmlRegisterType(uri, major, minor, "Filter"); qmlRegisterType(uri, major, minor, "CollectionFilter"); qmlRegisterType(uri, major, minor, "DetailFilter"); qmlRegisterType(uri, major, minor, "DetailFieldFilter"); qmlRegisterType(uri, major, minor, "DetailRangeFilter"); qmlRegisterType(uri, major, minor, "IdFilter"); qmlRegisterType(uri, major, minor, "IntersectionFilter"); qmlRegisterType(uri, major, minor, "UnionFilter"); qmlRegisterType(uri, major, minor, "InvalidFilter"); qmlRegisterType(uri, major, minor, "CompoundFilter"); } }; QT_END_NAMESPACE #include "plugin.moc"