/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of libmeegotouch. ** ** If you have questions regarding the use of this file, please contact ** Nokia at directui@nokia.com. ** ** This library is free software; you can redistribute it and/or ** modify it 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. ** ****************************************************************************/ #ifndef MLOCATIONDATABASE_H #define MLOCATIONDATABASE_H #include "mexport.h" #include #include "mcity.h" #include "mcountry.h" class MLocationDatabasePrivate; class M_EXPORT MLocationDatabase { public: MLocationDatabase(); virtual ~MLocationDatabase(); /** * \brief returns a list with all known countries */ QList countries(); /** * \brief returns a list with all known cities */ QList cities(); /** * \brief returns a list with all cities in a country */ QList citiesInCountry( const QString& countryKey ); /** * \brief returns a list with all cities that contain the given searchString */ QList matchingCities( const QString& searchString ); /** * \brief returns the city with the nearest position to the given location. */ MCity nearestCity( qreal latitude, qreal longitude ); private: MLocationDatabasePrivate *const d_ptr; Q_DECLARE_PRIVATE(MLocationDatabase) }; #endif