Commit e859631c authored by jpbl's avatar jpbl
Browse files

we use playtone now

parent db7f1ae1
......@@ -23,7 +23,6 @@ PhoneLineButton::PhoneLineButton(const QPixmap &released,
void
PhoneLineButton::suspend()
{
_debug("Swapping started.\n");
if(isPressed()) {
mFace = 1;
}
......@@ -45,7 +44,6 @@ PhoneLineButton::swap()
void
PhoneLineButton::press()
{
_debug("Pressed");
mTimer->stop();
JPushButton::press();
}
......
......@@ -125,7 +125,7 @@ PhoneLineManagerImpl::selectLine(unsigned int line)
PhoneLineLocker guard(selectedLine);
selectedLine->select();
if(selectedLine->isAvailable()) {
mSession.sendTone();
mSession.playTone();
}
}
}
......
......@@ -14,9 +14,10 @@ SFLPhoneApp::SFLPhoneApp(int argc, char **argv)
, mAccount(mSession.getDefaultAccount())
{
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< CallRelatedRequest >(std::string("senddtmf"));
Requester::instance().registerObject< CallRelatedRequest >(std::string("playdtmf"));
Requester::instance().registerObject< CallRelatedRequest >(std::string("call"));
Requester::instance().registerObject< CallRelatedRequest >(std::string("hold"));
Requester::instance().registerObject< CallRelatedRequest >(std::string("unhold"));
......
......@@ -44,9 +44,9 @@ Session::id() const
}
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
......
......@@ -48,7 +48,7 @@ class Session
Call createCall() const;
std::string id() const;
std::string sendTone() const;
std::string playTone() const;
private:
std::string mId;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment