forked from GlobalBoost/GlobalBoost-Y
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GlobalBoost
committed
Nov 12, 2015
1 parent
e9ad512
commit 69e3d11
Showing
15 changed files
with
504 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#include "buydomains.h" | ||
#include "ui_buydomains.h" | ||
|
||
#include "clientmodel.h" | ||
#include "walletmodel.h" | ||
#include "bitcoinunits.h" | ||
#include "optionsmodel.h" | ||
#include "transactiontablemodel.h" | ||
#include "transactionfilterproxy.h" | ||
#include "guiutil.h" | ||
#include "guiconstants.h" | ||
|
||
#include <QAbstractItemDelegate> | ||
#include <QPainter> | ||
|
||
#define DECORATION_SIZE 64 | ||
|
||
|
||
#include "buydomains.moc" | ||
|
||
BuyDomains::BuyDomains(QWidget *parent) : | ||
QWidget(parent), | ||
ui(new Ui::BuyDomains), | ||
walletModel(0), | ||
clientModel(0) | ||
{ | ||
ui->setupUi(this); | ||
nam = new QNetworkAccessManager(this); | ||
ui->webViewBuyDomains->setHidden(true); | ||
connect(nam,SIGNAL(finished(QNetworkReply*)),this,SLOT(finished(QNetworkReply*))); | ||
connect(ui->submitButton,SIGNAL(clicked()),this,SLOT(GetHttpContent())); | ||
} | ||
|
||
BuyDomains::~BuyDomains() | ||
{ | ||
delete ui; | ||
} | ||
|
||
void BuyDomains::setClientModel(ClientModel *model) | ||
{ | ||
this->clientModel = model; | ||
if(model) | ||
{ | ||
} | ||
} | ||
|
||
void BuyDomains::setWalletModel(WalletModel *model) | ||
{ | ||
this->walletModel = model; | ||
} | ||
|
||
void BuyDomains::finished(QNetworkReply *reply) { | ||
ui->webViewBuyDomains->setHidden(false); | ||
|
||
} | ||
|
||
void BuyDomains::GetHttpContent() { | ||
ui->webViewBuyDomains->setHidden(false); | ||
ui->submitButton->setHidden(true); | ||
|
||
QString url = "https://globalboo.st/domaintcheck.php"; | ||
|
||
ui->webViewBuyDomains->load(QNetworkRequest(url)); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#ifndef BUYDOMAINS_H | ||
#define BUYDOMAINS_H | ||
|
||
#include <QWidget> | ||
#include <QNetworkAccessManager> | ||
#include <QNetworkReply> | ||
#include <QByteArray> | ||
#include <QTimer> | ||
|
||
namespace Ui { | ||
class BuyDomains; | ||
} | ||
class ClientModel; | ||
class WalletModel; | ||
|
||
QT_BEGIN_NAMESPACE | ||
class QModelIndex; | ||
QT_END_NAMESPACE | ||
|
||
/** BuyDomains page widget */ | ||
class BuyDomains : public QWidget | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit BuyDomains(QWidget *parent = 0); | ||
~BuyDomains(); | ||
|
||
void setClientModel(ClientModel *clientModel); | ||
void setWalletModel(WalletModel *walletModel); | ||
|
||
public slots: | ||
|
||
signals: | ||
|
||
private: | ||
Ui::BuyDomains *ui; | ||
ClientModel *clientModel; | ||
WalletModel *walletModel; | ||
|
||
QNetworkAccessManager *nam; | ||
|
||
private slots: | ||
void finished(QNetworkReply *reply); | ||
void GetHttpContent(); | ||
}; | ||
|
||
#endif // BuyDomains_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
#include "buyphonenumbers.h" | ||
#include "ui_buyphonenumbers.h" | ||
|
||
#include "clientmodel.h" | ||
#include "walletmodel.h" | ||
#include "bitcoinunits.h" | ||
#include "optionsmodel.h" | ||
#include "transactiontablemodel.h" | ||
#include "transactionfilterproxy.h" | ||
#include "guiutil.h" | ||
#include "guiconstants.h" | ||
|
||
#include <QAbstractItemDelegate> | ||
#include <QPainter> | ||
|
||
#define DECORATION_SIZE 64 | ||
|
||
|
||
#include "buyphonenumbers.moc" | ||
|
||
BuyPhoneNumbers::BuyPhoneNumbers(QWidget *parent) : | ||
QWidget(parent), | ||
ui(new Ui::BuyPhoneNumbers), | ||
walletModel(0), | ||
clientModel(0) | ||
{ | ||
ui->setupUi(this); | ||
nam = new QNetworkAccessManager(this); | ||
ui->webViewBuyPhoneNumbers->setHidden(true); | ||
connect(nam,SIGNAL(finished(QNetworkReply*)),this,SLOT(finished(QNetworkReply*))); | ||
connect(ui->submitButton,SIGNAL(clicked()),this,SLOT(GetHttpContent())); | ||
} | ||
|
||
BuyPhoneNumbers::~BuyPhoneNumbers() | ||
{ | ||
delete ui; | ||
} | ||
|
||
void BuyPhoneNumbers::setClientModel(ClientModel *model) | ||
{ | ||
this->clientModel = model; | ||
if(model) | ||
{ | ||
} | ||
} | ||
|
||
void BuyPhoneNumbers::setWalletModel(WalletModel *model) | ||
{ | ||
this->walletModel = model; | ||
} | ||
|
||
void BuyPhoneNumbers::finished(QNetworkReply *reply) { | ||
ui->webViewBuyPhoneNumbers->setHidden(false); | ||
|
||
} | ||
|
||
void BuyPhoneNumbers::GetHttpContent() { | ||
ui->webViewBuyPhoneNumbers->setHidden(false); | ||
ui->submitButton->setHidden(true); | ||
|
||
QString url = "https://dev.globalboo.st/#/configuration"; | ||
|
||
ui->webViewBuyPhoneNumbers->load(QNetworkRequest(url)); | ||
|
||
} |
Oops, something went wrong.