Skip to content
Snippets Groups Projects
Commit e859631c authored by jpbl's avatar jpbl
Browse files

we use playtone now

parent db7f1ae1
No related branches found
No related tags found
No related merge requests found
...@@ -23,7 +23,6 @@ PhoneLineButton::PhoneLineButton(const QPixmap &released, ...@@ -23,7 +23,6 @@ PhoneLineButton::PhoneLineButton(const QPixmap &released,
void void
PhoneLineButton::suspend() PhoneLineButton::suspend()
{ {
_debug("Swapping started.\n");
if(isPressed()) { if(isPressed()) {
mFace = 1; mFace = 1;
} }
...@@ -45,7 +44,6 @@ PhoneLineButton::swap() ...@@ -45,7 +44,6 @@ PhoneLineButton::swap()
void void
PhoneLineButton::press() PhoneLineButton::press()
{ {
_debug("Pressed");
mTimer->stop(); mTimer->stop();
JPushButton::press(); JPushButton::press();
} }
......
...@@ -125,7 +125,7 @@ PhoneLineManagerImpl::selectLine(unsigned int line) ...@@ -125,7 +125,7 @@ PhoneLineManagerImpl::selectLine(unsigned int line)
PhoneLineLocker guard(selectedLine); PhoneLineLocker guard(selectedLine);
selectedLine->select(); selectedLine->select();
if(selectedLine->isAvailable()) { if(selectedLine->isAvailable()) {
mSession.sendTone(); mSession.playTone();
} }
} }
} }
......
...@@ -14,9 +14,10 @@ SFLPhoneApp::SFLPhoneApp(int argc, char **argv) ...@@ -14,9 +14,10 @@ SFLPhoneApp::SFLPhoneApp(int argc, char **argv)
, mAccount(mSession.getDefaultAccount()) , mAccount(mSession.getDefaultAccount())
{ {
PhoneLineManager::instance().setNbLines(NB_PHONELINES); PhoneLineManager::instance().setNbLines(NB_PHONELINES);
Requester::instance().registerObject< Request >(std::string("sendtone")); Requester::instance().registerObject< Request >(std::string("playtone"));
Requester::instance().registerObject< Request >(std::string("playdtmf")); Requester::instance().registerObject< Request >(std::string("playdtmf"));
Requester::instance().registerObject< CallRelatedRequest >(std::string("senddtmf")); Requester::instance().registerObject< CallRelatedRequest >(std::string("senddtmf"));
Requester::instance().registerObject< CallRelatedRequest >(std::string("playdtmf"));
Requester::instance().registerObject< CallRelatedRequest >(std::string("call")); Requester::instance().registerObject< CallRelatedRequest >(std::string("call"));
Requester::instance().registerObject< CallRelatedRequest >(std::string("hold")); Requester::instance().registerObject< CallRelatedRequest >(std::string("hold"));
Requester::instance().registerObject< CallRelatedRequest >(std::string("unhold")); Requester::instance().registerObject< CallRelatedRequest >(std::string("unhold"));
......
...@@ -44,9 +44,9 @@ Session::id() const ...@@ -44,9 +44,9 @@ Session::id() const
} }
std::string std::string
Session::sendTone() const Session::playTone() const
{ {
return Requester::instance().send(mId, "sendtone", std::list< std::string >()); return Requester::instance().send(mId, "playtone", std::list< std::string >());
} }
std::string std::string
......
...@@ -48,7 +48,7 @@ class Session ...@@ -48,7 +48,7 @@ class Session
Call createCall() const; Call createCall() const;
std::string id() const; std::string id() const;
std::string sendTone() const; std::string playTone() const;
private: private:
std::string mId; std::string mId;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment