diff options
author | Srinivasa Ragavan <srinivasa.ragavan.venkateswaran@intel.com> | 2012-10-06 19:22:14 +0530 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2012-10-07 09:40:44 +0200 |
commit | 7ae7411673179739dbd9efb5e4c46178457cf006 (patch) | |
tree | c2e98ba5c6d214c5fff40b6150fe25a2d142b334 | |
parent | cd69cb60fa1acbbf6239b69b4c611479f2184ab9 (diff) | |
download | obexd-7ae7411673179739dbd9efb5e4c46178457cf006.tar.gz |
test: Update map-client to include UpdateInbox.
-rwxr-xr-x | test/map-client | 7 |
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() |