* [PATCH] Add send vcal test
@ 2011-04-28 12:05 Bertrand Aygon
2011-04-28 14:23 ` Denis Kenzior
0 siblings, 1 reply; 3+ messages in thread
From: Bertrand Aygon @ 2011-04-28 12:05 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1628 bytes --]
---
test/send-vcal | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
create mode 100755 test/send-vcal
diff --git a/test/send-vcal b/test/send-vcal
new file mode 100755
index 0000000..7ccd2f6
--- /dev/null
+++ b/test/send-vcal
@@ -0,0 +1,32 @@
+#!/usr/bin/python
+
+import sys
+import dbus
+
+if len(sys.argv) < 3:
+ print "Usage: %s [modem] <to> <vcal file>" % (sys.argv[0])
+ sys.exit(1)
+
+bus = dbus.SystemBus()
+
+if len(sys.argv) == 4:
+ path = sys.argv[1]
+else:
+ manager = dbus.Interface(bus.get_object('org.ofono', '/'),
+ 'org.ofono.Manager')
+ modems = manager.GetModems()
+ path = modems[0][0]
+
+print "Send vcal using modem %s ..." % path
+
+sm = dbus.Interface(bus.get_object('org.ofono', path),
+ 'org.ofono.SmartMessaging')
+
+if len(sys.argv) == 4:
+ vcal = file(sys.argv[3]).read()
+ path = sm.SendAppointment(sys.argv[2], vcal)
+else:
+ vcal = file(sys.argv[2]).read()
+ path = sm.SendAppointment(sys.argv[1], vcal)
+
+print path
--
1.7.1
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number: 302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Add send vcal test
2011-04-28 12:05 [PATCH] Add send vcal test Bertrand Aygon
@ 2011-04-28 14:23 ` Denis Kenzior
2011-04-28 14:25 ` Aygon, Bertrand
0 siblings, 1 reply; 3+ messages in thread
From: Denis Kenzior @ 2011-04-28 14:23 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 364 bytes --]
Hi Bertrand,
On 04/28/2011 07:05 AM, Bertrand Aygon wrote:
> ---
> test/send-vcal | 32 ++++++++++++++++++++++++++++++++
> 1 files changed, 32 insertions(+), 0 deletions(-)
> create mode 100755 test/send-vcal
>
Patch has been applied, however you forgot to add this to the build. I
fixed this in a follow-on patch for you ;)
Regards,
-Denis
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] Add send vcal test
2011-04-28 14:23 ` Denis Kenzior
@ 2011-04-28 14:25 ` Aygon, Bertrand
0 siblings, 0 replies; 3+ messages in thread
From: Aygon, Bertrand @ 2011-04-28 14:25 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 758 bytes --]
>Patch has been applied, however you forgot to add this to the build. I
>fixed this in a follow-on patch for you ;)
Damn, sorry, second times...
Thanks for the fix.
Bertrand
---------------------------------------------------------------------
Intel Corporation SAS (French simplified joint stock company)
Registered headquarters: "Les Montalets"- 2, rue de Paris,
92196 Meudon Cedex, France
Registration Number: 302 456 199 R.C.S. NANTERRE
Capital: 4,572,000 Euros
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-04-28 14:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-28 12:05 [PATCH] Add send vcal test Bertrand Aygon
2011-04-28 14:23 ` Denis Kenzior
2011-04-28 14:25 ` Aygon, Bertrand
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.