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

The TelegrammDownloadFile class prepare link to download telegramm files. More...

#include <telegrammdownloadfile.h>

Public Member Functions

 TelegrammDownloadFile (const QString &filePath)
 
QString baseAddress () const override
 baseAddress This method return base domain of remote server.
 
- Public Member Functions inherited from qTbot::TelegramSingleRquest
 TelegramSingleRquest (const QString &request, const QMap< QString, QVariant > &args)
 TelegramSingleRquest This main constructor of the single requests.
 
 TelegramSingleRquest (const QString &request)
 TelegramSingleRquest This main constructor of the single requests.
 
QString baseAddress () const override
 baseAddress This method return base domain of remote server.
 
RequestMethod method () const override
 method returns method of the request.
 
- Public Member Functions inherited from qTbot::iRequest
 iRequest ()
 
virtual QString makeUpload () const
 makeUpload This method prepare data to upload;
 
const QString & request () const
 request return current requests commnad.
 
void setRequest (const QString &newRequest)
 setRequest sets custom requests commnad
 
const QMap< QString, QVariant > & args () const
 args This method returns a current list of arguments
 
void addArg (const QString &key, const QVariant &val)
 addArg This method push new arg, to arguments list
 
void setArgs (const QMap< QString, QVariant > &newArgs)
 setArgs For the some requests list of arguments posible to build only after constructor.
 
QString argsToUrl () const
 argsToUrl This method converts the arguments to a URL string.
 
QSharedPointer< QHttpMultiPart > argsToMultipartFormData () const
 argsToMultipartFormData This method generates multipart/form-data request data.
 

Additional Inherited Members

- Public Types inherited from qTbot::iRequest
enum  RequestMethod { Get , Post , Upload }
 RequestMethod Tgis islist of supported requests types of the requests. More...
 

Detailed Description

The TelegrammDownloadFile class prepare link to download telegramm files.

Definition at line 19 of file telegrammdownloadfile.h.

Inheritance diagram for qTbot::TelegrammDownloadFile:
Inheritance graph
Collaboration diagram for qTbot::TelegrammDownloadFile:
Collaboration graph

Constructor & Destructor Documentation

◆ TelegrammDownloadFile()

qTbot::TelegrammDownloadFile::TelegrammDownloadFile ( const QString &  filePath)

Definition at line 12 of file telegrammdownloadfile.cpp.

Member Function Documentation

◆ baseAddress()

QString qTbot::TelegrammDownloadFile::baseAddress ( ) const
overridevirtual

baseAddress This method return base domain of remote server.

Returns
base domain name of remoute server.

Implements qTbot::iRequest.

Definition at line 17 of file telegrammdownloadfile.cpp.


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