summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrinivasa Ragavan <srinivasa.ragavan.venkateswaran@intel.com>2012-10-06 19:22:14 +0530
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-10-07 09:40:44 +0200
commit7ae7411673179739dbd9efb5e4c46178457cf006 (patch)
treec2e98ba5c6d214c5fff40b6150fe25a2d142b334
parentcd69cb60fa1acbbf6239b69b4c611479f2184ab9 (diff)
downloadobexd-7ae7411673179739dbd9efb5e4c46178457cf006.tar.gz
test: Update map-client to include UpdateInbox.
-rwxr-xr-xtest/map-client7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/map-client b/test/map-client
index e8c42e3..756ebb8 100755
--- a/test/map-client
+++ b/test/map-client
@@ -51,6 +51,8 @@ def parse_options():
help="Deletes the message from the folder")
parser.add_option("--mark-undeleted", action="store", dest="mark_msg_undeleted",
help="Undeletes the message")
+ parser.add_option("-u", "--update-inbox", action="store_true", dest="update_inbox",
+ help="Checks for new mails")
return parser.parse_args()
@@ -145,6 +147,9 @@ class MapClient:
msg = dbus.Interface(obj, "org.bluez.obex.Message")
msg.SetProperty (prop, flag);
+ def update_inbox(self):
+ self.map.UpdateInbox()
+
if __name__ == '__main__':
@@ -196,5 +201,7 @@ if __name__ == '__main__':
if options.mark_msg_undeleted is not None:
map_client.set_message_property(options.mark_msg_undeleted, "Deleted", False)
+ if options.update_inbox:
+ map_client.update_inbox()
mainloop.run()