New upstream version 24.0.1+dfsg1
This commit is contained in:
parent
b14f9eae6d
commit
5a730d6ec3
842 changed files with 42245 additions and 33385 deletions
|
|
@ -38,38 +38,34 @@ signals:
|
|||
void Result(const QString &text, const QString &error);
|
||||
|
||||
public:
|
||||
inline RemoteTextThread(
|
||||
std::string url_,
|
||||
std::string contentType_ = std::string(),
|
||||
std::string postData_ = std::string(),
|
||||
int timeoutSec_ = 0)
|
||||
: url (url_),
|
||||
contentType (contentType_),
|
||||
postData (postData_),
|
||||
timeoutSec (timeoutSec_)
|
||||
{}
|
||||
inline RemoteTextThread(std::string url_,
|
||||
std::string contentType_ = std::string(),
|
||||
std::string postData_ = std::string(),
|
||||
int timeoutSec_ = 0)
|
||||
: url(url_),
|
||||
contentType(contentType_),
|
||||
postData(postData_),
|
||||
timeoutSec(timeoutSec_)
|
||||
{
|
||||
}
|
||||
|
||||
inline RemoteTextThread(
|
||||
std::string url_,
|
||||
std::vector<std::string> &&extraHeaders_,
|
||||
std::string contentType_ = std::string(),
|
||||
std::string postData_ = std::string(),
|
||||
int timeoutSec_ = 0)
|
||||
: url (url_),
|
||||
contentType (contentType_),
|
||||
postData (postData_),
|
||||
extraHeaders (std::move(extraHeaders_)),
|
||||
timeoutSec (timeoutSec_)
|
||||
{}
|
||||
inline RemoteTextThread(std::string url_,
|
||||
std::vector<std::string> &&extraHeaders_,
|
||||
std::string contentType_ = std::string(),
|
||||
std::string postData_ = std::string(),
|
||||
int timeoutSec_ = 0)
|
||||
: url(url_),
|
||||
contentType(contentType_),
|
||||
postData(postData_),
|
||||
extraHeaders(std::move(extraHeaders_)),
|
||||
timeoutSec(timeoutSec_)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
bool GetRemoteFile(
|
||||
const char *url,
|
||||
std::string &str,
|
||||
std::string &error,
|
||||
long *responseCode = nullptr,
|
||||
const char *contentType = nullptr,
|
||||
const char *url, std::string &str, std::string &error,
|
||||
long *responseCode = nullptr, const char *contentType = nullptr,
|
||||
const char *postData = nullptr,
|
||||
std::vector<std::string> extraHeaders = std::vector<std::string>(),
|
||||
std::string *signature = nullptr,
|
||||
int timeoutSec = 0);
|
||||
std::string *signature = nullptr, int timeoutSec = 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue