summaryrefslogtreecommitdiff
path: root/src/location
diff options
context:
space:
mode:
authorAlex Blasche <alexander.blasche@digia.com>2013-08-29 11:27:50 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-03 09:06:50 +0200
commitfc53ebdbd043642aaab0ce39f48d7c05231d10fd (patch)
treeedb5635f9fb1c9252f31434452e05e75d7b9bcb7 /src/location
parent9f98392aff316bff0b89ac20234234e1e3f060e2 (diff)
downloadqtlocation-fc53ebdbd043642aaab0ce39f48d7c05231d10fd.tar.gz
Fix some name inconsistencies in QtLocation
1. Rename QGeocoding* classes to QGeoCoding*. This emphasizes the QGeo prefix rather than the geocing word. The QML interfaces continues to use the Geocoding* as they don't a prefix as such. 2. Rename QProposedSearchResult to QPlaceProposedSearchResult. The class is place related and should carry the QPlace name prefix Change-Id: I428c7e6368774a9f199db5c113de11649e4a665c Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com> Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'src/location')
-rw-r--r--src/location/doc/src/maps.qdoc16
-rw-r--r--src/location/maps/qgeocodereply.cpp90
-rw-r--r--src/location/maps/qgeocodereply.h16
-rw-r--r--src/location/maps/qgeocodereply_p.h12
-rw-r--r--src/location/maps/qgeocodingmanager.cpp102
-rw-r--r--src/location/maps/qgeocodingmanager.h26
-rw-r--r--src/location/maps/qgeocodingmanager_p.h12
-rw-r--r--src/location/maps/qgeocodingmanagerengine.cpp110
-rw-r--r--src/location/maps/qgeocodingmanagerengine.h24
-rw-r--r--src/location/maps/qgeocodingmanagerengine_p.h8
-rw-r--r--src/location/maps/qgeoserviceprovider.cpp18
-rw-r--r--src/location/maps/qgeoserviceprovider.h6
-rw-r--r--src/location/maps/qgeoserviceprovider_p.h4
-rw-r--r--src/location/maps/qgeoserviceproviderfactory.cpp20
-rw-r--r--src/location/maps/qgeoserviceproviderfactory.h2
-rw-r--r--src/location/places/places.pri6
-rw-r--r--src/location/places/qplaceproposedsearchresult.cpp (renamed from src/location/places/qproposedsearchresult.cpp)38
-rw-r--r--src/location/places/qplaceproposedsearchresult.h (renamed from src/location/places/qproposedsearchresult.h)16
-rw-r--r--src/location/places/qplaceproposedsearchresult_p.h (renamed from src/location/places/qproposedsearchresult_p.h)10
19 files changed, 268 insertions, 268 deletions
diff --git a/src/location/doc/src/maps.qdoc b/src/location/doc/src/maps.qdoc
index 3426d626..a97f28f9 100644
--- a/src/location/doc/src/maps.qdoc
+++ b/src/location/doc/src/maps.qdoc
@@ -220,22 +220,22 @@ must use the \l {Maps and Navigation (QML)} API.
\section1 Geocoding
In C++, an address-to-coordinate query is performed using the
-\l{QGeocodingManager::geocode()}{geocode()} method of the QGeocodingManager
+\l{QGeoCodingManager::geocode()}{geocode()} method of the QGeoCodingManager
class. For coordinate-to-address queries, the
-\l{QGeocodingManager::reverseGeocode()}{reverseGeocode()} method is available
-on the same class. Instances of QGeocodingManager are available via
+\l{QGeoCodingManager::reverseGeocode()}{reverseGeocode()} method is available
+on the same class. Instances of QGeoCodingManager are available via
\l{QGeoServiceProvider}.
\b{Key Classes}
\table
\row
\li \l{QGeoServiceProvider}
- \li Provides a QGeocodingManager instance ready for use.
+ \li Provides a QGeoCodingManager instance ready for use.
\row
- \li \l{QGeocodingManager}
- \li Accepts queries and produces QGeocodeReply objects.
+ \li \l{QGeoCodingManager}
+ \li Accepts queries and produces QGeoCodeReply objects.
\row
- \li \l{QGeocodeReply}
+ \li \l{QGeoCodeReply}
\li Contains the results of a geocoding query.
\endtable
@@ -249,7 +249,7 @@ multiple routes to the same destination.
\table
\row
\li \l{QGeoServiceProvider}
- \li Provides a QGeocodingManager instance ready for use.
+ \li Provides a QGeoCodingManager instance ready for use.
\row
\li \l{QGeoRoutingManager}
\li Accepts queries and produces QGeoRouteReply objects.
diff --git a/src/location/maps/qgeocodereply.cpp b/src/location/maps/qgeocodereply.cpp
index 96977799..91738149 100644
--- a/src/location/maps/qgeocodereply.cpp
+++ b/src/location/maps/qgeocodereply.cpp
@@ -44,29 +44,29 @@
QT_BEGIN_NAMESPACE
/*!
- \class QGeocodeReply
+ \class QGeoCodeReply
\inmodule QtLocation
\ingroup QtLocation-geocoding
\since Qt Location 5.0
- \brief The QGeocodeReply class manages an operation started by an
- instance of QGeocodingManager.
+ \brief The QGeoCodeReply class manages an operation started by an
+ instance of QGeoCodingManager.
- Instances of QGeocodeReply manage the state and results of these
+ Instances of QGeoCodeReply manage the state and results of these
operations.
The isFinished(), error() and errorString() methods provide information
on whether the operation has completed and if it completed successfully.
- The finished() and error(QGeocodeReply::Error,QString)
+ The finished() and error(QGeoCodeReply::Error,QString)
signals can be used to monitor the progress of the operation.
- It is possible that a newly created QGeocodeReply may be in a finished
+ It is possible that a newly created QGeoCodeReply may be in a finished
state, most commonly because an error has occurred. Since such an instance
will never emit the finished() or
- error(QGeocodeReply::Error,QString) signals, it is
+ error(QGeoCodeReply::Error,QString) signals, it is
important to check the result of isFinished() before making the connections
- to the signals. The documentation for QGeocodingManager demonstrates how
+ to the signals. The documentation for QGeoCodingManager demonstrates how
this might be carried out.
If the operation completes successfully the results will be able to be
@@ -74,14 +74,14 @@ QT_BEGIN_NAMESPACE
*/
/*!
- \enum QGeocodeReply::Error
+ \enum QGeoCodeReply::Error
Describes an error which prevented the completion of the operation.
\value NoError
No error has occurred.
\value EngineNotSetError
- The geocoding manager that was used did not have a QGeocodingManagerEngine instance associated with it.
+ The geocoding manager that was used did not have a QGeoCodingManagerEngine instance associated with it.
\value CommunicationError
An error occurred while communicating with the service provider.
\value ParseError
@@ -98,21 +98,21 @@ QT_BEGIN_NAMESPACE
/*!
Constructs a geocode reply with the specified \a parent.
*/
-QGeocodeReply::QGeocodeReply(QObject *parent)
+QGeoCodeReply::QGeoCodeReply(QObject *parent)
: QObject(parent),
- d_ptr(new QGeocodeReplyPrivate()) {}
+ d_ptr(new QGeoCodeReplyPrivate()) {}
/*!
Constructs a geocode reply with a given \a error and \a errorString and the specified \a parent.
*/
-QGeocodeReply::QGeocodeReply(Error error, const QString &errorString, QObject *parent)
+QGeoCodeReply::QGeoCodeReply(Error error, const QString &errorString, QObject *parent)
: QObject(parent),
- d_ptr(new QGeocodeReplyPrivate(error, errorString)) {}
+ d_ptr(new QGeoCodeReplyPrivate(error, errorString)) {}
/*!
Destroys this reply object.
*/
-QGeocodeReply::~QGeocodeReply()
+QGeoCodeReply::~QGeoCodeReply()
{
delete d_ptr;
}
@@ -123,11 +123,11 @@ QGeocodeReply::~QGeocodeReply()
If \a finished is true, this will cause the finished() signal to be
emitted.
- If the operation completed successfully, QGeocodeReply::setLocations()
+ If the operation completed successfully, QGeoCodeReply::setLocations()
should be called before this function. If an error occurred,
- QGeocodeReply::setError() should be used instead.
+ QGeoCodeReply::setError() should be used instead.
*/
-void QGeocodeReply::setFinished(bool finished)
+void QGeoCodeReply::setFinished(bool finished)
{
d_ptr->isFinished = finished;
if (d_ptr->isFinished)
@@ -138,7 +138,7 @@ void QGeocodeReply::setFinished(bool finished)
Return true if the operation completed successfully or encountered an
error which cause the operation to come to a halt.
*/
-bool QGeocodeReply::isFinished() const
+bool QGeoCodeReply::isFinished() const
{
return d_ptr->isFinished;
}
@@ -150,7 +150,7 @@ bool QGeocodeReply::isFinished() const
This will also cause error() and finished() signals to be emitted, in that
order.
*/
-void QGeocodeReply::setError(QGeocodeReply::Error error, const QString &errorString)
+void QGeoCodeReply::setError(QGeoCodeReply::Error error, const QString &errorString)
{
d_ptr->error = error;
d_ptr->errorString = errorString;
@@ -161,9 +161,9 @@ void QGeocodeReply::setError(QGeocodeReply::Error error, const QString &errorStr
/*!
Returns the error state of this reply.
- If the result is QGeocodeReply::NoError then no error has occurred.
+ If the result is QGeoCodeReply::NoError then no error has occurred.
*/
-QGeocodeReply::Error QGeocodeReply::error() const
+QGeoCodeReply::Error QGeoCodeReply::error() const
{
return d_ptr->error;
}
@@ -176,9 +176,9 @@ QGeocodeReply::Error QGeocodeReply::error() const
which case this will also return an empty string.
To determine whether an error has occurred, check to see if
- QGeocodeReply::error() is equal to QGeocodeReply::NoError.
+ QGeoCodeReply::error() is equal to QGeoCodeReply::NoError.
*/
-QString QGeocodeReply::errorString() const
+QString QGeoCodeReply::errorString() const
{
return d_ptr->errorString;
}
@@ -186,7 +186,7 @@ QString QGeocodeReply::errorString() const
/*!
Sets the viewport which contains the results to \a viewport.
*/
-void QGeocodeReply::setViewport(const QGeoShape &viewport)
+void QGeoCodeReply::setViewport(const QGeoShape &viewport)
{
d_ptr->viewport = viewport;
}
@@ -195,9 +195,9 @@ void QGeocodeReply::setViewport(const QGeoShape &viewport)
Returns the viewport which contains the results.
This function will return 0 if no viewport bias
- was specified in the QGeocodingManager function which created this reply.
+ was specified in the QGeoCodingManager function which created this reply.
*/
-QGeoShape QGeocodeReply::viewport() const
+QGeoShape QGeoCodeReply::viewport() const
{
return d_ptr->viewport;
}
@@ -206,9 +206,9 @@ QGeoShape QGeocodeReply::viewport() const
Returns a list of locations.
The locations are the results of the operation corresponding to the
- QGeocodingManager function which created this reply.
+ QGeoCodingManager function which created this reply.
*/
-QList<QGeoLocation> QGeocodeReply::locations() const
+QList<QGeoLocation> QGeoCodeReply::locations() const
{
return d_ptr->locations;
}
@@ -216,7 +216,7 @@ QList<QGeoLocation> QGeocodeReply::locations() const
/*!
Adds \a location to the list of locations in this reply.
*/
-void QGeocodeReply::addLocation(const QGeoLocation &location)
+void QGeoCodeReply::addLocation(const QGeoLocation &location)
{
d_ptr->locations.append(location);
}
@@ -224,7 +224,7 @@ void QGeocodeReply::addLocation(const QGeoLocation &location)
/*!
Sets the list of \a locations in the reply.
*/
-void QGeocodeReply::setLocations(const QList<QGeoLocation> &locations)
+void QGeoCodeReply::setLocations(const QList<QGeoLocation> &locations)
{
d_ptr->locations = locations;
}
@@ -234,7 +234,7 @@ void QGeocodeReply::setLocations(const QList<QGeoLocation> &locations)
This will do nothing if the reply is finished.
*/
-void QGeocodeReply::abort()
+void QGeoCodeReply::abort()
{
if (!isFinished())
setFinished(true);
@@ -248,7 +248,7 @@ void QGeocodeReply::abort()
This may be more than locations().length() if the number of responses
was less than the number requested.
*/
-int QGeocodeReply::limit() const
+int QGeoCodeReply::limit() const
{
return d_ptr->limit;
}
@@ -257,7 +257,7 @@ int QGeocodeReply::limit() const
Returns the offset into the entire result set at which to start
fetching results.
*/
-int QGeocodeReply::offset() const
+int QGeoCodeReply::offset() const
{
return d_ptr->offset;
}
@@ -267,7 +267,7 @@ int QGeocodeReply::offset() const
If \a limit is -1 then all available responses will be returned.
*/
-void QGeocodeReply::setLimit(int limit)
+void QGeoCodeReply::setLimit(int limit)
{
d_ptr->limit = limit;
}
@@ -276,27 +276,27 @@ void QGeocodeReply::setLimit(int limit)
Sets the offset in the entire result set at which to start
fetching result to \a offset.
*/
-void QGeocodeReply::setOffset(int offset)
+void QGeoCodeReply::setOffset(int offset)
{
d_ptr->offset = offset;
}
/*!
- \fn void QGeocodeReply::finished()
+ \fn void QGeoCodeReply::finished()
This signal is emitted when this reply has finished processing.
- If error() equals QGeocodeReply::NoError then the processing
+ If error() equals QGeoCodeReply::NoError then the processing
finished successfully.
- This signal and QGeocodingManager::finished() will be
+ This signal and QGeoCodingManager::finished() will be
emitted at the same time.
\note Do not delete this reply object in the slot connected to this
signal. Use deleteLater() instead.
*/
/*!
- \fn void QGeocodeReply::error(QGeocodeReply::Error error, const QString &errorString)
+ \fn void QGeoCodeReply::error(QGeoCodeReply::Error error, const QString &errorString)
This signal is emitted when an error has been detected in the processing of
this reply. The finished() signal will probably follow.
@@ -304,7 +304,7 @@ void QGeocodeReply::setOffset(int offset)
The error will be described by the error code \a error. If \a errorString is
not empty it will contain a textual description of the error.
- This signal and QGeocodingManager::error() will be emitted at the same time.
+ This signal and QGeoCodingManager::error() will be emitted at the same time.
\note Do not delete this reply object in the slot connected to this
signal. Use deleteLater() instead.
@@ -313,21 +313,21 @@ void QGeocodeReply::setOffset(int offset)
/*******************************************************************************
*******************************************************************************/
-QGeocodeReplyPrivate::QGeocodeReplyPrivate()
- : error(QGeocodeReply::NoError),
+QGeoCodeReplyPrivate::QGeoCodeReplyPrivate()
+ : error(QGeoCodeReply::NoError),
errorString(QLatin1String("")),
isFinished(false),
limit(-1),
offset(0) {}
-QGeocodeReplyPrivate::QGeocodeReplyPrivate(QGeocodeReply::Error error, const QString &errorString)
+QGeoCodeReplyPrivate::QGeoCodeReplyPrivate(QGeoCodeReply::Error error, const QString &errorString)
: error(error),
errorString(errorString),
isFinished(true),
limit(-1),
offset(0) {}
-QGeocodeReplyPrivate::~QGeocodeReplyPrivate() {}
+QGeoCodeReplyPrivate::~QGeoCodeReplyPrivate() {}
#include "moc_qgeocodereply.cpp"
diff --git a/src/location/maps/qgeocodereply.h b/src/location/maps/qgeocodereply.h
index 1f36633f..43055317 100644
--- a/src/location/maps/qgeocodereply.h
+++ b/src/location/maps/qgeocodereply.h
@@ -51,9 +51,9 @@
QT_BEGIN_NAMESPACE
class QGeoShape;
-class QGeocodeReplyPrivate;
+class QGeoCodeReplyPrivate;
-class Q_LOCATION_EXPORT QGeocodeReply : public QObject
+class Q_LOCATION_EXPORT QGeoCodeReply : public QObject
{
Q_OBJECT
@@ -68,8 +68,8 @@ public:
UnknownError
};
- QGeocodeReply(Error error, const QString &errorString, QObject *parent = 0);
- virtual ~QGeocodeReply();
+ QGeoCodeReply(Error error, const QString &errorString, QObject *parent = 0);
+ virtual ~QGeoCodeReply();
bool isFinished() const;
Error error() const;
@@ -85,10 +85,10 @@ public:
Q_SIGNALS:
void finished();
- void error(QGeocodeReply::Error error, const QString &errorString = QString());
+ void error(QGeoCodeReply::Error error, const QString &errorString = QString());
protected:
- QGeocodeReply(QObject *parent = 0);
+ QGeoCodeReply(QObject *parent = 0);
void setError(Error error, const QString &errorString);
void setFinished(bool finished);
@@ -101,8 +101,8 @@ protected:
void setOffset(int offset);
private:
- QGeocodeReplyPrivate *d_ptr;
- Q_DISABLE_COPY(QGeocodeReply)
+ QGeoCodeReplyPrivate *d_ptr;
+ Q_DISABLE_COPY(QGeoCodeReply)
};
QT_END_NAMESPACE
diff --git a/src/location/maps/qgeocodereply_p.h b/src/location/maps/qgeocodereply_p.h
index 6a8cd913..0f64f49c 100644
--- a/src/location/maps/qgeocodereply_p.h
+++ b/src/location/maps/qgeocodereply_p.h
@@ -63,14 +63,14 @@ QT_BEGIN_NAMESPACE
class QGeoLocation;
-class QGeocodeReplyPrivate
+class QGeoCodeReplyPrivate
{
public:
- QGeocodeReplyPrivate();
- QGeocodeReplyPrivate(QGeocodeReply::Error error, const QString &errorString);
- ~QGeocodeReplyPrivate();
+ QGeoCodeReplyPrivate();
+ QGeoCodeReplyPrivate(QGeoCodeReply::Error error, const QString &errorString);
+ ~QGeoCodeReplyPrivate();
- QGeocodeReply::Error error;
+ QGeoCodeReply::Error error;
QString errorString;
bool isFinished;
@@ -80,7 +80,7 @@ public:
int limit;
int offset;
private:
- Q_DISABLE_COPY(QGeocodeReplyPrivate)
+ Q_DISABLE_COPY(QGeoCodeReplyPrivate)
};
QT_END_NAMESPACE
diff --git a/src/location/maps/qgeocodingmanager.cpp b/src/location/maps/qgeocodingmanager.cpp
index 37e46e86..5dcb873e 100644
--- a/src/location/maps/qgeocodingmanager.cpp
+++ b/src/location/maps/qgeocodingmanager.cpp
@@ -51,16 +51,16 @@
QT_BEGIN_NAMESPACE
/*!
- \class QGeocodingManager
+ \class QGeoCodingManager
\inmodule QtLocation
\ingroup QtLocation-geocoding
\since Qt Location 5.0
- \brief The QGeocodingManager class provides support for geocoding
+ \brief The QGeoCodingManager class provides support for geocoding
operations.
The geocode() and reverseGeocode() functions return
- QGeocodeReply objects, which manage these operations and report on the
+ QGeoCodeReply objects, which manage these operations and report on the
result of the operations and any errors which may have occurred.
The geocode() and reverseGeocode() functions can be used to convert
@@ -70,7 +70,7 @@ QT_BEGIN_NAMESPACE
geocoding operation, if the string provided can be interpreted as
an address it can be geocoded to coordinate information.
- Instances of QGeocodingManager can be accessed with
+ Instances of QGeoCodingManager can be accessed with
QGeoServiceProvider::geocodingManager().
*/
@@ -79,26 +79,26 @@ QT_BEGIN_NAMESPACE
implementation provided by \a engine.
This constructor is used interally by QGeoServiceProviderFactory. Regular
- users should acquire instances of QGeocodingManager with
+ users should acquire instances of QGeoCodingManager with
QGeoServiceProvider::geocodingManager();
*/
-QGeocodingManager::QGeocodingManager(QGeocodingManagerEngine *engine, QObject *parent)
+QGeoCodingManager::QGeoCodingManager(QGeoCodingManagerEngine *engine, QObject *parent)
: QObject(parent),
- d_ptr(new QGeocodingManagerPrivate())
+ d_ptr(new QGeoCodingManagerPrivate())
{
d_ptr->engine = engine;
if (d_ptr->engine) {
d_ptr->engine->setParent(this);
connect(d_ptr->engine,
- SIGNAL(finished(QGeocodeReply*)),
+ SIGNAL(finished(QGeoCodeReply*)),
this,
- SIGNAL(finished(QGeocodeReply*)));
+ SIGNAL(finished(QGeoCodeReply*)));
connect(d_ptr->engine,
- SIGNAL(error(QGeocodeReply*, QGeocodeReply::Error, QString)),
+ SIGNAL(error(QGeoCodeReply*, QGeoCodeReply::Error, QString)),
this,
- SIGNAL(error(QGeocodeReply*, QGeocodeReply::Error, QString)));
+ SIGNAL(error(QGeoCodeReply*, QGeoCodeReply::Error, QString)));
} else {
qFatal("The geocoding manager engine that was set for this geocoding manager was NULL.");
}
@@ -107,7 +107,7 @@ QGeocodingManager::QGeocodingManager(QGeocodingManagerEngine *engine, QObject *p
/*!
Destroys this manager.
*/
-QGeocodingManager::~QGeocodingManager()
+QGeoCodingManager::~QGeoCodingManager()
{
delete d_ptr;
}
@@ -119,7 +119,7 @@ QGeocodingManager::~QGeocodingManager()
The combination of managerName() and managerVersion() should be unique
amongst the plugin implementations.
*/
-QString QGeocodingManager::managerName() const
+QString QGeoCodingManager::managerName() const
{
// if (!d_ptr->engine)
// return QString();
@@ -134,7 +134,7 @@ QString QGeocodingManager::managerName() const
The combination of managerName() and managerVersion() should be unique
amongst the plugin implementations.
*/
-int QGeocodingManager::managerVersion() const
+int QGeoCodingManager::managerVersion() const
{
// if (!d_ptr->engine)
// return -1;
@@ -146,16 +146,16 @@ int QGeocodingManager::managerVersion() const
Begins the geocoding of \a address. Geocoding is the process of finding a
coordinate that corresponds to a given address.
- A QGeocodeReply object will be returned, which can be used to manage the
+ A QGeoCodeReply object will be returned, which can be used to manage the
geocoding operation and to return the results of the operation.
- This manager and the returned QGeocodeReply object will emit signals
+ This manager and the returned QGeoCodeReply object will emit signals
indicating if the operation completes or if errors occur.
If supportsGeocoding() returns false an
- QGeocodeReply::UnsupportedOptionError will occur.
+ QGeoCodeReply::UnsupportedOptionError will occur.
- Once the operation has completed, QGeocodeReply::locations() can be used to
+ Once the operation has completed, QGeoCodeReply::locations() can be used to
retrieve the results, which will consist of a list of QGeoLocation objects.
These objects represent a combination of coordinate and address data.
@@ -169,14 +169,14 @@ int QGeocodingManager::managerVersion() const
service will attempt to geocode all matches for the specified data.
The user is responsible for deleting the returned reply object, although
- this can be done in the slot connected to QGeocodingManager::finished(),
- QGeocodingManager::error(), QGeocodeReply::finished() or
- QGeocodeReply::error() with deleteLater().
+ this can be done in the slot connected to QGeoCodingManager::finished(),
+ QGeoCodingManager::error(), QGeoCodeReply::finished() or
+ QGeoCodeReply::error() with deleteLater().
*/
-QGeocodeReply *QGeocodingManager::geocode(const QGeoAddress &address, const QGeoShape &bounds)
+QGeoCodeReply *QGeoCodingManager::geocode(const QGeoAddress &address, const QGeoShape &bounds)
{
// if (!d_ptr->engine)
-// return new QGeocodeReply(QGeocodeReply::EngineNotSetError, "The geocoding manager was not created with a valid engine.", this);
+// return new QGeoCodeReply(QGeoCodeReply::EngineNotSetError, "The geocoding manager was not created with a valid engine.", this);
return d_ptr->engine->geocode(address, bounds);
}
@@ -186,16 +186,16 @@ QGeocodeReply *QGeocodingManager::geocode(const QGeoAddress &address, const QGeo
Begins the reverse geocoding of \a coordinate. Reverse geocoding is the
process of finding an address that corresponds to a given coordinate.
- A QGeocodeReply object will be returned, which can be used to manage the
+ A QGeoCodeReply object will be returned, which can be used to manage the
reverse geocoding operation and to return the results of the operation.
- This manager and the returned QGeocodeReply object will emit signals
+ This manager and the returned QGeoCodeReply object will emit signals
indicating if the operation completes or if errors occur.
If supportsReverseGeocoding() returns false an
- QGeocodeReply::UnsupportedOptionError will occur.
+ QGeoCodeReply::UnsupportedOptionError will occur.
- At that point QGeocodeReply::locations() can be used to retrieve the
+ At that point QGeoCodeReply::locations() can be used to retrieve the
results, which will consist of a list of QGeoLocation objects. These objects
represent a combination of coordinate and address data.
@@ -214,14 +214,14 @@ QGeocodeReply *QGeocodingManager::geocode(const QGeoAddress &address, const QGeo
limit the results to those that are contained within \a bounds.
The user is responsible for deleting the returned reply object, although
- this can be done in the slot connected to QGeocodingManager::finished(),
- QGeocodingManager::error(), QGeocodeReply::finished() or
- QGeocodeReply::error() with deleteLater().
+ this can be done in the slot connected to QGeoCodingManager::finished(),
+ QGeoCodingManager::error(), QGeoCodeReply::finished() or
+ QGeoCodeReply::error() with deleteLater().
*/
-QGeocodeReply *QGeocodingManager::reverseGeocode(const QGeoCoordinate &coordinate, const QGeoShape &bounds)
+QGeoCodeReply *QGeoCodingManager::reverseGeocode(const QGeoCoordinate &coordinate, const QGeoShape &bounds)
{
// if (!d_ptr->engine)
-// return new QGeocodeReply(QGeocodeReply::EngineNotSetError, "The geocoding manager was not created with a valid engine.", this);
+// return new QGeoCodeReply(QGeoCodeReply::EngineNotSetError, "The geocoding manager was not created with a valid engine.", this);
return d_ptr->engine->reverseGeocode(coordinate, bounds);
}
@@ -229,13 +229,13 @@ QGeocodeReply *QGeocodingManager::reverseGeocode(const QGeoCoordinate &coordinat
/*!
Begins geocoding for a location matching \a address.
- A QGeocodeReply object will be returned, which can be used to manage the
+ A QGeoCodeReply object will be returned, which can be used to manage the
geocoding operation and to return the results of the operation.
- This manager and the returned QGeocodeReply object will emit signals
+ This manager and the returned QGeoCodeReply object will emit signals
indicating if the operation completes or if errors occur.
- Once the operation has completed, QGeocodeReply::locations() can be used to
+ Once the operation has completed, QGeoCodeReply::locations() can be used to
retrieve the results, which will consist of a list of QGeoLocation objects.
These objects represent a combination of coordinate and address data.
@@ -251,19 +251,19 @@ QGeocodeReply *QGeocodingManager::reverseGeocode(const QGeoCoordinate &coordinat
limit the results to those that are contained within \a bounds.
The user is responsible for deleting the returned reply object, although
- this can be done in the slot connected to QGeocodingManager::finished(),
- QGeocodingManager::error(), QGeocodeReply::finished() or
- QGeocodeReply::error() with deleteLater().
+ this can be done in the slot connected to QGeoCodingManager::finished(),
+ QGeoCodingManager::error(), QGeoCodeReply::finished() or
+ QGeoCodeReply::error() with deleteLater().
*/
-QGeocodeReply *QGeocodingManager::geocode(const QString &address,
+QGeoCodeReply *QGeoCodingManager::geocode(const QString &address,
int limit,
int offset,
const QGeoShape &bounds)
{
// if (!d_ptr->engine)
-// return new QGeocodeReply(QGeocodeReply::EngineNotSetError, "The geocoding manager was not created with a valid engine.", this);
+// return new QGeoCodeReply(QGeoCodeReply::EngineNotSetError, "The geocoding manager was not created with a valid engine.", this);
- QGeocodeReply *reply = d_ptr->engine->geocode(address,
+ QGeoCodeReply *reply = d_ptr->engine->geocode(address,
limit,
offset,
bounds);
@@ -278,7 +278,7 @@ QGeocodeReply *QGeocodingManager::geocode(const QString &address,
The locale used defaults to the system locale if this is not set.
*/
-void QGeocodingManager::setLocale(const QLocale &locale)
+void QGeoCodingManager::setLocale(const QLocale &locale)
{
d_ptr->engine->setLocale(locale);
}
@@ -287,20 +287,20 @@ void QGeocodingManager::setLocale(const QLocale &locale)
Returns the locale used to hint to this geocoding manager about what
language to use for the results.
*/
-QLocale QGeocodingManager::locale() const
+QLocale QGeoCodingManager::locale() const
{
return d_ptr->engine->locale();
}
/*!
-\fn void QGeocodingManager::finished(QGeocodeReply *reply)
+\fn void QGeoCodingManager::finished(QGeoCodeReply *reply)
This signal is emitted when \a reply has finished processing.
- If reply::error() equals QGeocodeReply::NoError then the processing
+ If reply::error() equals QGeoCodeReply::NoError then the processing
finished successfully.
- This signal and QGeocodeReply::finished() will be emitted at the same
+ This signal and QGeoCodeReply::finished() will be emitted at the same
time.
\note Do not delete the \a reply object in the slot connected to this
@@ -308,15 +308,15 @@ QLocale QGeocodingManager::locale() const
*/
/*!
-\fn void QGeocodingManager::error(QGeocodeReply *reply, QGeocodeReply::Error error, QString errorString)
+\fn void QGeoCodingManager::error(QGeoCodeReply *reply, QGeoCodeReply::Error error, QString errorString)
This signal is emitted when an error has been detected in the processing of
- \a reply. The QGeocodingManager::finished() signal will probably follow.
+ \a reply. The QGeoCodingManager::finished() signal will probably follow.
The error will be described by the error code \a error. If \a errorString is
not empty it will contain a textual description of the error.
- This signal and QGeocodeReply::error() will be emitted at the same time.
+ This signal and QGeoCodeReply::error() will be emitted at the same time.
\note Do not delete the \a reply object in the slot connected to this
signal. Use deleteLater() instead.
@@ -325,10 +325,10 @@ QLocale QGeocodingManager::locale() const
/*******************************************************************************
*******************************************************************************/
-QGeocodingManagerPrivate::QGeocodingManagerPrivate()
+QGeoCodingManagerPrivate::QGeoCodingManagerPrivate()
: engine(0) {}
-QGeocodingManagerPrivate::~QGeocodingManagerPrivate()
+QGeoCodingManagerPrivate::~QGeoCodingManagerPrivate()
{
delete engine;
}
diff --git a/src/location/maps/qgeocodingmanager.h b/src/location/maps/qgeocodingmanager.h
index 6604c25d..6f55fcf5 100644
--- a/src/location/maps/qgeocodingmanager.h
+++ b/src/location/maps/qgeocodingmanager.h
@@ -42,7 +42,7 @@
#ifndef QGEOCODINGMANAGER_H
#define QGEOCODINGMANAGER_H
-#include <QtLocation/QGeocodeReply>
+#include <QtLocation/QGeoCodeReply>
#include <QtPositioning/QGeoRectangle>
#include <QObject>
@@ -53,40 +53,40 @@ QT_BEGIN_NAMESPACE
class QLocale;
-class QGeocodingManagerEngine;
-class QGeocodingManagerPrivate;
+class QGeoCodingManagerEngine;
+class QGeoCodingManagerPrivate;
-class Q_LOCATION_EXPORT QGeocodingManager : public QObject
+class Q_LOCATION_EXPORT QGeoCodingManager : public QObject
{
Q_OBJECT
public:
- ~QGeocodingManager();
+ ~QGeoCodingManager();
QString managerName() const;
int managerVersion() const;
- QGeocodeReply *geocode(const QGeoAddress &address,
+ QGeoCodeReply *geocode(const QGeoAddress &address,
const QGeoShape &bounds = QGeoShape());
- QGeocodeReply *geocode(const QString &searchString,
+ QGeoCodeReply *geocode(const QString &searchString,
int limit = -1,
int offset = 0,
const QGeoShape &bounds = QGeoShape());
- QGeocodeReply *reverseGeocode(const QGeoCoordinate &coordinate,
+ QGeoCodeReply *reverseGeocode(const QGeoCoordinate &coordinate,
const QGeoShape &bounds = QGeoShape());
void setLocale(const QLocale &locale);
QLocale locale() const;
Q_SIGNALS:
- void finished(QGeocodeReply *reply);
- void error(QGeocodeReply *reply, QGeocodeReply::Error error, QString errorString = QString());
+ void finished(QGeoCodeReply *reply);
+ void error(QGeoCodeReply *reply, QGeoCodeReply::Error error, QString errorString = QString());
private:
- QGeocodingManager(QGeocodingManagerEngine *engine, QObject *parent = 0);
+ QGeoCodingManager(QGeoCodingManagerEngine *engine, QObject *parent = 0);
- QGeocodingManagerPrivate *d_ptr;
- Q_DISABLE_COPY(QGeocodingManager)
+ QGeoCodingManagerPrivate *d_ptr;
+ Q_DISABLE_COPY(QGeoCodingManager)
friend class QGeoServiceProvider;
friend class QGeoServiceProviderPrivate;
diff --git a/src/location/maps/qgeocodingmanager_p.h b/src/location/maps/qgeocodingmanager_p.h
index 89964542..8c28162f 100644
--- a/src/location/maps/qgeocodingmanager_p.h
+++ b/src/location/maps/qgeocodingmanager_p.h
@@ -61,18 +61,18 @@
QT_BEGIN_NAMESPACE
-class QGeocodingManagerEngine;
+class QGeoCodingManagerEngine;
-class QGeocodingManagerPrivate
+class QGeoCodingManagerPrivate
{
public:
- QGeocodingManagerPrivate();
- ~QGeocodingManagerPrivate();
+ QGeoCodingManagerPrivate();
+ ~QGeoCodingManagerPrivate();
- QGeocodingManagerEngine *engine;
+ QGeoCodingManagerEngine *engine;
private:
- Q_DISABLE_COPY(QGeocodingManagerPrivate)
+ Q_DISABLE_COPY(QGeoCodingManagerPrivate)
};
QT_END_NAMESPACE
diff --git a/src/location/maps/qgeocodingmanagerengine.cpp b/src/location/maps/qgeocodingmanagerengine.cpp
index 3ba59f68..f3aa2870 100644
--- a/src/location/maps/qgeocodingmanagerengine.cpp
+++ b/src/location/maps/qgeocodingmanagerengine.cpp
@@ -50,18 +50,18 @@
QT_BEGIN_NAMESPACE
/*!
- \class QGeocodingManagerEngine
+ \class QGeoCodingManagerEngine
\inmodule QtLocation
\ingroup QtLocation-impl
\since Qt Location 5.0
- \brief The QGeocodingManagerEngine class provides an interface and
+ \brief The QGeoCodingManagerEngine class provides an interface and
convenience methods to implementers of QGeoServiceProvider plugins who want
to provide support for geocoding operations.
In the default implementation, supportsGeocoding() and supportsReverseGeocoding() returns false while
geocode() and reverseGeocode()
- cause QGeocodeReply::UnsupportedOptionError to occur.
+ cause QGeoCodeReply::UnsupportedOptionError to occur.
If the service provider supports geocoding the subclass should provide an
implementation of geocode() and call setSupportsGeocoding(true) at
@@ -72,21 +72,21 @@ QT_BEGIN_NAMESPACE
setSupportsReverseGeocoding(true) at some point in time before
reverseGeocode() is called.
- A subclass of QGeocodingManagerEngine will often make use of a subclass
- fo QGeocodeReply internally, in order to add any engine-specific
+ A subclass of QGeoCodingManagerEngine will often make use of a subclass
+ fo QGeoCodeReply internally, in order to add any engine-specific
data (such as a QNetworkReply object for network-based services) to the
- QGeocodeReply instances used by the engine.
+ QGeoCodeReply instances used by the engine.
- \sa QGeocodingManager
+ \sa QGeoCodingManager
*/
/*!
Constructs a new engine with the specified \a parent, using \a parameters
to pass any implementation specific data to the engine.
*/
-QGeocodingManagerEngine::QGeocodingManagerEngine(const QMap<QString, QVariant> &parameters, QObject *parent)
+QGeoCodingManagerEngine::QGeoCodingManagerEngine(const QMap<QString, QVariant> &parameters, QObject *parent)
: QObject(parent),
- d_ptr(new QGeocodingManagerEnginePrivate())
+ d_ptr(new QGeoCodingManagerEnginePrivate())
{
Q_UNUSED(parameters)
}
@@ -94,7 +94,7 @@ QGeocodingManagerEngine::QGeocodingManagerEngine(const QMap<QString, QVariant> &
/*!
Destroys this engine.
*/
-QGeocodingManagerEngine::~QGeocodingManagerEngine()
+QGeoCodingManagerEngine::~QGeoCodingManagerEngine()
{
delete d_ptr;
}
@@ -106,7 +106,7 @@ QGeocodingManagerEngine::~QGeocodingManagerEngine()
The combination of managerName() and managerVersion() should be unique
amongst plugin implementations.
*/
-void QGeocodingManagerEngine::setManagerName(const QString &managerName)
+void QGeoCodingManagerEngine::setManagerName(const QString &managerName)
{
d_ptr->managerName = managerName;
}
@@ -118,7 +118,7 @@ void QGeocodingManagerEngine::setManagerName(const QString &managerName)
The combination of managerName() and managerVersion() should be unique
amongst plugin implementations.
*/
-QString QGeocodingManagerEngine::managerName() const
+QString QGeoCodingManagerEngine::managerName() const
{
return d_ptr->managerName;
}
@@ -129,7 +129,7 @@ QString QGeocodingManagerEngine::managerName() const
The combination of managerName() and managerVersion() should be unique
amongst plugin implementations.
*/
-void QGeocodingManagerEngine::setManagerVersion(int managerVersion)
+void QGeoCodingManagerEngine::setManagerVersion(int managerVersion)
{
d_ptr->managerVersion = managerVersion;
}
@@ -140,7 +140,7 @@ void QGeocodingManagerEngine::setManagerVersion(int managerVersion)
The combination of managerName() and managerVersion() should be unique
amongst plugin implementations.
*/
-int QGeocodingManagerEngine::managerVersion() const
+int QGeoCodingManagerEngine::managerVersion() const
{
return d_ptr->managerVersion;
}
@@ -149,16 +149,16 @@ int QGeocodingManagerEngine::managerVersion() const
Begins the geocoding of \a address. Geocoding is the process of finding a
coordinate that corresponds to a given address.
- A QGeocodeReply object will be returned, which can be used to manage the
+ A QGeoCodeReply object will be returned, which can be used to manage the
geocoding operation and to return the results of the operation.
- This engine and the returned QGeocodeReply object will emit signals
+ This engine and the returned QGeoCodeReply object will emit signals
indicating if the operation completes or if errors occur.
If supportsGeocoding() returns false an
- QGeocodeReply::UnsupportedOptionError will occur.
+ QGeoCodeReply::UnsupportedOptionError will occur.
- Once the operation has completed, QGeocodeReply::locations() can be used to
+ Once the operation has completed, QGeoCodeReply::locations() can be used to
retrieve the results, which will consist of a list of QGeoLocation objects.
These objects represent a combination of coordinate and address data.
@@ -172,16 +172,16 @@ int QGeocodingManagerEngine::managerVersion() const
service will attempt to geocode all matches for the specified data.
The user is responsible for deleting the returned reply object, although
- this can be done in the slot connected to QGeocodingManagerEngine::finished(),
- QGeocodingManagerEngine::error(), QGeocodeReply::finished() or
- QGeocodeReply::error() with deleteLater().
+ this can be done in the slot connected to QGeoCodingManagerEngine::finished(),
+ QGeoCodingManagerEngine::error(), QGeoCodeReply::finished() or
+ QGeoCodeReply::error() with deleteLater().
*/
-QGeocodeReply *QGeocodingManagerEngine::geocode(const QGeoAddress &address,
+QGeoCodeReply *QGeoCodingManagerEngine::geocode(const QGeoAddress &address,
const QGeoShape &bounds)
{
Q_UNUSED(address)
Q_UNUSED(bounds)
- return new QGeocodeReply(QGeocodeReply::UnsupportedOptionError,
+ return new QGeoCodeReply(QGeoCodeReply::UnsupportedOptionError,
QLatin1String("Geocoding is not supported by this service provider."), this);
}
@@ -189,16 +189,16 @@ QGeocodeReply *QGeocodingManagerEngine::geocode(const QGeoAddress &address,
Begins the reverse geocoding of \a coordinate. Reverse geocoding is the
process of finding an address that corresponds to a given coordinate.
- A QGeocodeReply object will be returned, which can be used to manage the
+ A QGeoCodeReply object will be returned, which can be used to manage the
reverse geocoding operation and to return the results of the operation.
- This engine and the returned QGeocodeReply object will emit signals
+ This engine and the returned QGeoCodeReply object will emit signals
indicating if the operation completes or if errors occur.
If supportsReverseGeocoding() returns false an
- QGeocodeReply::UnsupportedOptionError will occur.
+ QGeoCodeReply::UnsupportedOptionError will occur.
- At that point QGeocodeReply::locations() can be used to retrieve the
+ At that point QGeoCodeReply::locations() can be used to retrieve the
results, which will consist of a list of QGeoLocation objects. These objects
represent a combination of coordinate and address data.
@@ -217,29 +217,29 @@ QGeocodeReply *QGeocodingManagerEngine::geocode(const QGeoAddress &address,
limit the results to those that are contained by \a bounds.
The user is responsible for deleting the returned reply object, although
- this can be done in the slot connected to QGeocodingManagerEngine::finished(),
- QGeocodingManagerEngine::error(), QGeocodeReply::finished() or
- QGeocodeReply::error() with deleteLater().
+ this can be done in the slot connected to QGeoCodingManagerEngine::finished(),
+ QGeoCodingManagerEngine::error(), QGeoCodeReply::finished() or
+ QGeoCodeReply::error() with deleteLater().
*/
-QGeocodeReply *QGeocodingManagerEngine::reverseGeocode(const QGeoCoordinate &coordinate,
- const QGeoShape &bounds)
+QGeoCodeReply *QGeoCodingManagerEngine::reverseGeocode(const QGeoCoordinate &coordinate,
+ const QGeoShape &bounds)
{
Q_UNUSED(coordinate)
Q_UNUSED(bounds)
- return new QGeocodeReply(QGeocodeReply::UnsupportedOptionError,
+ return new QGeoCodeReply(QGeoCodeReply::UnsupportedOptionError,
QLatin1String("Reverse geocoding is not supported by this service provider."), this);
}
/*!
Begins geocoding for a location matching \a address.
- A QGeocodeReply object will be returned, which can be used to manage the
+ A QGeoCodeReply object will be returned, which can be used to manage the
geocoding operation and to return the results of the operation.
- This engine and the returned QGeocodeReply object will emit signals
+ This engine and the returned QGeoCodeReply object will emit signals
indicating if the operation completes or if errors occur.
- Once the operation has completed, QGeocodeReply::locations() can be used to
+ Once the operation has completed, QGeoCodeReply::locations() can be used to
retrieve the results, which will consist of a list of QGeoLocation objects.
These objects represent a combination of coordinate and address data.
@@ -255,22 +255,22 @@ QGeocodeReply *QGeocodingManagerEngine::reverseGeocode(const QGeoCoordinate &coo
limit the results to those that are contained by \a bounds.
The user is responsible for deleting the returned reply object, although
- this can be done in the slot connected to QGeocodingManagerEngine::finished(),
- QGeocodingManagerEngine::error(), QGeocodeReply::finished() or
- QGeocodeReply::error() with deleteLater().
+ this can be done in the slot connected to QGeoCodingManagerEngine::finished(),
+ QGeoCodingManagerEngine::error(), QGeoCodeReply::finished() or
+ QGeoCodeReply::error() with deleteLater().
*/
-QGeocodeReply *QGeocodingManagerEngine::geocode(const QString &address,
- int limit,
- int offset,
- const QGeoShape &bounds)
+QGeoCodeReply *QGeoCodingManagerEngine::geocode(const QString &address,
+ int limit,
+ int offset,
+ const QGeoShape &bounds)
{
Q_UNUSED(address)
Q_UNUSED(limit)
Q_UNUSED(offset)
Q_UNUSED(bounds)
- return new QGeocodeReply(QGeocodeReply::UnsupportedOptionError,
- QLatin1String("Searching is not supported by this service provider."), this);
+ return new QGeoCodeReply(QGeoCodeReply::UnsupportedOptionError,
+ QLatin1String("Searching is not supported by this service provider."), this);
}
/*!
@@ -281,7 +281,7 @@ QGeocodeReply *QGeocodingManagerEngine::geocode(const QString &address,
The locale used defaults to the system locale if this is not set.
*/
-void QGeocodingManagerEngine::setLocale(const QLocale &locale)
+void QGeoCodingManagerEngine::setLocale(const QLocale &locale)
{
d_ptr->locale = locale;
}
@@ -290,20 +290,20 @@ void QGeocodingManagerEngine::setLocale(const QLocale &locale)
Returns the locale used to hint to this geocoding manager about what
language to use for the results.
*/
-QLocale QGeocodingManagerEngine::locale() const
+QLocale QGeoCodingManagerEngine::locale() const
{
return d_ptr->locale;
}
/*!
-\fn void QGeocodingManagerEngine::finished(QGeocodeReply *reply)
+\fn void QGeoCodingManagerEngine::finished(QGeoCodeReply *reply)
This signal is emitted when \a reply has finished processing.
- If reply::error() equals QGeocodeReply::NoError then the processing
+ If reply::error() equals QGeoCodeReply::NoError then the processing
finished successfully.
- This signal and QGeocodeReply::finished() will be emitted at the same
+ This signal and QGeoCodeReply::finished() will be emitted at the same
time.
\note Do not delete the \a reply object in the slot connected to this
@@ -311,15 +311,15 @@ QLocale QGeocodingManagerEngine::locale() const
*/
/*!
-\fn void QGeocodingManagerEngine::error(QGeocodeReply *reply, QGeocodeReply::Error error, QString errorString)
+\fn void QGeoCodingManagerEngine::error(QGeoCodeReply *reply, QGeoCodeReply::Error error, QString errorString)
This signal is emitted when an error has been detected in the processing of
- \a reply. The QGeocodingManagerEngine::finished() signal will probably follow.
+ \a reply. The QGeoCodingManagerEngine::finished() signal will probably follow.
The error will be described by the error code \a error. If \a errorString is
not empty it will contain a textual description of the error.
- This signal and QGeocodeReply::error() will be emitted at the same time.
+ This signal and QGeoCodeReply::error() will be emitted at the same time.
\note Do not delete the \a reply object in the slot connected to this
signal. Use deleteLater() instead.
@@ -328,11 +328,11 @@ QLocale QGeocodingManagerEngine::locale() const
/*******************************************************************************
*******************************************************************************/
-QGeocodingManagerEnginePrivate::QGeocodingManagerEnginePrivate()
+QGeoCodingManagerEnginePrivate::QGeoCodingManagerEnginePrivate()
: managerVersion(-1)
{}
-QGeocodingManagerEnginePrivate::~QGeocodingManagerEnginePrivate()
+QGeoCodingManagerEnginePrivate::~QGeoCodingManagerEnginePrivate()
{
}
diff --git a/src/location/maps/qgeocodingmanagerengine.h b/src/location/maps/qgeocodingmanagerengine.h
index 5b727b48..aa2839a0 100644
--- a/src/location/maps/qgeocodingmanagerengine.h
+++ b/src/location/maps/qgeocodingmanagerengine.h
@@ -44,30 +44,30 @@
#include <QtCore/QObject>
#include <QtLocation/qlocationglobal.h>
-#include <QtLocation/QGeocodeReply>
+#include <QtLocation/QGeoCodeReply>
QT_BEGIN_NAMESPACE
class QGeoAddress;
class QGeoShape;
-class QGeocodingManagerEnginePrivate;
+class QGeoCodingManagerEnginePrivate;
-class Q_LOCATION_EXPORT QGeocodingManagerEngine : public QObject
+class Q_LOCATION_EXPORT QGeoCodingManagerEngine : public QObject
{
Q_OBJECT
public:
- QGeocodingManagerEngine(const QMap<QString, QVariant> &parameters, QObject *parent = 0);
- virtual ~QGeocodingManagerEngine();
+ QGeoCodingManagerEngine(const QMap<QString, QVariant> &parameters, QObject *parent = 0);
+ virtual ~QGeoCodingManagerEngine();
QString managerName() const;
int managerVersion() const;
- virtual QGeocodeReply *geocode(const QGeoAddress &address, const QGeoShape &bounds);
- virtual QGeocodeReply *geocode(const QString &address,
+ virtual QGeoCodeReply *geocode(const QGeoAddress &address, const QGeoShape &bounds);
+ virtual QGeoCodeReply *geocode(const QString &address,
int limit,
int offset,
const QGeoShape &bounds);
- virtual QGeocodeReply *reverseGeocode(const QGeoCoordinate &coordinate,
+ virtual QGeoCodeReply *reverseGeocode(const QGeoCoordinate &coordinate,
const QGeoShape &bounds);
@@ -75,15 +75,15 @@ public:
QLocale locale() const;
Q_SIGNALS:
- void finished(QGeocodeReply *reply);
- void error(QGeocodeReply *reply, QGeocodeReply::Error error, QString errorString = QString());
+ void finished(QGeoCodeReply *reply);
+ void error(QGeoCodeReply *reply, QGeoCodeReply::Error error, QString errorString = QString());
private:
void setManagerName(const QString &managerName);
void setManagerVersion(int managerVersion);
- QGeocodingManagerEnginePrivate *d_ptr;
- Q_DISABLE_COPY(QGeocodingManagerEngine)
+ QGeoCodingManagerEnginePrivate *d_ptr;
+ Q_DISABLE_COPY(QGeoCodingManagerEngine)
friend class QGeoServiceProvider;
friend class QGeoServiceProviderPrivate;
diff --git a/src/location/maps/qgeocodingmanagerengine_p.h b/src/location/maps/qgeocodingmanagerengine_p.h
index 40e727c4..c17272c6 100644
--- a/src/location/maps/qgeocodingmanagerengine_p.h
+++ b/src/location/maps/qgeocodingmanagerengine_p.h
@@ -60,11 +60,11 @@
QT_BEGIN_NAMESPACE
-class QGeocodingManagerEnginePrivate
+class QGeoCodingManagerEnginePrivate
{
public:
- QGeocodingManagerEnginePrivate();
- ~QGeocodingManagerEnginePrivate();
+ QGeoCodingManagerEnginePrivate();
+ ~QGeoCodingManagerEnginePrivate();
QString managerName;
int managerVersion;
@@ -72,7 +72,7 @@ public:
QLocale locale;
private:
- Q_DISABLE_COPY(QGeocodingManagerEnginePrivate)
+ Q_DISABLE_COPY(QGeoCodingManagerEnginePrivate)
};
QT_END_NAMESPACE
diff --git a/src/location/maps/qgeoserviceprovider.cpp b/src/location/maps/qgeoserviceprovider.cpp
index dcfe326c..c91ef8a5 100644
--- a/src/location/maps/qgeoserviceprovider.cpp
+++ b/src/location/maps/qgeoserviceprovider.cpp
@@ -312,7 +312,7 @@ Engine *createEngine(QGeoServiceProviderPrivate *d_ptr)
{
return 0;
}
-template <> QGeocodingManagerEngine *createEngine<QGeocodingManagerEngine>(QGeoServiceProviderPrivate *d_ptr)
+template <> QGeoCodingManagerEngine *createEngine<QGeoCodingManagerEngine>(QGeoServiceProviderPrivate *d_ptr)
{
return d_ptr->factory->createGeocodingManagerEngine(d_ptr->parameterMap, &(d_ptr->geocodeError), &(d_ptr->geocodeErrorString));
}
@@ -382,29 +382,29 @@ Manager *QGeoServiceProviderPrivate::manager(QGeoServiceProvider::Error *_error,
}
/*!
- Returns the QGeocodingManager made available by the service
+ Returns the QGeoCodingManager made available by the service
provider.
This function will return 0 if the service provider does not provide
any geocoding services.
- This function will attempt to construct a QGeocodingManager instance
+ This function will attempt to construct a QGeoCodingManager instance
when it is called for the first time. If the attempt is successful the
- QGeocodingManager will be cached, otherwise each call of this function
- will attempt to construct a QGeocodingManager instance until the
+ QGeoCodingManager will be cached, otherwise each call of this function
+ will attempt to construct a QGeoCodingManager instance until the
construction is successful.
- The QGeocodingManager is owned by this QGeoServiceProvider and should not
+ The QGeoCodingManager is owned by this QGeoServiceProvider and should not
be deleted separately. Users should assume that deleting the
QGeoServiceProvider renders the pointer returned by this method invalid.
After this function has been called, error() and errorString() will
report any errors which occurred during the construction of the
- QGeocodingManager.
+ QGeoCodingManager.
*/
-QGeocodingManager *QGeoServiceProvider::geocodingManager() const
+QGeoCodingManager *QGeoServiceProvider::geocodingManager() const
{
- return d_ptr->manager<QGeocodingManager, QGeocodingManagerEngine>(
+ return d_ptr->manager<QGeoCodingManager, QGeoCodingManagerEngine>(
&(d_ptr->geocodeError), &(d_ptr->geocodeErrorString),
&(d_ptr->geocodingManager));
}
diff --git a/src/location/maps/qgeoserviceprovider.h b/src/location/maps/qgeoserviceprovider.h
index 155aa196..b720b86a 100644
--- a/src/location/maps/qgeoserviceprovider.h
+++ b/src/location/maps/qgeoserviceprovider.h
@@ -51,11 +51,11 @@ QT_BEGIN_NAMESPACE
class QLocale;
class QStringList;
-class QGeocodingManager;
+class QGeoCodingManager;
class QGeoMappingManager;
class QGeoRoutingManager;
class QPlaceManager;
-class QGeocodingManagerEngine;
+class QGeoCodingManagerEngine;
class QGeoMappingManagerEngine;
class QGeoRoutingManagerEngine;
class QPlaceManagerEngine;
@@ -142,7 +142,7 @@ public:
MappingFeatures mappingFeatures() const;
PlacesFeatures placesFeatures() const;
- QGeocodingManager *geocodingManager() const;
+ QGeoCodingManager *geocodingManager() const;
QGeoMappingManager *mappingManager() const;
QGeoRoutingManager *routingManager() const;
QPlaceManager *placeManager() const;
diff --git a/src/location/maps/qgeoserviceprovider_p.h b/src/location/maps/qgeoserviceprovider_p.h
index 36a56f78..1ec19c89 100644
--- a/src/location/maps/qgeoserviceprovider_p.h
+++ b/src/location/maps/qgeoserviceprovider_p.h
@@ -62,7 +62,7 @@
QT_BEGIN_NAMESPACE
-class QGeocodingManager;
+class QGeoCodingManager;
class QGeoRoutingManager;
class QGeoMappingManager;
@@ -92,7 +92,7 @@ public:
bool experimental;
- QGeocodingManager *geocodingManager;
+ QGeoCodingManager *geocodingManager;
QGeoRoutingManager *routingManager;
QGeoMappingManager *mappingManager;
QPlaceManager *placeManager;
diff --git a/src/location/maps/qgeoserviceproviderfactory.cpp b/src/location/maps/qgeoserviceproviderfactory.cpp
index e12e3515..8fbfb3d7 100644
--- a/src/location/maps/qgeoserviceproviderfactory.cpp
+++ b/src/location/maps/qgeoserviceproviderfactory.cpp
@@ -66,7 +66,7 @@ Destroys this QGeoServiceProviderFactory instance.
*/
/*!
- Returns a new QGeocodingManagerEngine instance, initialized with \a
+ Returns a new QGeoCodingManagerEngine instance, initialized with \a
parameters, which implements the location geocoding functionality.
If \a error is not 0 it should be set to QGeoServiceProvider::NoError on
@@ -78,9 +78,9 @@ Destroys this QGeoServiceProviderFactory instance.
The default implementation returns 0, which causes a
QGeoServiceProvider::NotSupportedError in QGeoServiceProvider.
*/
-QGeocodingManagerEngine *QGeoServiceProviderFactory::createGeocodingManagerEngine(const QMap<QString, QVariant> &parameters,
- QGeoServiceProvider::Error *error,
- QString *errorString) const
+QGeoCodingManagerEngine *QGeoServiceProviderFactory::createGeocodingManagerEngine(const QMap<QString, QVariant> &parameters,
+ QGeoServiceProvider::Error *error,
+ QString *errorString) const
{
Q_UNUSED(parameters)
Q_UNUSED(error)
@@ -105,8 +105,8 @@ QGeocodingManagerEngine *QGeoServiceProviderFactory::createGeocodingManagerEngin
\internal
*/
QGeoMappingManagerEngine *QGeoServiceProviderFactory::createMappingManagerEngine(const QMap<QString, QVariant> &parameters,
- QGeoServiceProvider::Error *error,
- QString *errorString) const
+ QGeoServiceProvider::Error *error,
+ QString *errorString) const
{
Q_UNUSED(parameters)
Q_UNUSED(error)
@@ -129,8 +129,8 @@ QGeoMappingManagerEngine *QGeoServiceProviderFactory::createMappingManagerEngine
QGeoServiceProvider::NotSupportedError in QGeoServiceProvider.
*/
QGeoRoutingManagerEngine *QGeoServiceProviderFactory::createRoutingManagerEngine(const QMap<QString, QVariant> &parameters,
- QGeoServiceProvider::Error *error,
- QString *errorString) const
+ QGeoServiceProvider::Error *error,
+ QString *errorString) const
{
Q_UNUSED(parameters)
@@ -154,8 +154,8 @@ QGeoRoutingManagerEngine *QGeoServiceProviderFactory::createRoutingManagerEngine
QGeoServiceProvider::NotSupportedError in QGeoServiceProvider.
*/
QPlaceManagerEngine *QGeoServiceProviderFactory::createPlaceManagerEngine(const QMap<QString, QVariant> &parameters,
- QGeoServiceProvider::Error *error,
- QString *errorString) const
+ QGeoServiceProvider::Error *error,
+ QString *errorString) const
{
Q_UNUSED(parameters)
diff --git a/src/location/maps/qgeoserviceproviderfactory.h b/src/location/maps/qgeoserviceproviderfactory.h
index ff6ab471..28c27ef0 100644
--- a/src/location/maps/qgeoserviceproviderfactory.h
+++ b/src/location/maps/qgeoserviceproviderfactory.h
@@ -55,7 +55,7 @@ class Q_LOCATION_EXPORT QGeoServiceProviderFactory
public:
virtual ~QGeoServiceProviderFactory() {}
- virtual QGeocodingManagerEngine *createGeocodingManagerEngine(const QMap<QString, QVariant> &parameters,
+ virtual QGeoCodingManagerEngine *createGeocodingManagerEngine(const QMap<QString, QVariant> &parameters,
QGeoServiceProvider::Error *error,
QString *errorString) const;
virtual QGeoMappingManagerEngine *createMappingManagerEngine(const QMap<QString, QVariant> &parameters,
diff --git a/src/location/places/places.pri b/src/location/places/places.pri
index 4c3a0667..1a3796fc 100644
--- a/src/location/places/places.pri
+++ b/src/location/places/places.pri
@@ -19,7 +19,7 @@ PUBLIC_HEADERS += \
#result
places/qplacesearchresult.h \
places/qplaceresult.h \
- places/qproposedsearchresult.h \
+ places/qplaceproposedsearchresult.h \
#request classes
places/qplacecontentrequest.h \
places/qplacematchrequest.h \
@@ -47,7 +47,7 @@ PRIVATE_HEADERS += \
places/qplaceimage_p.h \
places/qplaceratings_p.h \
places/qplaceresult_p.h \
- places/qproposedsearchresult_p.h \
+ places/qplaceproposedsearchresult_p.h \
places/qplacereview_p.h \
places/qplacesupplier_p.h \
places/qplacesearchresult_p.h \
@@ -76,7 +76,7 @@ SOURCES += \
#result
places/qplacesearchresult.cpp \
places/qplaceresult.cpp \
- places/qproposedsearchresult.cpp \
+ places/qplaceproposedsearchresult.cpp \
#request classes
places/qplacecontentrequest.cpp \
places/qplacematchrequest.cpp \
diff --git a/src/location/places/qproposedsearchresult.cpp b/src/location/places/qplaceproposedsearchresult.cpp
index 94581b89..d2aaf5bb 100644
--- a/src/location/places/qproposedsearchresult.cpp
+++ b/src/location/places/qplaceproposedsearchresult.cpp
@@ -39,38 +39,38 @@
**
****************************************************************************/
-#include "qproposedsearchresult.h"
-#include "qproposedsearchresult_p.h"
+#include "qplaceproposedsearchresult.h"
+#include "qplaceproposedsearchresult_p.h"
QT_BEGIN_NAMESPACE
-QProposedSearchResultPrivate::QProposedSearchResultPrivate()
+QPlaceProposedSearchResultPrivate::QPlaceProposedSearchResultPrivate()
{
}
-QProposedSearchResultPrivate::QProposedSearchResultPrivate(const QProposedSearchResultPrivate &other)
+QPlaceProposedSearchResultPrivate::QPlaceProposedSearchResultPrivate(const QPlaceProposedSearchResultPrivate &other)
: QPlaceSearchResultPrivate(other), searchRequest(other.searchRequest)
{
}
-QProposedSearchResultPrivate::~QProposedSearchResultPrivate()
+QPlaceProposedSearchResultPrivate::~QPlaceProposedSearchResultPrivate()
{
}
-bool QProposedSearchResultPrivate::compare(const QPlaceSearchResultPrivate *other) const
+bool QPlaceProposedSearchResultPrivate::compare(const QPlaceSearchResultPrivate *other) const
{
- const QProposedSearchResultPrivate *od = static_cast<const QProposedSearchResultPrivate *>(other);
+ const QPlaceProposedSearchResultPrivate *od = static_cast<const QPlaceProposedSearchResultPrivate *>(other);
return QPlaceSearchResultPrivate::compare(other) && searchRequest == od->searchRequest;
}
/*!
- \class QProposedSearchResult
+ \class QPlaceProposedSearchResult
\inmodule QtLocation
\ingroup QtLocation-places
\ingroup QtLocation-places-data
\since Qt Location 5.2
- \brief The QProposedSearchResult class represents a search result containing a proposed search.
+ \brief The QPlaceProposedSearchResult class represents a search result containing a proposed search.
\sa QPlaceSearchResult
*/
@@ -78,43 +78,43 @@ bool QProposedSearchResultPrivate::compare(const QPlaceSearchResultPrivate *othe
/*!
Constructs a new proposed search result.
*/
-QProposedSearchResult::QProposedSearchResult()
-: QPlaceSearchResult(new QProposedSearchResultPrivate)
+QPlaceProposedSearchResult::QPlaceProposedSearchResult()
+: QPlaceSearchResult(new QPlaceProposedSearchResultPrivate)
{
}
/*!
- \fn QProposedSearchResult::QProposedSearchResult(const QPlaceSearchRequest &other)
+ \fn QPlaceProposedSearchResult::QPlaceProposedSearchResult(const QPlaceSearchRequest &other)
Contructs a copy of \a other if possible, otherwise constructs a default proposed search
result.
*/
-Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(QProposedSearchResult)
+Q_IMPLEMENT_SEARCHRESULT_COPY_CTOR(QPlaceProposedSearchResult)
-Q_IMPLEMENT_SEARCHRESULT_D_FUNC(QProposedSearchResult)
+Q_IMPLEMENT_SEARCHRESULT_D_FUNC(QPlaceProposedSearchResult)
/*!
Destroys the proposed search result.
*/
-QProposedSearchResult::~QProposedSearchResult()
+QPlaceProposedSearchResult::~QPlaceProposedSearchResult()
{
}
/*!
Returns a place search request that can be used to perform an additional proposed search.
*/
-QPlaceSearchRequest QProposedSearchResult::searchRequest() const
+QPlaceSearchRequest QPlaceProposedSearchResult::searchRequest() const
{
- Q_D(const QProposedSearchResult);
+ Q_D(const QPlaceProposedSearchResult);
return d->searchRequest;
}
/*!
Sets the proposed search request to \a request.
*/
-void QProposedSearchResult::setSearchRequest(const QPlaceSearchRequest &request)
+void QPlaceProposedSearchResult::setSearchRequest(const QPlaceSearchRequest &request)
{
- Q_D(QProposedSearchResult);
+ Q_D(QPlaceProposedSearchResult);
d->searchRequest = request;
}
diff --git a/src/location/places/qproposedsearchresult.h b/src/location/places/qplaceproposedsearchresult.h
index 8c937324..ff957b86 100644
--- a/src/location/places/qproposedsearchresult.h
+++ b/src/location/places/qplaceproposedsearchresult.h
@@ -46,29 +46,29 @@
QT_BEGIN_NAMESPACE
-class QProposedSearchResultPrivate;
+class QPlaceProposedSearchResultPrivate;
-class Q_LOCATION_EXPORT QProposedSearchResult : public QPlaceSearchResult
+class Q_LOCATION_EXPORT QPlaceProposedSearchResult : public QPlaceSearchResult
{
public:
- QProposedSearchResult();
+ QPlaceProposedSearchResult();
#ifdef Q_QDOC
- QProposedSearchResult(const QPlaceSearchRequest &other);
+ QPlaceProposedSearchResult(const QPlaceSearchRequest &other);
#else
- Q_DECLARE_SEARCHRESULT_COPY_CTOR(QProposedSearchResult)
+ Q_DECLARE_SEARCHRESULT_COPY_CTOR(QPlaceProposedSearchResult)
#endif
- ~QProposedSearchResult();
+ ~QPlaceProposedSearchResult();
QPlaceSearchRequest searchRequest() const;
void setSearchRequest(const QPlaceSearchRequest &request);
private:
- Q_DECLARE_SEARCHRESULT_D_FUNC(QProposedSearchResult)
+ Q_DECLARE_SEARCHRESULT_D_FUNC(QPlaceProposedSearchResult)
};
-Q_DECLARE_TYPEINFO(QProposedSearchResult, Q_MOVABLE_TYPE);
+Q_DECLARE_TYPEINFO(QPlaceProposedSearchResult, Q_MOVABLE_TYPE);
QT_END_NAMESPACE
diff --git a/src/location/places/qproposedsearchresult_p.h b/src/location/places/qplaceproposedsearchresult_p.h
index 37df3447..2241341b 100644
--- a/src/location/places/qproposedsearchresult_p.h
+++ b/src/location/places/qplaceproposedsearchresult_p.h
@@ -46,17 +46,17 @@
QT_BEGIN_NAMESPACE
-class QProposedSearchResultPrivate : public QPlaceSearchResultPrivate
+class QPlaceProposedSearchResultPrivate : public QPlaceSearchResultPrivate
{
public:
- QProposedSearchResultPrivate();
- QProposedSearchResultPrivate(const QProposedSearchResultPrivate &other);
+ QPlaceProposedSearchResultPrivate();
+ QPlaceProposedSearchResultPrivate(const QPlaceProposedSearchResultPrivate &other);
- ~QProposedSearchResultPrivate();
+ ~QPlaceProposedSearchResultPrivate();
bool compare(const QPlaceSearchResultPrivate *other) const Q_DECL_OVERRIDE;
- Q_DEFINE_SEARCHRESULT_PRIVATE_HELPER(QProposedSearchResult, QPlaceSearchResult::ProposedSearchResult)
+ Q_DEFINE_SEARCHRESULT_PRIVATE_HELPER(QPlaceProposedSearchResult, QPlaceSearchResult::ProposedSearchResult)
QPlaceSearchRequest searchRequest;
};