//*****************************************************************************
void ApplicationWindow::creditUrl()
//*****************************************************************************
{
// target url
QUrl url
("http://api.smsbox.fr/index.php?");
url.addQueryItem("login", iniGet( "Login" ));
url.addQueryItem("pass", iniGet( "Password" ));
url.addQueryItem("action", iniGet( "Action" ));
connect(http, SIGNAL(done(bool)), this, SLOT(defineSMSCredit(bool)));
// remember to set the host
http->setHost(url.host());
// the resulting data will be stored in the buffer
http->get(url.toString(), buffer);
}
//*****************************************************************************
void ApplicationWindow::defineSMSCredit( bool error )
//*****************************************************************************
{
// handle http reply for credit request
handleSMSCredit( error );
// read destin undefined from ini file
qS = iniGet( "TxtDestinataires" ) + " " + iniGet( "TxtIndefini" );
appendRow( qS );
// connect
connect( pbDestin, SIGNAL( clicked() ), this, SLOT( destinataires() ) );
connect( pbArchiv, SIGNAL( clicked() ), this, SLOT( archives() ) );
connect( pbConfig, SIGNAL( clicked() ), this, SLOT( config() ) );
connect( pbApropos, SIGNAL( clicked() ), this, SLOT( apropos() ) );
connect( pbEnvoyer, SIGNAL( clicked() ), this, SLOT( envoyer() ) );
connect( qMessage, SIGNAL( textChanged() ), this, SLOT( messageChanged() ) );
connect( pbClose, SIGNAL( clicked() ), this, SLOT( hide() ) );
return;
}
//*****************************************************************************
void ApplicationWindow::destinataires()
//*****************************************************************************
{
QMessageBox::warning( this,
"Mutant",
"enter destinataires" );
// target url
QUrl url
("http://api.smsbox.fr/index.php?");
url.addQueryItem("login", iniGet( "Login" ));
url.addQueryItem("pass", iniGet( "Password" ));
url.addQueryItem("action", iniGet( "Action" ));
connect(http, SIGNAL(done(bool)), this, SLOT(amazon_MainPage(bool)));
// remember to set the host
http->setHost(url.host());
// the resulting data will be stored in the buffer
http->get(url.toString(), buffer);
//*****************************************************************************
void ApplicationWindow::creditUrl()
//*****************************************************************************
{
// target url
QUrl url("http://api.smsbox.fr/index.php?");
url.addQueryItem("login", iniGet( "Login" ));
url.addQueryItem("pass", iniGet( "Password" ));
url.addQueryItem("action", iniGet( "Action" ));
http = new QHttp(this);
connect(http, SIGNAL(done(bool)), this, SLOT(defineSMSCredit(bool)));
// remember to set the host
http->setHost(url.host());
// the resulting data will be stored in the buffer
buffer = new QBuffer(this);
http->get(url.toString(), buffer);
}
//*****************************************************************************
void ApplicationWindow::defineSMSCredit( bool error )
//*****************************************************************************
{
// handle http reply for credit request
handleSMSCredit( error );
// read destin undefined from ini file
qS = iniGet( "TxtDestinataires" ) + " " + iniGet( "TxtIndefini" );
appendRow( qS );
// connect
connect( pbDestin, SIGNAL( clicked() ), this, SLOT( destinataires() ) );
connect( pbArchiv, SIGNAL( clicked() ), this, SLOT( archives() ) );
connect( pbConfig, SIGNAL( clicked() ), this, SLOT( config() ) );
connect( pbApropos, SIGNAL( clicked() ), this, SLOT( apropos() ) );
connect( pbEnvoyer, SIGNAL( clicked() ), this, SLOT( envoyer() ) );
connect( qMessage, SIGNAL( textChanged() ), this, SLOT( messageChanged() ) );
connect( pbClose, SIGNAL( clicked() ), this, SLOT( hide() ) );
return;
}
//*****************************************************************************
void ApplicationWindow::destinataires()
//*****************************************************************************
{
QMessageBox::warning( this, "Mutant", "enter destinataires" );
// target url
QUrl url("http://api.smsbox.fr/index.php?");
url.addQueryItem("login", iniGet( "Login" ));
url.addQueryItem("pass", iniGet( "Password" ));
url.addQueryItem("action", iniGet( "Action" ));
http = new QHttp(this);
connect(http, SIGNAL(done(bool)), this, SLOT(amazon_MainPage(bool)));
// remember to set the host
http->setHost(url.host());
// the resulting data will be stored in the buffer
buffer = new QBuffer(this);
http->get(url.toString(), buffer);
To copy to clipboard, switch view to plain text mode
Bookmarks