mmsd: GetConversation
cover mmsd: GetConversation
These patches concern mmsd and are related to lastest patches applied.
Ronald Tessier (2):
test: Add python get-conversation test
TODO: Update TODO to remove GetConversation entry
Makefile.am | 3 ++- TODO | 10 ---------- test/get-conversation | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 11 deletions(-) create mode 100755 test/get-conversation
--
1.7.4.1
PATCH 1/2 test: Add python get-conversation test
--- Makefile.am | 3 ++- test/get-conversation | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletions(-) create mode 100755 test/get-conversation
Makefile.am +2 -1
@@ -51,7 +51,8 @@ INCLUDES = -I$(builddir)/src -I$(srcdir)/src -I$(srcdir)/gdbus CLEANFILES = src/builtin.h test_scripts = test/monitor-mms test/get-services test/send-message \ - test/delete-message test/mark-message-read test/get-messages + test/delete-message test/mark-message-read test/get-messages \ + test/get-conversation doc_files = doc/architecture.txt doc/consumer.txt doc/manager-api.txt \ doc/service-api.txt doc/message-api.txt \
test/get-conversation new file +34 -0
@@ -0,0 +1,34 @@ +#!/usr/bin/python + +import sys +import dbus + +if (len(sys.argv) < 3): + print "Usage: %s '<number>' <count>" % (sys.argv[0]) + print "Sample: get-conversation '555-1234' 0" + sys.exit(1) + +bus = dbus.SessionBus() + +manager = dbus.Interface(bus.get_object('org.ofono.mms', '/org/ofono/mms'), + 'org.ofono.mms.Manager') + +services = manager.GetServices() +path = services[0][0] + +service = dbus.Interface(bus.get_object('org.ofono.mms', path), + 'org.ofono.mms.Service') + +messages = service.GetConversation(sys.argv[1], sys.argv[2]) + +for entry in messages: + path = entry[0] + properties = entry[1] + + print "[ %s ]" % (path) + + for key in properties.keys(): + val = str(properties[key]) + print " %s = %s" % (key, val) + + print
Signature · 1 line
1.7.4.1
PATCH 2/2 TODO: Update TODO to remove GetConversation entry
In reply to Ronald Tessier--- TODO | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-)
TODO +0 -10
@@ -16,16 +16,6 @@ Background once the task is better understood. -D-Bus API -========= - -- Add the "org.ofono.mms.Service" interface "GetConversation" method - implementation. - The D-Bus Message API documentation is available under /doc/service-api.txt. - - Priority: Low - Complexity: C4 - Miscellaneous =============
Signature · 1 line
1.7.4.1
Hi Ronald,
Quoted 11 lines
These patches concern mmsd and are related to lastest patches applied.
Ronald Tessier (2):
test: Add python get-conversation test
TODO: Update TODO to remove GetConversation entryMakefile.am | 3 ++- TODO | 10 ---------- test/get-conversation | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 11 deletions(-) create mode 100755 test/get-conversation
both patches have been applied.
Regards
Marcel