Index: de.wigbels.ruby/mob2archiv/doc/files/m2a_rb.src/M000002.html
===================================================================
--- de.wigbels.ruby/mob2archiv/doc/files/m2a_rb.src/M000002.html	(revision bc5d5b24dec08dde79c0c967918e0b72bb94e1b6)
+++ de.wigbels.ruby/mob2archiv/doc/files/m2a_rb.src/M000002.html	(revision bc5d5b24dec08dde79c0c967918e0b72bb94e1b6)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html 
+     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+  <title>doCrudeObexAppComm (m2a.rb)</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+  <pre><span class="ruby-comment cmt"># File m2a.rb, line 24</span>
+<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">doCrudeObexAppComm</span>
+    <span class="ruby-keyword kw">begin</span>
+        <span class="ruby-identifier">cam</span> = <span class="ruby-identifier">getObexIOObject</span>
+        <span class="ruby-identifier">cam</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;ls&quot;</span>
+        <span class="ruby-identifier">cam</span>.<span class="ruby-identifier">close_write</span>
+        <span class="ruby-identifier">lines</span> = <span class="ruby-identifier">cam</span>.<span class="ruby-identifier">readlines</span>
+        <span class="ruby-identifier">cam</span> = <span class="ruby-identifier">getObexIOObject</span>
+        <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
+            <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/Bild\(\d+\).jpg/</span>
+            <span class="ruby-comment cmt">#black-magic-ruby $&amp; holds the match</span>
+            <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">$&amp;</span>.<span class="ruby-identifier">nil?</span>
+                <span class="ruby-identifier">cam</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;get&quot;</span>
+                <span class="ruby-identifier">cam</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">$&amp;</span>
+                <span class="ruby-identifier">cam</span>.<span class="ruby-identifier">puts</span> <span class="ruby-identifier">$destination</span><span class="ruby-operator">+</span><span class="ruby-value str">'/'</span><span class="ruby-operator">+</span><span class="ruby-identifier">$&amp;</span>
+                <span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;copy picture &quot;</span><span class="ruby-operator">+</span><span class="ruby-identifier">$&amp;</span><span class="ruby-operator">+</span><span class="ruby-value str">&quot; to to &quot;</span><span class="ruby-operator">+</span><span class="ruby-identifier">$destination</span>
+                <span class="ruby-comment cmt">#delete picturea after copying? uncomment...</span>
+                <span class="ruby-comment cmt">#doesn't work on my phone:(</span>
+                <span class="ruby-comment cmt">#cam.puts &quot;delete&quot;</span>
+                <span class="ruby-comment cmt">#cam.puts $&amp;</span>
+            <span class="ruby-keyword kw">end</span>
+    <span class="ruby-keyword kw">end</span>
+    <span class="ruby-keyword kw">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">ex</span>
+        <span class="ruby-identifier">puts</span>(<span class="ruby-identifier">ex</span>.<span class="ruby-identifier">to_s</span>)
+    <span class="ruby-keyword kw">ensure</span>
+        <span class="ruby-comment cmt"># TODO: ensure connection is closed</span>
+        <span class="ruby-identifier">cam</span>.<span class="ruby-identifier">puts</span> <span class="ruby-value str">&quot;disconnect&quot;</span> 
+        <span class="ruby-identifier">cam</span>.<span class="ruby-identifier">close</span>
+    <span class="ruby-keyword kw">end</span>
+<span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
