11 #include "wikisite.hpp"
12 using namespace Huggle;
14 WikiSite::WikiSite(
const WikiSite &w)
22 this->SupportOAuth = w.SupportOAuth;
35 this->SupportOAuth = w->SupportOAuth;
40 WikiSite::WikiSite(QString name, QString url)
46 this->
OAuthURL = url +
"w/index.php?title=Special:MWOAuth";
48 this->SupportOAuth =
true;
53 WikiSite::WikiSite(QString name, QString url, QString path, QString script,
bool https,
bool oauth, QString channel, QString wl)
59 this->
OAuthURL = url +
"w/index.php?title=Special:MWOAuth";
62 this->SupportOAuth = oauth;
QString Name
Name of wiki, used by huggle only.
QString LongPath
long article path (wiki/ for example on english wp)
QString IRCChannel
IRC channel of this site, if it doesn't have a channel leave it empty.
bool SupportHttps
Whether the site supports the ssl.
QString ScriptPath
short path
QString OAuthURL
URL of oauth handler for this site.
QString URL
URL of wiki, no http prefix must be present.