diff --git a/src/gui/qt/ConfigurationPanel.ui b/src/gui/qt/ConfigurationPanel.ui index ced355afca958bfa156d9a880a85b0346cd1ad72..81f81c26c421cba54ee8680ab1fc9dafa36e43c1 100644 --- a/src/gui/qt/ConfigurationPanel.ui +++ b/src/gui/qt/ConfigurationPanel.ui @@ -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</p></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> diff --git a/src/gui/qt/ConfigurationPanel.ui.h b/src/gui/qt/ConfigurationPanel.ui.h index 1500e56beedee4c18975ea199de50cf4f7b6be92..47708df74832503e8a9d1443e5292fa0dde65b4d 100644 --- a/src/gui/qt/ConfigurationPanel.ui.h +++ b/src/gui/qt/ConfigurationPanel.ui.h @@ -107,7 +107,7 @@ void ConfigurationPanel::init() "About", Menu); - QObject::connect(Register, SIGNAL(clicked()), + QObject::connect(buttonRegister, SIGNAL(clicked()), this, SIGNAL(needRegister())); } diff --git a/src/gui/qt/PhoneLineManagerImpl.cpp b/src/gui/qt/PhoneLineManagerImpl.cpp index e034c9ec8749146571c50f9a530ced174368b151..5feeaad2dca5fadcdc7b13f76857cbf17f9e55c0 100644 --- a/src/gui/qt/PhoneLineManagerImpl.cpp +++ b/src/gui/qt/PhoneLineManagerImpl.cpp @@ -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())); } diff --git a/src/gui/qt/SFLPhoneApp.cpp b/src/gui/qt/SFLPhoneApp.cpp index 4d34156f6afd9970104148b65d1a71cebdc59a76..c72e60cf0654db4d5f87dd3c58bd0d2905e014f0 100644 --- a/src/gui/qt/SFLPhoneApp.cpp +++ b/src/gui/qt/SFLPhoneApp.cpp @@ -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")); diff --git a/src/gui/qt/globals.h b/src/gui/qt/globals.h index 1d96f222ad615f1d3e3a215c8ae81173d8c94c8b..6d446339806df99f15f6c0c004cf1cdcbe6656fc 100644 --- a/src/gui/qt/globals.h +++ b/src/gui/qt/globals.h @@ -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"