From: Nicolas Bertrand <nicolas.bertrand@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH 3/3] control: Link functionnality to STK command editor
Date: Fri, 24 Aug 2012 10:32:35 +0200 [thread overview]
Message-ID: <1345797155-27517-4-git-send-email-nicolas.bertrand@linux.intel.com> (raw)
In-Reply-To: <1345797155-27517-1-git-send-email-nicolas.bertrand@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1567 bytes --]
---
src/control.cpp | 12 ++++++++++++
src/control.h | 2 ++
2 files changed, 14 insertions(+)
diff --git a/src/control.cpp b/src/control.cpp
index 3f1dd45..f518201 100644
--- a/src/control.cpp
+++ b/src/control.cpp
@@ -91,6 +91,8 @@ ControlWidget::ControlWidget(const QString &ruleFile, Control *parent)
connect(ui->pbAlerting, SIGNAL(clicked()), this, SLOT(setStateAlerting()));
connect(ui->pbActive, SIGNAL(clicked()), this, SLOT(setStateConnected()));
connect(ui->pbHangup, SIGNAL(clicked()), this, SLOT(setStateHangup()));
+ connect(ui->pbSTKCmdSend, SIGNAL(clicked()), this, SLOT(STKCmdSend()));
+ connect(ui->pbSTKClear, SIGNAL(clicked()), this, SLOT(STKClear()));
QStringList headers;
headers << "Sender" << "Priority" << "Notification Status";
@@ -625,6 +627,16 @@ void Control::handleNewApp()
widget->handleNewApp();
}
+void ControlWidget::STKCmdSend()
+{
+ emit unsolicitedCommand( "+CUSATP: " + ui->teSTKCmdEditor->toPlainText() );
+}
+
+void ControlWidget::STKClear()
+{
+ ui->teSTKCmdEditor->clear();
+}
+
void ControlWidget::simAppStart()
{
if ( ui->cbSimApps->currentIndex() >= 0 )
diff --git a/src/control.h b/src/control.h
index fd1a4e6..c4d5244 100644
--- a/src/control.h
+++ b/src/control.h
@@ -107,6 +107,8 @@ private slots:
void setStateAlerting();
void setStateConnected();
void setStateHangup();
+ void STKCmdSend();
+ void STKClear();
signals:
void unsolicitedCommand(const QString &);
--
1.7.9.5
next prev parent reply other threads:[~2012-08-24 8:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-24 8:32 [PATCH 0/3] Add STK APDU editor Nicolas Bertrand
2012-08-24 8:32 ` [PATCH 1/3] phonesim: accept STK command without application Nicolas Bertrand
2012-08-24 8:32 ` [PATCH 2/3] controlbase_ui: Add manual stk command editor Nicolas Bertrand
2012-08-24 8:32 ` Nicolas Bertrand [this message]
2012-08-28 14:47 ` [PATCH 0/3] Add STK APDU editor Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1345797155-27517-4-git-send-email-nicolas.bertrand@linux.intel.com \
--to=nicolas.bertrand@linux.intel.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox