qTbot 0.89.ee6949a
qTbot is base back end library for your c++ Qt projects.
qTbot::TelegramLocation Class Reference

The TelegramLocation class just simple struct with latitude and longitude. More...

#include <telegramlocation.h>

Public Member Functions

 TelegramLocation ()
 
 TelegramLocation (const QJsonObject &jsonObject)
 Constructs a location object from a JSON object.
 
double latitude () const
 latitude is float value of latitude
 
double longitude () const
 longitude is float value of longitude
 
QPointF toQPoint () const
 toQPoint This method convert location data to general qt class.
 
- Public Member Functions inherited from qTbot::IJsonBasedObject
 IJsonBasedObject ()
 
 IJsonBasedObject (const QJsonObject &newRawJson)
 
const QJsonObject & rawJson () const
 rawJson Telegram use rest api with json objects. So all received messages will be parsed in to jsobject.
 
virtual void setRawJson (const QJsonObject &newRawJson)
 setRawJson this method convert jsobject into telegram message.
 

Detailed Description

The TelegramLocation class just simple struct with latitude and longitude.

Definition at line 19 of file telegramlocation.h.

Inheritance diagram for qTbot::TelegramLocation:
Inheritance graph
Collaboration diagram for qTbot::TelegramLocation:
Collaboration graph

Constructor & Destructor Documentation

◆ TelegramLocation() [1/2]

qTbot::TelegramLocation::TelegramLocation ( )

Definition at line 13 of file telegramlocation.cpp.

◆ TelegramLocation() [2/2]

qTbot::TelegramLocation::TelegramLocation ( const QJsonObject &  jsonObject)

Constructs a location object from a JSON object.

Parameters
jsonObjectThe JSON object containing photo data.

Definition at line 18 of file telegramlocation.cpp.

Member Function Documentation

◆ latitude()

double qTbot::TelegramLocation::latitude ( ) const

latitude is float value of latitude

Returns
float value of latitude

Definition at line 23 of file telegramlocation.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ longitude()

double qTbot::TelegramLocation::longitude ( ) const

longitude is float value of longitude

Returns
float value of longitude

Definition at line 28 of file telegramlocation.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toQPoint()

QPointF qTbot::TelegramLocation::toQPoint ( ) const

toQPoint This method convert location data to general qt class.

Returns
location as a qt point

Definition at line 33 of file telegramlocation.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: