Re-enable register button in configuration panel ui

Todo: to send a popup if the registration has failed or connected
Todo: use the account arg on the server
This commit is contained in:
yanmorin
2006-01-20 16:37:19 +00:00
parent 0133bcbf99
commit 40a10d4a8f
5 changed files with 6 additions and 7 deletions

View File

@ -310,10 +310,10 @@
</spacer>
<widget class="QPushButton">
<property name="name">
<cstring>Register</cstring>
<cstring>buttonRegister</cstring>
</property>
<property name="enabled">
<bool>false</bool>
<bool>true</bool>
</property>
<property name="text">
<string>Register</string>
@ -1439,7 +1439,7 @@ Montreal, Quebec H2T 1S6&lt;/p&gt;</string>
<tabstop>password</tabstop>
<tabstop>sipproxy</tabstop>
<tabstop>autoregister</tabstop>
<tabstop>Register</tabstop>
<tabstop>buttonRegister</tabstop>
<tabstop>buttonOk</tabstop>
<tabstop>buttonCancel</tabstop>
<tabstop>Tab_Signalisations</tabstop>

View File

@ -107,7 +107,7 @@ void ConfigurationPanel::init()
"About",
Menu);
QObject::connect(Register, SIGNAL(clicked()),
QObject::connect(buttonRegister, SIGNAL(clicked()),
this, SIGNAL(needRegister()));
}

View File

@ -130,7 +130,7 @@ PhoneLineManagerImpl::registerToServer()
isInitialized();
Request *r = mSession->registerToServer();
QObject::connect(r, SIGNAL(success()),
QObject::connect(r, SIGNAL(success(QString, QString)),
this, SIGNAL(registered()));
}

View File

@ -57,6 +57,7 @@ SFLPhoneApp::SFLPhoneApp(int argc, char **argv)
Requester::instance().registerObject< Request >(QString("stoptone"));
Requester::instance().registerObject< Request >(QString("playdtmf"));
Requester::instance().registerObject< Request >(QString("register"));
Requester::instance().registerObject< ConfigGetAllRequest >(QString("configgetall"));
Requester::instance().registerObject< ConfigSaveRequest >(QString("configsave"));
Requester::instance().registerObject< StopRequest >(QString("stop"));

View File

@ -21,8 +21,6 @@
#ifndef SFLPHONE_GLOBAL_H
#define SFLPHONE_GLOBAL_H
#define DEBUG
#define NB_PHONELINES 6
#define PROGNAME "SFLPhone"
#define VERSION "0.4.2"