Skip to content
Snippets Groups Projects
Commit 40a10d4a authored by yanmorin's avatar yanmorin
Browse files

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
parent 0133bcbf
Branches
Tags
No related merge requests found
......@@ -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>
......
......@@ -107,7 +107,7 @@ void ConfigurationPanel::init()
"About",
Menu);
QObject::connect(Register, SIGNAL(clicked()),
QObject::connect(buttonRegister, SIGNAL(clicked()),
this, SIGNAL(needRegister()));
}
......
......@@ -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()));
}
......
......@@ -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"));
......
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment