/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commercial Usage ** This file contains pre-release code and may not be distributed. ** You may use this file in accordance with the terms and conditions ** contained in the Technology Preview License Agreement accompanying ** this package. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Lesser ** General Public License version 2.1 as published by the Free Software ** Foundation and appearing in the file LICENSE.LGPL included in the ** packaging of this file. Please review the following information to ** ensure the GNU Lesser General Public License version 2.1 requirements ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ** In addition, as a special exception, Nokia gives you certain additional ** rights. These rights are described in the Nokia Qt LGPL Exception ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. ** ** If you have questions regarding the use of this file, please contact ** Nokia at qt-info@nokia.com. ** ** ** ** ** ** ** ** ** $QT_END_LICENSE$ ** ****************************************************************************/ #include "qdeclarativepositionsource_p.h" #include "qdeclarativeposition_p.h" #include "qdeclarativelandmark_p.h" #include "qdeclarativelandmarkcategory_p.h" #include "qdeclarativelandmarkmodel_p.h" #include "qdeclarativelandmarkcategorymodel_p.h" #include "qgeomapobject.h" #include "qdeclarativegeoboundingbox_p.h" #include "qdeclarativegeoaddress_p.h" #include "qdeclarativegeoplace_p.h" #include "qdeclarativecoordinate_p.h" #include "qdeclarativegeoserviceprovider_p.h" #include "qdeclarativegraphicsgeomap_p.h" #include "qdeclarativegeomapgroupobject_p.h" #include "qdeclarativegeomapobjectborder_p.h" #include "qdeclarativegeomapcircleobject_p.h" #include "qdeclarativegeomappixmapobject_p.h" #include "qdeclarativegeomappolygonobject_p.h" #include "qdeclarativegeomappolylineobject_p.h" #include "qdeclarativegeomaprectangleobject_p.h" #include "qdeclarativegeomaptextobject_p.h" #include "qdeclarativegeomapmousearea_p.h" #include "qdeclarativegeomapmouseevent_p.h" //#include "qdeclarativegeocodemodel_p.h" //#include "qdeclarativereversegeocodemodel_p.h" #include #include QT_BEGIN_NAMESPACE QTM_USE_NAMESPACE class QLocationDeclarativeModule: public QDeclarativeExtensionPlugin { Q_OBJECT public: virtual void registerTypes(const char* uri) { Q_ASSERT(QLatin1String(uri) == QLatin1String("QtMobility.location")); // Elements available since Qt mobility 1.1: qmlRegisterType(uri, 1, 1, "Position"); qmlRegisterType(uri, 1, 1, "PositionSource"); qmlRegisterType(uri, 1, 1, "Landmark"); qmlRegisterType(uri, 1, 1, "LandmarkModel"); qmlRegisterType(uri, 1, 1, "LandmarkNameFilter"); qmlRegisterType(uri, 1, 1, "LandmarkCategoryFilter"); qmlRegisterType(uri, 1, 1, "LandmarkBoxFilter"); qmlRegisterType(uri, 1, 1, "LandmarkProximityFilter"); qmlRegisterType(uri, 1, 1, "LandmarkUnionFilter"); qmlRegisterType(uri, 1, 1, "LandmarkIntersectionFilter"); qmlRegisterType(uri, 1, 1, "LandmarkCategory"); qmlRegisterType(uri, 1, 1, "LandmarkCategoryModel"); qmlRegisterUncreatableType(uri, 1, 1, "LandmarkFilterBase", QDeclarativeLandmarkFilterBase::tr("LandmarkFilterBase is an abstract class")); qmlRegisterUncreatableType(uri, 1, 1, "LandmarkAbstractModel", QDeclarativeLandmarkAbstractModel::tr("LandmarkAbstractModel is an abstract class")); qmlRegisterType(uri, 1, 1, "Coordinate"); qmlRegisterType(uri, 1, 1, "BoundingBox"); qmlRegisterType(uri, 1, 1, "Place"); qmlRegisterType(uri, 1, 1, "Address"); qmlRegisterType(uri, 1, 2, "Plugin"); qmlRegisterType(uri, 1, 2, "PluginParameter"); qmlRegisterType(uri, 1, 2, "Map"); qmlRegisterType(); // used as grouped property qmlRegisterType(uri, 1, 2, "QGeoMapObject"); qmlRegisterType(uri, 1, 2, "MapObject"); qmlRegisterType(uri, 1, 2, "MapObjectView"); qmlRegisterType(uri, 1, 2, "MapGroup"); qmlRegisterType(uri, 1, 2, "MapCircle"); qmlRegisterType(uri, 1, 2, "MapPolygon"); qmlRegisterType(uri, 1, 2, "MapPolyline"); qmlRegisterType(uri, 1, 2, "MapRectangle"); qmlRegisterType(uri, 1, 2, "MapText"); qmlRegisterType(uri, 1, 2, "MapImage"); qmlRegisterType(uri, 1, 2, "MapMouseArea"); qmlRegisterType(uri, 1, 2, "MapMouseEvent"); //qmlRegisterType(uri, 1, 3, "GeocodeModel"); //qmlRegisterType(uri, 1, 3, "ReverseGeocodeModel"); } }; QT_END_NAMESPACE #include "location.moc" Q_EXPORT_PLUGIN2(declarative_location, QT_PREPEND_NAMESPACE(QLocationDeclarativeModule));