aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Bertrand <nicolas.bertrand@linux.intel.com>2011-05-11 13:46:46 +0200
committerDenis Kenzior <denkenz@gmail.com>2011-05-11 13:49:32 -0500
commit9473a11ca9222dca99ea62c1df73ab5666c71ab9 (patch)
tree6398a36dd326bb9c0eb6c7b1f07e84c4f37ace97
parent66a89e74f08a7b5d2446ff299fe07495f1a3bf3e (diff)
downloadphonesim-9473a11ca9222dca99ea62c1df73ab5666c71ab9.tar.gz
control: handle call management buttons
-rw-r--r--src/control.cpp12
-rw-r--r--src/control.h2
2 files changed, 14 insertions, 0 deletions
diff --git a/src/control.cpp b/src/control.cpp
index de141c3..4fdba27 100644
--- a/src/control.cpp
+++ b/src/control.cpp
@@ -88,6 +88,8 @@ ControlWidget::ControlWidget(const QString &ruleFile, Control *parent)
connect(ui->pbSendGNSSData, SIGNAL(clicked()), this, SLOT(sendGNSSData()));
connect(ui->pbGNSSDefault, SIGNAL(clicked()), this, SLOT(setDefaultGNSSData()));
connect(ui->pbSendNotif, SIGNAL(clicked()), this, SLOT(sendCSSN()));
+ connect(ui->pbAlerting, SIGNAL(clicked()), this, SLOT(setStateAlerting()));
+ connect(ui->pbActive, SIGNAL(clicked()), this, SLOT(setStateConnected()));
QStringList headers;
headers << "Sender" << "Priority" << "Notification Status";
@@ -168,6 +170,16 @@ void Control::callManagement( QList<CallInfo> *list )
widget->setCssuEnabled( enableCSSU );
}
+void ControlWidget::setStateConnected()
+{
+ emit p->stateChangedToConnected();
+}
+
+void ControlWidget::setStateAlerting()
+{
+ emit p->stateChangedToAlerting();
+}
+
void ControlWidget::setCssiEnabled( bool enableCSSI )
{
ui->cbCSSI->setEnabled( enableCSSI );
diff --git a/src/control.h b/src/control.h
index ac39eb3..1d8f06f 100644
--- a/src/control.h
+++ b/src/control.h
@@ -104,6 +104,8 @@ private slots:
void sendGNSSData();
void setDefaultGNSSData();
void sendCSSN();
+ void setStateAlerting();
+ void setStateConnected();
signals:
void unsolicitedCommand(const QString &);