Skip to content

Commit

Permalink
resolved some API warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
benapetr committed Oct 30, 2014
1 parent b71529e commit 9388615
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions huggle/apiquery.cpp
Expand Up @@ -33,6 +33,8 @@ void ApiQuery::ConstructUrl()
}
if (this->Parameters.length() > 0)
this->URL += "&" + this->Parameters;
if (this->IsContinuous)
this->URL += "&rawcontinue=1";
switch (this->RequestFormat)
{
case XML:
Expand All @@ -59,6 +61,8 @@ QString ApiQuery::ConstructParameterLessUrl()
url = Configuration::GetProjectScriptURL(this->GetSite()) + "api.php?action=" + this->ActionPart;
else
url = Configuration::GetURLProtocolPrefix(this->GetSite()) + this->OverrideWiki + "api.php?action=" + this->ActionPart;
if (this->IsContinuous)
url += "&rawcontinue=1";
switch (this->RequestFormat)
{
case XML:
Expand Down Expand Up @@ -214,6 +218,7 @@ void ApiQuery::SetAction(const Action action)
return;
case ActionQuery:
this->ActionPart = "query";
this->IsContinuous = true;
this->EnforceLogin = false;
return;
case ActionLogin:
Expand Down
1 change: 1 addition & 0 deletions huggle/apiquery.hpp
Expand Up @@ -85,6 +85,7 @@ namespace Huggle
bool UsingPOST = false;
//! This is a requested format in which the result should be written in
Format RequestFormat;
bool IsContinuous = false;
//! This is an url of api request, you probably don't want to change it unless
//! you want to construct whole api request yourself
QString URL = "";
Expand Down

0 comments on commit 9388615

Please sign in to comment.