void vvMainWindow::show(){
vvMainWindowBase::show();
- vvRegisterForm* registerForm = new vvRegisterForm(QUrl("http://localhost/vvregister/write.php"));
+ vvRegisterForm* registerForm = new vvRegisterForm(QUrl("http://localhost/vvregister/write.php"), getVVSettingsPath(), getSettingsOptionFormat());
if(registerForm->canPush()){
registerForm->show();
registerForm->acquitPushed();//too bad if there is not internet connection anymore.
#include "vvCommon.h"
#include "vvUtils.h"
-vvRegisterForm::vvRegisterForm(QUrl url):url(url), settings(getVVSettingsPath(), getSettingsOptionFormat()){
+vvRegisterForm::vvRegisterForm(QUrl url, QString path, QSettings::Format format):url(url), settings(path, format){
manager = new QNetworkAccessManager(this);
setupUi(this);
}
Q_OBJECT
public:
- vvRegisterForm(QUrl url);
+ vvRegisterForm(QUrl url, QString path, QSettings::Format format);
void sendData();
~vvRegisterForm() {}
virtual bool canPush();