LocationDialogLite
#include <locationdialoglite.h>
Public Types | |
enum | CityOperation { CITY_ADD , CITY_UPDATE , CITY_REMOVE } |
Properties | |
QString | currentLocation |
int | currLocIndex |
QStringList | DSTRules |
QStringList | TZList |
Properties inherited from QObject | |
objectName | |
Signals | |
void | currentLocationChanged (QString) |
void | currLocIndexChanged (int) |
void | DSTRulesChanged (QStringList) |
void | newNameFromCoordinates (QString city, QString region, QString country) |
void | TZListChanged (QStringList) |
Public Slots | |
void | initCityList () |
void | processLocationNameData (QNetworkReply *rep) |
void | updateCurrentLocation () |
Detailed Description
A backend of location dialog declared in QML.
- Version
- 1.0
Definition at line 28 of file locationdialoglite.h.
Member Enumeration Documentation
◆ CityOperation
enum LocationDialogLite::CityOperation |
Definition at line 37 of file locationdialoglite.h.
Property Documentation
◆ currentLocation
|
readwrite |
Definition at line 32 of file locationdialoglite.h.
◆ currLocIndex
int LocationDialogLite::currLocIndex |
Definition at line 35 of file locationdialoglite.h.
◆ DSTRules
QStringList LocationDialogLite::DSTRules |
Definition at line 34 of file locationdialoglite.h.
◆ TZList
QStringList LocationDialogLite::TZList |
Definition at line 33 of file locationdialoglite.h.
Constructor & Destructor Documentation
◆ LocationDialogLite()
LocationDialogLite::LocationDialogLite | ( | ) |
Definition at line 28 of file locationdialoglite.cpp.
Member Function Documentation
◆ addCity()
bool LocationDialogLite::addCity | ( | const QString & | city, |
const QString & | province, | ||
const QString & | country, | ||
const QString & | latitude, | ||
const QString & | longitude, | ||
const QString & | TimeZoneString, | ||
const QString & | TZRule ) |
Definition at line 153 of file locationdialoglite.cpp.
◆ checkLongLat()
checkLongLat checks whether given longitude and latitude are valid
Definition at line 460 of file locationdialoglite.cpp.
◆ createDms()
TODO - port dmsBox to QML.
createDms creates dms from string
- Parameters
-
degree string that should be converted to degree deg if true, the value is in degrees. Otherwise, it is in hours. ok
- Returns
- angle in dms
Definition at line 535 of file locationdialoglite.cpp.
◆ deleteCity()
Definition at line 226 of file locationdialoglite.cpp.
◆ editCity()
bool LocationDialogLite::editCity | ( | const QString & | fullName, |
const QString & | city, | ||
const QString & | province, | ||
const QString & | country, | ||
const QString & | latitude, | ||
const QString & | longitude, | ||
const QString & | TimeZoneString, | ||
const QString & | TZRule ) |
Definition at line 254 of file locationdialoglite.cpp.
◆ filterCity()
void LocationDialogLite::filterCity | ( | const QString & | city, |
const QString & | province, | ||
const QString & | country ) |
Definition at line 125 of file locationdialoglite.cpp.
◆ getCity()
Definition at line 309 of file locationdialoglite.cpp.
◆ getCountry()
Definition at line 331 of file locationdialoglite.cpp.
◆ getCurrentLocation()
|
inline |
Definition at line 44 of file locationdialoglite.h.
◆ getDST()
Definition at line 374 of file locationdialoglite.cpp.
◆ getLatitude()
Definition at line 342 of file locationdialoglite.cpp.
◆ getLongitude()
Definition at line 353 of file locationdialoglite.cpp.
◆ getNameFromCoordinates()
void LocationDialogLite::getNameFromCoordinates | ( | double | latitude, |
double | longitude ) |
Retrieve name of location by latitude and longitude.
Name will be sent with sendNameFromCoordinates signal
Definition at line 43 of file locationdialoglite.cpp.
◆ getProvince()
Definition at line 320 of file locationdialoglite.cpp.
◆ getTZ()
Definition at line 364 of file locationdialoglite.cpp.
◆ initCityList
|
slot |
Definition at line 94 of file locationdialoglite.cpp.
◆ isDuplicate()
bool LocationDialogLite::isDuplicate | ( | const QString & | city, |
const QString & | province, | ||
const QString & | country ) |
Definition at line 390 of file locationdialoglite.cpp.
◆ isReadOnly()
Definition at line 411 of file locationdialoglite.cpp.
◆ processLocationNameData
|
slot |
Definition at line 59 of file locationdialoglite.cpp.
◆ setCurrentLocation()
Definition at line 547 of file locationdialoglite.cpp.
◆ setLocation()
Definition at line 482 of file locationdialoglite.cpp.
◆ updateCurrentLocation
|
slot |
Definition at line 556 of file locationdialoglite.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.