Ruby API docs.
authortak <taktaktaktaktaktaktaktaktaktak@gmail.com>
Thu, 3 Jan 2008 13:00:46 +0000 (13:00 +0000)
committertak <taktaktaktaktaktaktaktaktaktak@gmail.com>
Thu, 3 Jan 2008 13:00:46 +0000 (13:00 +0000)
35 files changed:
www/index.html
www/ruby-api/classes/LightMediaScanner.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Parser.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Parser.src/M000012.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.src/M000001.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.src/M000002.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.src/M000003.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.src/M000004.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.src/M000005.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.src/M000006.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.src/M000007.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.src/M000008.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.src/M000009.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.src/M000010.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Scanner.src/M000011.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Test.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Test.src/M000013.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Test.src/M000014.html [new file with mode: 0644]
www/ruby-api/classes/LightMediaScanner/Test.src/M000015.html [new file with mode: 0644]
www/ruby-api/created.rid [new file with mode: 0644]
www/ruby-api/files/extconf_rb.html [new file with mode: 0644]
www/ruby-api/files/lightmediascanner-unittest_rb.html [new file with mode: 0644]
www/ruby-api/files/lightmediascanner_parser_c.html [new file with mode: 0644]
www/ruby-api/files/lightmediascanner_parser_h.html [new file with mode: 0644]
www/ruby-api/files/lightmediascanner_scanner_c.html [new file with mode: 0644]
www/ruby-api/files/lightmediascanner_scanner_h.html [new file with mode: 0644]
www/ruby-api/files/rdoc_c.html [new file with mode: 0644]
www/ruby-api/files/ruby-lightmediascanner_c.html [new file with mode: 0644]
www/ruby-api/files/ruby-lightmediascanner_h.html [new file with mode: 0644]
www/ruby-api/fr_class_index.html [new file with mode: 0644]
www/ruby-api/fr_file_index.html [new file with mode: 0644]
www/ruby-api/fr_method_index.html [new file with mode: 0644]
www/ruby-api/index.html [new file with mode: 0644]
www/ruby-api/rdoc-style.css [new file with mode: 0644]

index 527093b..7af5ddd 100644 (file)
@@ -38,6 +38,7 @@ body {
     <ul>
       <li><a href="api/index.html">C API</a></li>
       <li><a href="python-api/index.html">Python API</a></li>
+      <li><a href="ruby-api/index.html">Ruby API</a></li>
     </ul>
     <h2>Project</h2>
     <ul>
@@ -79,6 +80,15 @@ body {
           <li><code>git clone git://staff.get-e.org/users/barbieri/python-lightmediascanner.git</code></li>
           </ul>
         </li>
+      <li>
+        Ruby bindings:
+        <ul>
+          <li><a href="https://garage.maemo.org/frs/shownotes.php?release_id=1326">Last tarball</a></li>
+          <li><code>svn co <a
+          href="https://garage.maemo.org/svn/lms">https://garage.maemo.org/svn/lms</a>
+          ruby-lightmediascanner</code></li>
+          </ul>
+        </li>
     </ul>
     <h2>License</h2>
     <p>
diff --git a/www/ruby-api/classes/LightMediaScanner.html b/www/ruby-api/classes/LightMediaScanner.html
new file mode 100644 (file)
index 0000000..97e5b6e
--- /dev/null
@@ -0,0 +1,131 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>Module: LightMediaScanner</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+    <div id="classHeader">
+        <table class="header-table">
+        <tr class="top-aligned-row">
+          <td><strong>Module</strong></td>
+          <td class="class-name-in-header">LightMediaScanner</td>
+        </tr>
+        <tr class="top-aligned-row">
+            <td><strong>In:</strong></td>
+            <td>
+                <a href="../files/rdoc_c.html">
+                rdoc.c
+                </a>
+        <br />
+                <a href="../files/ruby-lightmediascanner_c.html">
+                ruby-lightmediascanner.c
+                </a>
+        <br />
+            </td>
+        </tr>
+
+        </table>
+    </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+    <div id="description">
+      <p>
+<a href="LightMediaScanner.html">LightMediaScanner</a> is the outer module
+of the <a href="LightMediaScanner.html">LightMediaScanner</a> Ruby
+extension.
+</p>
+<p>
+It doesn&#8216;t currently perform any function other than namespacing. You
+probably want to see <a
+href="LightMediaScanner/Scanner.html">LightMediaScanner::Scanner</a> and <a
+href="LightMediaScanner/Parser.html">LightMediaScanner::Parser</a> .
+</p>
+
+    </div>
+
+
+   </div>
+
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+    <div id="class-list">
+      <h3 class="section-bar">Classes and Modules</h3>
+
+      Class <a href="LightMediaScanner/Parser.html" class="link">LightMediaScanner::Parser</a><br />
+Class <a href="LightMediaScanner/Scanner.html" class="link">LightMediaScanner::Scanner</a><br />
+Class <a href="LightMediaScanner/Test.html" class="link">LightMediaScanner::Test</a><br />
+
+    </div>
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Parser.html b/www/ruby-api/classes/LightMediaScanner/Parser.html
new file mode 100644 (file)
index 0000000..0c4bf4c
--- /dev/null
@@ -0,0 +1,163 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>Class: LightMediaScanner::Parser</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+    <div id="classHeader">
+        <table class="header-table">
+        <tr class="top-aligned-row">
+          <td><strong>Class</strong></td>
+          <td class="class-name-in-header">LightMediaScanner::Parser</td>
+        </tr>
+        <tr class="top-aligned-row">
+            <td><strong>In:</strong></td>
+            <td>
+                <a href="../../files/rdoc_c.html">
+                rdoc.c
+                </a>
+        <br />
+            </td>
+        </tr>
+
+        <tr class="top-aligned-row">
+            <td><strong>Parent:</strong></td>
+            <td>
+                Object
+            </td>
+        </tr>
+        </table>
+    </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+    <div id="description">
+      <p>
+<a href="Parser.html">LightMediaScanner::Parser</a> is a class to represent
+a <a href="../LightMediaScanner.html">LightMediaScanner</a> plugin.
+</p>
+
+    </div>
+
+
+   </div>
+
+    <div id="method-list">
+      <h3 class="section-bar">Methods</h3>
+
+      <div class="name-list">
+      <a href="#M000012">new</a>&nbsp;&nbsp;
+      </div>
+    </div>
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+    <div id="methods">
+      <h3 class="section-bar">Public Class methods</h3>
+
+      <div id="method-M000012" class="method-detail">
+        <a name="M000012"></a>
+
+        <div class="method-heading">
+          <a href="Parser.src/M000012.html" target="Code" class="method-signature"
+            onclick="popupCode('Parser.src/M000012.html');return false;">
+          <span class="method-name">new</span><span class="method-args">(p1, p2)</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+<a href="Parser.html#M000012">Parser#new</a>
+</p>
+<p>
+constructor
+</p>
+<ul>
+<li>p1 (parent) The <a href="Scanner.html">Scanner</a> to which the parser
+belongs
+
+</li>
+<li>p2 (name) path to shared object (usable by dlopen(3)).
+
+</li>
+<li>return A <a href="Parser.html#M000012">new</a> <a
+href="Parser.html">Parser</a>
+
+</li>
+</ul>
+        </div>
+      </div>
+
+
+    </div>
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Parser.src/M000012.html b/www/ruby-api/classes/LightMediaScanner/Parser.src/M000012.html
new file mode 100644 (file)
index 0000000..837eb9d
--- /dev/null
@@ -0,0 +1,29 @@
+<?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>new (LightMediaScanner::Parser)</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>/**
+ *
+ * Parser#new
+ *
+ * constructor
+ *
+ * * p1 (parent) The Scanner to which the parser belongs
+ *
+ * * p2 (name) path to shared object (usable by dlopen(3)).
+ *
+ * * return A new Parser
+ *
+ */
+static VALUE parser_new(VALUE obj, VALUE parent, VALUE name) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.html b/www/ruby-api/classes/LightMediaScanner/Scanner.html
new file mode 100644 (file)
index 0000000..ed75c5e
--- /dev/null
@@ -0,0 +1,463 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>Class: LightMediaScanner::Scanner</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+    <div id="classHeader">
+        <table class="header-table">
+        <tr class="top-aligned-row">
+          <td><strong>Class</strong></td>
+          <td class="class-name-in-header">LightMediaScanner::Scanner</td>
+        </tr>
+        <tr class="top-aligned-row">
+            <td><strong>In:</strong></td>
+            <td>
+                <a href="../../files/rdoc_c.html">
+                rdoc.c
+                </a>
+        <br />
+            </td>
+        </tr>
+
+        <tr class="top-aligned-row">
+            <td><strong>Parent:</strong></td>
+            <td>
+                Object
+            </td>
+        </tr>
+        </table>
+    </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+    <div id="description">
+      <p>
+<a href="Scanner.html">LightMediaScanner::Scanner</a> is a class to
+represent a <a href="../LightMediaScanner.html">LightMediaScanner</a>
+instance.
+</p>
+
+    </div>
+
+
+   </div>
+
+    <div id="method-list">
+      <h3 class="section-bar">Methods</h3>
+
+      <div class="name-list">
+      <a href="#M000010">add_charset</a>&nbsp;&nbsp;
+      <a href="#M000003">check</a>&nbsp;&nbsp;
+      <a href="#M000008">commit_interval</a>&nbsp;&nbsp;
+      <a href="#M000009">commit_interval=</a>&nbsp;&nbsp;
+      <a href="#M000004">db_path</a>&nbsp;&nbsp;
+      <a href="#M000001">new</a>&nbsp;&nbsp;
+      <a href="#M000002">process</a>&nbsp;&nbsp;
+      <a href="#M000005">processing?</a>&nbsp;&nbsp;
+      <a href="#M000011">remove_charset</a>&nbsp;&nbsp;
+      <a href="#M000006">timeout</a>&nbsp;&nbsp;
+      <a href="#M000007">timeout=</a>&nbsp;&nbsp;
+      </div>
+    </div>
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+    <div id="methods">
+      <h3 class="section-bar">Public Class methods</h3>
+
+      <div id="method-M000001" class="method-detail">
+        <a name="M000001"></a>
+
+        <div class="method-heading">
+          <a href="Scanner.src/M000001.html" target="Code" class="method-signature"
+            onclick="popupCode('Scanner.src/M000001.html');return false;">
+          <span class="method-name">new</span><span class="method-args">(p1)</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+<a href="Scanner.html#M000001">Scanner#new</a>
+</p>
+<p>
+constructor
+</p>
+<ul>
+<li>p1 (<a href="Scanner.html#M000004">db_path</a>) The path to the sqlite3 db
+to be used
+
+</li>
+<li>return A <a href="Scanner.html#M000001">new</a> <a
+href="Scanner.html">Scanner</a> instance
+
+</li>
+</ul>
+        </div>
+      </div>
+
+      <h3 class="section-bar">Public Instance methods</h3>
+
+      <div id="method-M000010" class="method-detail">
+        <a name="M000010"></a>
+
+        <div class="method-heading">
+          <a href="Scanner.src/M000010.html" target="Code" class="method-signature"
+            onclick="popupCode('Scanner.src/M000010.html');return false;">
+          <span class="method-name">add_charset</span><span class="method-args">(p1)</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+Scanner::add_charset
+</p>
+<p>
+Register a <a href="Scanner.html#M000001">new</a> charset encoding to be
+used.
+</p>
+<p>
+Throws a RuntimeError if LMS is unable to add the charset.
+</p>
+<ul>
+<li>p1 (charset) charset name as understood by iconv_open(3).
+
+</li>
+<li>return charset
+
+</li>
+</ul>
+        </div>
+      </div>
+
+      <div id="method-M000003" class="method-detail">
+        <a name="M000003"></a>
+
+        <div class="method-heading">
+          <a href="Scanner.src/M000003.html" target="Code" class="method-signature"
+            onclick="popupCode('Scanner.src/M000003.html');return false;">
+          <span class="method-name">check</span><span class="method-args">(p1)</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+Scanner::check
+</p>
+<p>
+Check consistency of the given directory.
+</p>
+<ul>
+<li>p1 (top_path) The top directory to scan.
+
+</li>
+<li>return 0 on success
+
+</li>
+</ul>
+        </div>
+      </div>
+
+      <div id="method-M000008" class="method-detail">
+        <a name="M000008"></a>
+
+        <div class="method-heading">
+          <a href="Scanner.src/M000008.html" target="Code" class="method-signature"
+            onclick="popupCode('Scanner.src/M000008.html');return false;">
+          <span class="method-name">commit_interval</span><span class="method-args">()</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+Scanner::commit_interval
+</p>
+<p>
+Get the number of files served between database transactions.
+</p>
+<ul>
+<li>return The number of files served between database transactions
+
+</li>
+</ul>
+        </div>
+      </div>
+
+      <div id="method-M000009" class="method-detail">
+        <a name="M000009"></a>
+
+        <div class="method-heading">
+          <a href="Scanner.src/M000009.html" target="Code" class="method-signature"
+            onclick="popupCode('Scanner.src/M000009.html');return false;">
+          <span class="method-name">commit_interval=</span><span class="method-args">(p1)</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+Scanner::commit_interval=
+</p>
+<p>
+Set the number of files to be served between database transactions.
+</p>
+<ul>
+<li>p1 (transactions) The number of files between commits
+
+</li>
+<li>return The <a href="Scanner.html#M000001">new</a> number of files to be
+served between database transactions
+
+</li>
+</ul>
+        </div>
+      </div>
+
+      <div id="method-M000004" class="method-detail">
+        <a name="M000004"></a>
+
+        <div class="method-heading">
+          <a href="Scanner.src/M000004.html" target="Code" class="method-signature"
+            onclick="popupCode('Scanner.src/M000004.html');return false;">
+          <span class="method-name">db_path</span><span class="method-args">()</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+Scanner::db_path
+</p>
+<p>
+Accessor for LMS DB path.
+</p>
+<ul>
+<li>return The database path given at creation time
+
+</li>
+</ul>
+        </div>
+      </div>
+
+      <div id="method-M000002" class="method-detail">
+        <a name="M000002"></a>
+
+        <div class="method-heading">
+          <a href="Scanner.src/M000002.html" target="Code" class="method-signature"
+            onclick="popupCode('Scanner.src/M000002.html');return false;">
+          <span class="method-name">process</span><span class="method-args">(p1)</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+Scanner::process
+</p>
+<p>
+This will add or update media found in the given directory or its children.
+</p>
+<ul>
+<li>p1 (top_path) The top directory to scan.
+
+</li>
+<li>return 0 on success
+
+</li>
+</ul>
+        </div>
+      </div>
+
+      <div id="method-M000005" class="method-detail">
+        <a name="M000005"></a>
+
+        <div class="method-heading">
+          <a href="Scanner.src/M000005.html" target="Code" class="method-signature"
+            onclick="popupCode('Scanner.src/M000005.html');return false;">
+          <span class="method-name">processing?</span><span class="method-args">()</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+Scanner::processing?
+</p>
+<p>
+Checks if Light Media <a href="Scanner.html">Scanner</a> is being used in a
+processing operation like lms_process() or lms_check().
+</p>
+<ul>
+<li>return Boolean representing the instance&#8216;s processing state
+
+</li>
+</ul>
+        </div>
+      </div>
+
+      <div id="method-M000011" class="method-detail">
+        <a name="M000011"></a>
+
+        <div class="method-heading">
+          <a href="Scanner.src/M000011.html" target="Code" class="method-signature"
+            onclick="popupCode('Scanner.src/M000011.html');return false;">
+          <span class="method-name">remove_charset</span><span class="method-args">(p1)</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+Scanner::remove_charset
+</p>
+<p>
+Forget about a registered charset encoding.
+</p>
+<p>
+Throws a RuntimeError if LMS is unable to remove the charset.
+</p>
+<ul>
+<li>p1 (charset) charset name as understood by iconv_open(3).
+
+</li>
+<li>return charset
+
+</li>
+</ul>
+        </div>
+      </div>
+
+      <div id="method-M000006" class="method-detail">
+        <a name="M000006"></a>
+
+        <div class="method-heading">
+          <a href="Scanner.src/M000006.html" target="Code" class="method-signature"
+            onclick="popupCode('Scanner.src/M000006.html');return false;">
+          <span class="method-name">timeout</span><span class="method-args">()</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+Scanner::timeout
+</p>
+<p>
+Get the maximum amount of milliseconds the slave can take to serve one
+file.
+</p>
+<p>
+If a slave takes more than this amount of milliseconds, it will be killed
+and the scanner will continue with the next file.
+</p>
+<ul>
+<li>return The <a href="Scanner.html#M000006">timeout</a> in milliseconds, or
+-1 on error
+
+</li>
+</ul>
+        </div>
+      </div>
+
+      <div id="method-M000007" class="method-detail">
+        <a name="M000007"></a>
+
+        <div class="method-heading">
+          <a href="Scanner.src/M000007.html" target="Code" class="method-signature"
+            onclick="popupCode('Scanner.src/M000007.html');return false;">
+          <span class="method-name">timeout=</span><span class="method-args">(p1)</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+          <p>
+Scanner::timeout=
+</p>
+<p>
+Set the maximum amount of milliseconds the slave can take to serve one
+file.
+</p>
+<p>
+If a slave takes more than this amount of milliseconds, it will be killed
+and the scanner will continue with the next file.
+</p>
+<ul>
+<li>p1 (timeout_ms) The <a href="Scanner.html#M000006">timeout</a> in
+milliseconds
+
+</li>
+<li>return The <a href="Scanner.html#M000001">new</a> <a
+href="Scanner.html#M000006">timeout</a>, in milliseconds
+
+</li>
+</ul>
+        </div>
+      </div>
+
+
+    </div>
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000001.html b/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000001.html
new file mode 100644 (file)
index 0000000..0b8893d
--- /dev/null
@@ -0,0 +1,25 @@
+<?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>new (LightMediaScanner::Scanner)</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>/**
+ * Scanner#new
+ *
+ * constructor
+ *
+ * * p1 (db_path) The path to the sqlite3 db to be used
+ *
+ * * return A new Scanner instance
+ */
+static VALUE scanner_new(VALUE obj, VALUE db_path) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000002.html b/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000002.html
new file mode 100644 (file)
index 0000000..fef16bd
--- /dev/null
@@ -0,0 +1,27 @@
+<?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>process (LightMediaScanner::Scanner)</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>/**
+ *
+ * Scanner::process
+ *
+ * This will add or update media found in the given directory or its children.
+ *
+ * * p1 (top_path) The top directory to scan.
+ *
+ * * return 0 on success
+ *
+ */
+static VALUE scanner_process(VALUE self, VALUE top_path) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000003.html b/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000003.html
new file mode 100644 (file)
index 0000000..3fb7078
--- /dev/null
@@ -0,0 +1,27 @@
+<?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>check (LightMediaScanner::Scanner)</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>/**
+ *
+ * Scanner::check
+ *
+ * Check consistency of the given directory.
+ *
+ * * p1 (top_path) The top directory to scan.
+ *
+ * * return 0 on success
+ *
+ */
+static VALUE scanner_check(VALUE self, VALUE top_path) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000004.html b/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000004.html
new file mode 100644 (file)
index 0000000..2b02d78
--- /dev/null
@@ -0,0 +1,25 @@
+<?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>db_path (LightMediaScanner::Scanner)</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>/**
+ *
+ * Scanner::db_path
+ *
+ * Accessor for LMS DB path.
+ *
+ * * return The database path given at creation time
+ *
+ */
+static VALUE scanner_db_path(VALUE self) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000005.html b/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000005.html
new file mode 100644 (file)
index 0000000..6d0abd8
--- /dev/null
@@ -0,0 +1,25 @@
+<?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>processing? (LightMediaScanner::Scanner)</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>/**
+ *
+ * Scanner::processing?
+ *
+ * Checks if Light Media Scanner is being used in a processing operation like lms_process() or lms_check().
+ *
+ * * return Boolean representing the instance's processing state
+ *
+ */
+static VALUE scanner_processing(VALUE self) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000006.html b/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000006.html
new file mode 100644 (file)
index 0000000..afe149e
--- /dev/null
@@ -0,0 +1,27 @@
+<?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>timeout (LightMediaScanner::Scanner)</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>/**
+ *
+ * Scanner::timeout
+ *
+ * Get the maximum amount of milliseconds the slave can take to serve one file. 
+ *
+ * If a slave takes more than this amount of milliseconds, it will be killed and the scanner will continue with the next file.
+ *
+ * * return The timeout in milliseconds, or -1 on error
+ *
+ */
+static VALUE scanner_get_slave_timeout(VALUE self) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000007.html b/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000007.html
new file mode 100644 (file)
index 0000000..c0461cb
--- /dev/null
@@ -0,0 +1,29 @@
+<?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>timeout= (LightMediaScanner::Scanner)</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>/**
+ *
+ * Scanner::timeout=
+ *
+ * Set the maximum amount of milliseconds the slave can take to serve one file.
+ *
+ * If a slave takes more than this amount of milliseconds, it will be killed and the scanner will continue with the next file.
+ *
+ * * p1 (timeout_ms) The timeout in milliseconds
+ *
+ * * return The new timeout, in milliseconds
+ *
+ */
+static VALUE scanner_set_slave_timeout(VALUE self, VALUE timeout_ms) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000008.html b/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000008.html
new file mode 100644 (file)
index 0000000..bfb386a
--- /dev/null
@@ -0,0 +1,25 @@
+<?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>commit_interval (LightMediaScanner::Scanner)</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>/**
+ *
+ * Scanner::commit_interval
+ *
+ * Get the number of files served between database transactions.
+ *
+ * * return The number of files served between database transactions
+ *
+ */
+static VALUE scanner_get_commit_interval(VALUE self) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000009.html b/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000009.html
new file mode 100644 (file)
index 0000000..54e1b66
--- /dev/null
@@ -0,0 +1,27 @@
+<?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>commit_interval= (LightMediaScanner::Scanner)</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>/**
+ *
+ * Scanner::commit_interval=
+ *
+ * Set the number of files to be served between database transactions.
+ *
+ * * p1 (transactions) The number of files between commits
+ *
+ * * return The new number of files to be served between database transactions
+ *
+ */
+static VALUE scanner_set_commit_interval(VALUE self, VALUE transactions) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000010.html b/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000010.html
new file mode 100644 (file)
index 0000000..04320ca
--- /dev/null
@@ -0,0 +1,29 @@
+<?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>add_charset (LightMediaScanner::Scanner)</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>/**
+ *
+ * Scanner::add_charset
+ *
+ * Register a new charset encoding to be used.
+ *
+ * Throws a RuntimeError if LMS is unable to add the charset.
+ *
+ * * p1 (charset) charset name as understood by iconv_open(3).
+ *
+ * * return charset
+ *
+ */
+static VALUE scanner_add_charset(VALUE self, VALUE charset) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000011.html b/www/ruby-api/classes/LightMediaScanner/Scanner.src/M000011.html
new file mode 100644 (file)
index 0000000..aefcdab
--- /dev/null
@@ -0,0 +1,29 @@
+<?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>remove_charset (LightMediaScanner::Scanner)</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>/**
+ *
+ * Scanner::remove_charset
+ *
+ * Forget about a registered charset encoding.
+ *
+ * Throws a RuntimeError if LMS is unable to remove the charset.
+ *
+ * * p1 (charset) charset name as understood by iconv_open(3).
+ *
+ * * return charset
+ *
+ */
+static VALUE scanner_remove_charset(VALUE self, VALUE charset) {
+</pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Test.html b/www/ruby-api/classes/LightMediaScanner/Test.html
new file mode 100644 (file)
index 0000000..e318681
--- /dev/null
@@ -0,0 +1,182 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>Class: LightMediaScanner::Test</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+    <div id="classHeader">
+        <table class="header-table">
+        <tr class="top-aligned-row">
+          <td><strong>Class</strong></td>
+          <td class="class-name-in-header">LightMediaScanner::Test</td>
+        </tr>
+        <tr class="top-aligned-row">
+            <td><strong>In:</strong></td>
+            <td>
+                <a href="../../files/lightmediascanner-unittest_rb.html">
+                lightmediascanner-unittest.rb
+                </a>
+        <br />
+            </td>
+        </tr>
+
+        <tr class="top-aligned-row">
+            <td><strong>Parent:</strong></td>
+            <td>
+                Test::Unit::TestCase
+            </td>
+        </tr>
+        </table>
+    </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+    <div id="description">
+      <p>
+<a href="Test.html">Test</a> cases for <a
+href="../LightMediaScanner.html">LightMediaScanner</a>. You probably
+don&#8216;t care about this.
+</p>
+
+    </div>
+
+
+   </div>
+
+    <div id="method-list">
+      <h3 class="section-bar">Methods</h3>
+
+      <div class="name-list">
+      <a href="#M000013">test_module</a>&nbsp;&nbsp;
+      <a href="#M000015">test_scanner_baddata</a>&nbsp;&nbsp;
+      <a href="#M000014">test_scanner_gooddata</a>&nbsp;&nbsp;
+      </div>
+    </div>
+
+  </div>
+
+
+    <!-- if includes -->
+    <div id="includes">
+      <h3 class="section-bar">Included Modules</h3>
+
+      <div id="includes-list">
+        <span class="include-name"><a href="../LightMediaScanner.html">LightMediaScanner</a></span>
+      </div>
+    </div>
+
+    <div id="section">
+
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+    <div id="methods">
+      <h3 class="section-bar">Public Instance methods</h3>
+
+      <div id="method-M000013" class="method-detail">
+        <a name="M000013"></a>
+
+        <div class="method-heading">
+          <a href="Test.src/M000013.html" target="Code" class="method-signature"
+            onclick="popupCode('Test.src/M000013.html');return false;">
+          <span class="method-name">test_module</span><span class="method-args">()</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+        </div>
+      </div>
+
+      <div id="method-M000015" class="method-detail">
+        <a name="M000015"></a>
+
+        <div class="method-heading">
+          <a href="Test.src/M000015.html" target="Code" class="method-signature"
+            onclick="popupCode('Test.src/M000015.html');return false;">
+          <span class="method-name">test_scanner_baddata</span><span class="method-args">()</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+        </div>
+      </div>
+
+      <div id="method-M000014" class="method-detail">
+        <a name="M000014"></a>
+
+        <div class="method-heading">
+          <a href="Test.src/M000014.html" target="Code" class="method-signature"
+            onclick="popupCode('Test.src/M000014.html');return false;">
+          <span class="method-name">test_scanner_gooddata</span><span class="method-args">()</span>
+          </a>
+        </div>
+      
+        <div class="method-description">
+        </div>
+      </div>
+
+
+    </div>
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Test.src/M000013.html b/www/ruby-api/classes/LightMediaScanner/Test.src/M000013.html
new file mode 100644 (file)
index 0000000..cf054da
--- /dev/null
@@ -0,0 +1,19 @@
+<?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>test_module (LightMediaScanner::Test)</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 lightmediascanner-unittest.rb, line 32</span>
+                <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_module</span>()
+                        <span class="ruby-identifier">assert</span>(<span class="ruby-constant">LightMediaScanner</span><span class="ruby-operator">::</span><span class="ruby-identifier">constants</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">'Scanner'</span>))
+                        <span class="ruby-identifier">assert</span>(<span class="ruby-constant">LightMediaScanner</span><span class="ruby-operator">::</span><span class="ruby-identifier">constants</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-value str">'Parser'</span>))
+                <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Test.src/M000014.html b/www/ruby-api/classes/LightMediaScanner/Test.src/M000014.html
new file mode 100644 (file)
index 0000000..a23dd9c
--- /dev/null
@@ -0,0 +1,38 @@
+<?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>test_scanner_gooddata (LightMediaScanner::Test)</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 lightmediascanner-unittest.rb, line 37</span>
+                <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_scanner_gooddata</span>()
+                        <span class="ruby-identifier">dbPath</span> = <span class="ruby-value str">'/'</span>
+                        <span class="ruby-identifier">timeout</span> = <span class="ruby-value">60000</span>
+                        <span class="ruby-identifier">commitInterval</span> = <span class="ruby-value">1000</span>
+
+                        <span class="ruby-identifier">lms</span> = <span class="ruby-keyword kw">nil</span>
+                        <span class="ruby-identifier">assert_nothing_raised</span>(){ <span class="ruby-identifier">lms</span> = <span class="ruby-constant">Scanner</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">dbPath</span>) }
+                        <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">dbPath</span>, <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">db_path</span>)
+
+                        <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">timeout</span>=<span class="ruby-identifier">timeout</span>
+                        <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">lms</span>.<span class="ruby-identifier">timeout</span>, <span class="ruby-identifier">timeout</span>)
+
+                        <span class="ruby-identifier">assert</span>(<span class="ruby-operator">!</span><span class="ruby-identifier">lms</span>.<span class="ruby-identifier">processing?</span>)
+
+                        <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">commit_interval</span> = <span class="ruby-identifier">commitInterval</span>
+                        <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">lms</span>.<span class="ruby-identifier">commit_interval</span>, <span class="ruby-identifier">commitInterval</span>)
+
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">RuntimeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">process</span>(<span class="ruby-value str">'/'</span>) }
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">RuntimeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">check</span>(<span class="ruby-value str">'/'</span>) }
+                        <span class="ruby-identifier">assert_nothing_raised</span>(){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">add_charset</span>(<span class="ruby-value str">'ISO-8859-1'</span>) }
+                        <span class="ruby-identifier">assert_nothing_raised</span>(){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">remove_charset</span>(<span class="ruby-value str">'ISO-8859-1'</span>) }
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">RuntimeError</span>){ <span class="ruby-constant">Parser</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">lms</span>, <span class="ruby-value str">'blah'</span>) }
+                <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/classes/LightMediaScanner/Test.src/M000015.html b/www/ruby-api/classes/LightMediaScanner/Test.src/M000015.html
new file mode 100644 (file)
index 0000000..e6fe821
--- /dev/null
@@ -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>test_scanner_baddata (LightMediaScanner::Test)</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 lightmediascanner-unittest.rb, line 61</span>
+                <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_scanner_baddata</span>()
+                        <span class="ruby-identifier">dbPath</span> = <span class="ruby-value str">'/'</span>
+                        <span class="ruby-identifier">timeout</span> = <span class="ruby-value">60000</span>
+                        <span class="ruby-identifier">commitInterval</span> = <span class="ruby-value">1000</span>
+
+                        <span class="ruby-identifier">lms</span> = <span class="ruby-keyword kw">nil</span>
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span> = <span class="ruby-constant">Scanner</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">nil</span>) }
+                        <span class="ruby-identifier">assert_nothing_raised</span>(){ <span class="ruby-identifier">lms</span> = <span class="ruby-constant">Scanner</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">dbPath</span>) }
+                        <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">dbPath</span>, <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">db_path</span>)
+
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">timeout</span> = <span class="ruby-value str">'Jared'</span> }
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">timeout</span> = <span class="ruby-value">3.14159</span> }
+
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">commit_interval</span> = <span class="ruby-value">2.72</span> }
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">commit_interval</span> = <span class="ruby-keyword kw">nil</span> }
+
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">process</span>(<span class="ruby-keyword kw">nil</span>) }
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">process</span>(<span class="ruby-value">3</span>) }
+
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">check</span>(<span class="ruby-identifier">lms</span>) }
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">check</span>(<span class="ruby-value">5.43</span>) }
+
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">add_charset</span>(<span class="ruby-keyword kw">nil</span>) }
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">add_charset</span>(<span class="ruby-value">42</span>) }
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">RuntimeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">add_charset</span>(<span class="ruby-value str">'I CAN HAZ CHARSET?'</span>) }
+
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">RuntimeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">remove_charset</span>(<span class="ruby-value str">'EBCDIC'</span>) }
+                        <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">TypeError</span>){ <span class="ruby-identifier">lms</span>.<span class="ruby-identifier">remove_charset</span>(<span class="ruby-keyword kw">nil</span>) }
+                <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/created.rid b/www/ruby-api/created.rid
new file mode 100644 (file)
index 0000000..ae9f217
--- /dev/null
@@ -0,0 +1 @@
+Thu, 03 Jan 2008 07:32:06 -0500
diff --git a/www/ruby-api/files/extconf_rb.html b/www/ruby-api/files/extconf_rb.html
new file mode 100644 (file)
index 0000000..7e0edcf
--- /dev/null
@@ -0,0 +1,147 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>File: extconf.rb</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+  <div id="fileHeader">
+    <h1>extconf.rb</h1>
+    <table class="header-table">
+    <tr class="top-aligned-row">
+      <td><strong>Path:</strong></td>
+      <td>extconf.rb
+      </td>
+    </tr>
+    <tr class="top-aligned-row">
+      <td><strong>Last Update:</strong></td>
+      <td>Wed Jan 02 10:56:02 -0500 2008</td>
+    </tr>
+    </table>
+  </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+    <div id="description">
+      <p>
+Copyright (C) 2007 by Levi Bard
+</p>
+<p>
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2 of the License, or (at your
+option) any later version.
+</p>
+<p>
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+</p>
+<p>
+You should have received a copy of the GNU Lesser General Public License
+along with this program; if not, write to the Free Software Foundation,
+Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+</p>
+<p>
+@author Levi Bard &lt;taktaktaktaktaktaktaktaktaktak@gmail.com&gt;
+</p>
+
+    </div>
+
+    <div id="requires-list">
+      <h3 class="section-bar">Required files</h3>
+
+      <div class="name-list">
+      mkmf&nbsp;&nbsp;
+      </div>
+    </div>
+
+   </div>
+
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+
+    <div id="constants-list">
+      <h3 class="section-bar">Constants</h3>
+
+      <div class="name-list">
+        <table summary="Constants">
+        <tr class="top-aligned-row context-row">
+          <td class="context-item-name">ExtensionName</td>
+          <td>=</td>
+          <td class="context-item-value">'lightmediascanner'</td>
+        </tr>
+        </table>
+      </div>
+    </div>
+
+
+
+      
+
+
+    <!-- if method_list -->
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/files/lightmediascanner-unittest_rb.html b/www/ruby-api/files/lightmediascanner-unittest_rb.html
new file mode 100644 (file)
index 0000000..77e90f8
--- /dev/null
@@ -0,0 +1,135 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>File: lightmediascanner-unittest.rb</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+  <div id="fileHeader">
+    <h1>lightmediascanner-unittest.rb</h1>
+    <table class="header-table">
+    <tr class="top-aligned-row">
+      <td><strong>Path:</strong></td>
+      <td>lightmediascanner-unittest.rb
+      </td>
+    </tr>
+    <tr class="top-aligned-row">
+      <td><strong>Last Update:</strong></td>
+      <td>Wed Jan 02 12:51:16 -0500 2008</td>
+    </tr>
+    </table>
+  </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+    <div id="description">
+      <p>
+Copyright (C) 2007 by Levi Bard
+</p>
+<p>
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as published by
+the Free Software Foundation; either version 2 of the License, or (at your
+option) any later version.
+</p>
+<p>
+This program is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
+more details.
+</p>
+<p>
+You should have received a copy of the GNU Lesser General Public License
+along with this program; if not, write to the Free Software Foundation,
+Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+</p>
+<p>
+@author Levi Bard &lt;taktaktaktaktaktaktaktaktaktak@gmail.com&gt;
+</p>
+
+    </div>
+
+    <div id="requires-list">
+      <h3 class="section-bar">Required files</h3>
+
+      <div class="name-list">
+      lightmediascanner&nbsp;&nbsp;
+      test/unit&nbsp;&nbsp;
+      </div>
+    </div>
+
+   </div>
+
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/files/lightmediascanner_parser_c.html b/www/ruby-api/files/lightmediascanner_parser_c.html
new file mode 100644 (file)
index 0000000..5f5e32f
--- /dev/null
@@ -0,0 +1,101 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>File: lightmediascanner_parser.c</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+  <div id="fileHeader">
+    <h1>lightmediascanner_parser.c</h1>
+    <table class="header-table">
+    <tr class="top-aligned-row">
+      <td><strong>Path:</strong></td>
+      <td>lightmediascanner_parser.c
+      </td>
+    </tr>
+    <tr class="top-aligned-row">
+      <td><strong>Last Update:</strong></td>
+      <td>Thu Jan 03 07:31:10 -0500 2008</td>
+    </tr>
+    </table>
+  </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+
+
+   </div>
+
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/files/lightmediascanner_parser_h.html b/www/ruby-api/files/lightmediascanner_parser_h.html
new file mode 100644 (file)
index 0000000..d891dad
--- /dev/null
@@ -0,0 +1,101 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>File: lightmediascanner_parser.h</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+  <div id="fileHeader">
+    <h1>lightmediascanner_parser.h</h1>
+    <table class="header-table">
+    <tr class="top-aligned-row">
+      <td><strong>Path:</strong></td>
+      <td>lightmediascanner_parser.h
+      </td>
+    </tr>
+    <tr class="top-aligned-row">
+      <td><strong>Last Update:</strong></td>
+      <td>Wed Jan 02 10:53:50 -0500 2008</td>
+    </tr>
+    </table>
+  </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+
+
+   </div>
+
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/files/lightmediascanner_scanner_c.html b/www/ruby-api/files/lightmediascanner_scanner_c.html
new file mode 100644 (file)
index 0000000..68bd004
--- /dev/null
@@ -0,0 +1,101 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>File: lightmediascanner_scanner.c</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+  <div id="fileHeader">
+    <h1>lightmediascanner_scanner.c</h1>
+    <table class="header-table">
+    <tr class="top-aligned-row">
+      <td><strong>Path:</strong></td>
+      <td>lightmediascanner_scanner.c
+      </td>
+    </tr>
+    <tr class="top-aligned-row">
+      <td><strong>Last Update:</strong></td>
+      <td>Thu Jan 03 07:31:57 -0500 2008</td>
+    </tr>
+    </table>
+  </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+
+
+   </div>
+
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/files/lightmediascanner_scanner_h.html b/www/ruby-api/files/lightmediascanner_scanner_h.html
new file mode 100644 (file)
index 0000000..5006f11
--- /dev/null
@@ -0,0 +1,101 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>File: lightmediascanner_scanner.h</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+  <div id="fileHeader">
+    <h1>lightmediascanner_scanner.h</h1>
+    <table class="header-table">
+    <tr class="top-aligned-row">
+      <td><strong>Path:</strong></td>
+      <td>lightmediascanner_scanner.h
+      </td>
+    </tr>
+    <tr class="top-aligned-row">
+      <td><strong>Last Update:</strong></td>
+      <td>Wed Jan 02 12:22:26 -0500 2008</td>
+    </tr>
+    </table>
+  </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+
+
+   </div>
+
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/files/rdoc_c.html b/www/ruby-api/files/rdoc_c.html
new file mode 100644 (file)
index 0000000..bca1e34
--- /dev/null
@@ -0,0 +1,101 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>File: rdoc.c</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+  <div id="fileHeader">
+    <h1>rdoc.c</h1>
+    <table class="header-table">
+    <tr class="top-aligned-row">
+      <td><strong>Path:</strong></td>
+      <td>rdoc.c
+      </td>
+    </tr>
+    <tr class="top-aligned-row">
+      <td><strong>Last Update:</strong></td>
+      <td>Thu Jan 03 07:32:05 -0500 2008</td>
+    </tr>
+    </table>
+  </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+
+
+   </div>
+
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/files/ruby-lightmediascanner_c.html b/www/ruby-api/files/ruby-lightmediascanner_c.html
new file mode 100644 (file)
index 0000000..7dae116
--- /dev/null
@@ -0,0 +1,101 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>File: ruby-lightmediascanner.c</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+  <div id="fileHeader">
+    <h1>ruby-lightmediascanner.c</h1>
+    <table class="header-table">
+    <tr class="top-aligned-row">
+      <td><strong>Path:</strong></td>
+      <td>ruby-lightmediascanner.c
+      </td>
+    </tr>
+    <tr class="top-aligned-row">
+      <td><strong>Last Update:</strong></td>
+      <td>Wed Jan 02 12:49:32 -0500 2008</td>
+    </tr>
+    </table>
+  </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+
+
+   </div>
+
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/files/ruby-lightmediascanner_h.html b/www/ruby-api/files/ruby-lightmediascanner_h.html
new file mode 100644 (file)
index 0000000..8db0a32
--- /dev/null
@@ -0,0 +1,101 @@
+<?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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>File: ruby-lightmediascanner.h</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <meta http-equiv="Content-Script-Type" content="text/javascript" />
+  <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+  <script type="text/javascript">
+  // <![CDATA[
+
+  function popupCode( url ) {
+    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+  }
+
+  function toggleCode( id ) {
+    if ( document.getElementById )
+      elem = document.getElementById( id );
+    else if ( document.all )
+      elem = eval( "document.all." + id );
+    else
+      return false;
+
+    elemStyle = elem.style;
+    
+    if ( elemStyle.display != "block" ) {
+      elemStyle.display = "block"
+    } else {
+      elemStyle.display = "none"
+    }
+
+    return true;
+  }
+  
+  // Make codeblocks hidden by default
+  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+  
+  // ]]>
+  </script>
+
+</head>
+<body>
+
+
+
+  <div id="fileHeader">
+    <h1>ruby-lightmediascanner.h</h1>
+    <table class="header-table">
+    <tr class="top-aligned-row">
+      <td><strong>Path:</strong></td>
+      <td>ruby-lightmediascanner.h
+      </td>
+    </tr>
+    <tr class="top-aligned-row">
+      <td><strong>Last Update:</strong></td>
+      <td>Wed Jan 02 10:53:35 -0500 2008</td>
+    </tr>
+    </table>
+  </div>
+  <!-- banner header -->
+
+  <div id="bodyContent">
+
+
+
+  <div id="contextContent">
+
+
+
+   </div>
+
+
+  </div>
+
+
+    <!-- if includes -->
+
+    <div id="section">
+
+
+
+
+
+      
+
+
+    <!-- if method_list -->
+
+
+  </div>
+
+
+<div id="validator-badges">
+  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/fr_class_index.html b/www/ruby-api/fr_class_index.html
new file mode 100644 (file)
index 0000000..492f7a4
--- /dev/null
@@ -0,0 +1,30 @@
+
+<?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">
+
+<!--
+
+    Classes
+
+  -->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>Classes</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
+  <base target="docwin" />
+</head>
+<body>
+<div id="index">
+  <h1 class="section-bar">Classes</h1>
+  <div id="index-entries">
+    <a href="classes/LightMediaScanner.html">LightMediaScanner</a><br />
+    <a href="classes/LightMediaScanner/Parser.html">LightMediaScanner::Parser</a><br />
+    <a href="classes/LightMediaScanner/Scanner.html">LightMediaScanner::Scanner</a><br />
+    <a href="classes/LightMediaScanner/Test.html">LightMediaScanner::Test</a><br />
+  </div>
+</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/fr_file_index.html b/www/ruby-api/fr_file_index.html
new file mode 100644 (file)
index 0000000..9fb65be
--- /dev/null
@@ -0,0 +1,36 @@
+
+<?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">
+
+<!--
+
+    Files
+
+  -->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>Files</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
+  <base target="docwin" />
+</head>
+<body>
+<div id="index">
+  <h1 class="section-bar">Files</h1>
+  <div id="index-entries">
+    <a href="files/extconf_rb.html">extconf.rb</a><br />
+    <a href="files/lightmediascanner-unittest_rb.html">lightmediascanner-unittest.rb</a><br />
+    <a href="files/lightmediascanner_parser_c.html">lightmediascanner_parser.c</a><br />
+    <a href="files/lightmediascanner_parser_h.html">lightmediascanner_parser.h</a><br />
+    <a href="files/lightmediascanner_scanner_c.html">lightmediascanner_scanner.c</a><br />
+    <a href="files/lightmediascanner_scanner_h.html">lightmediascanner_scanner.h</a><br />
+    <a href="files/parser_test_rb.html">parser_test.rb</a><br />
+    <a href="files/rdoc_c.html">rdoc.c</a><br />
+    <a href="files/ruby-lightmediascanner_c.html">ruby-lightmediascanner.c</a><br />
+    <a href="files/ruby-lightmediascanner_h.html">ruby-lightmediascanner.h</a><br />
+  </div>
+</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/fr_method_index.html b/www/ruby-api/fr_method_index.html
new file mode 100644 (file)
index 0000000..f526b56
--- /dev/null
@@ -0,0 +1,41 @@
+
+<?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">
+
+<!--
+
+    Methods
+
+  -->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>Methods</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+  <link rel="stylesheet" href="rdoc-style.css" type="text/css" />
+  <base target="docwin" />
+</head>
+<body>
+<div id="index">
+  <h1 class="section-bar">Methods</h1>
+  <div id="index-entries">
+    <a href="classes/LightMediaScanner/Scanner.html#M000010">add_charset (LightMediaScanner::Scanner)</a><br />
+    <a href="classes/LightMediaScanner/Scanner.html#M000003">check (LightMediaScanner::Scanner)</a><br />
+    <a href="classes/LightMediaScanner/Scanner.html#M000008">commit_interval (LightMediaScanner::Scanner)</a><br />
+    <a href="classes/LightMediaScanner/Scanner.html#M000009">commit_interval= (LightMediaScanner::Scanner)</a><br />
+    <a href="classes/LightMediaScanner/Scanner.html#M000004">db_path (LightMediaScanner::Scanner)</a><br />
+    <a href="classes/LightMediaScanner/Scanner.html#M000001">new (LightMediaScanner::Scanner)</a><br />
+    <a href="classes/LightMediaScanner/Parser.html#M000012">new (LightMediaScanner::Parser)</a><br />
+    <a href="classes/LightMediaScanner/Scanner.html#M000002">process (LightMediaScanner::Scanner)</a><br />
+    <a href="classes/LightMediaScanner/Scanner.html#M000005">processing? (LightMediaScanner::Scanner)</a><br />
+    <a href="classes/LightMediaScanner/Scanner.html#M000011">remove_charset (LightMediaScanner::Scanner)</a><br />
+    <a href="classes/LightMediaScanner/Test.html#M000013">test_module (LightMediaScanner::Test)</a><br />
+    <a href="classes/LightMediaScanner/Test.html#M000015">test_scanner_baddata (LightMediaScanner::Test)</a><br />
+    <a href="classes/LightMediaScanner/Test.html#M000014">test_scanner_gooddata (LightMediaScanner::Test)</a><br />
+    <a href="classes/LightMediaScanner/Scanner.html#M000006">timeout (LightMediaScanner::Scanner)</a><br />
+    <a href="classes/LightMediaScanner/Scanner.html#M000007">timeout= (LightMediaScanner::Scanner)</a><br />
+  </div>
+</div>
+</body>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/index.html b/www/ruby-api/index.html
new file mode 100644 (file)
index 0000000..ea8e6e6
--- /dev/null
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html 
+     PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
+     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
+
+<!--
+
+    RDoc Documentation
+
+  -->
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>RDoc Documentation</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+</head>
+<frameset rows="20%, 80%">
+    <frameset cols="25%,35%,45%">
+        <frame src="fr_file_index.html"   title="Files" name="Files" />
+        <frame src="fr_class_index.html"  name="Classes" />
+        <frame src="fr_method_index.html" name="Methods" />
+    </frameset>
+    <frame src="files/lightmediascanner_parser_h.html" name="docwin" />
+</frameset>
+</html>
\ No newline at end of file
diff --git a/www/ruby-api/rdoc-style.css b/www/ruby-api/rdoc-style.css
new file mode 100644 (file)
index 0000000..44c7b3d
--- /dev/null
@@ -0,0 +1,208 @@
+
+body {
+    font-family: Verdana,Arial,Helvetica,sans-serif;
+    font-size:   90%;
+    margin: 0;
+    margin-left: 40px;
+    padding: 0;
+    background: white;
+}
+
+h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; }
+h1 { font-size: 150%; }
+h2,h3,h4 { margin-top: 1em; }
+
+a { background: #eef; color: #039; text-decoration: none; }
+a:hover { background: #039; color: #eef; }
+
+/* Override the base stylesheet's Anchor inside a table cell */
+td > a {
+  background: transparent;
+  color: #039;
+  text-decoration: none;
+}
+
+/* and inside a section title */
+.section-title > a {
+  background: transparent;
+  color: #eee;
+  text-decoration: none;
+}
+
+/* === Structural elements =================================== */
+
+div#index {
+    margin: 0;
+    margin-left: -40px;
+    padding: 0;
+    font-size: 90%;
+}
+
+
+div#index a {
+    margin-left: 0.7em;
+}
+
+div#index .section-bar {
+   margin-left: 0px;
+   padding-left: 0.7em;
+   background: #ccc;
+   font-size: small;
+}
+
+
+div#classHeader, div#fileHeader {
+    width: auto;
+    color: white;
+    padding: 0.5em 1.5em 0.5em 1.5em;
+    margin: 0;
+    margin-left: -40px;
+    border-bottom: 3px solid #006;
+}
+
+div#classHeader a, div#fileHeader a {
+    background: inherit;
+    color: white;
+}
+
+div#classHeader td, div#fileHeader td {
+    background: inherit;
+    color: white;
+}
+
+
+div#fileHeader {
+    background: #057;
+}
+
+div#classHeader {
+    background: #048;
+}
+
+
+.class-name-in-header {
+  font-size:  180%;
+  font-weight: bold;
+}
+
+
+div#bodyContent {
+    padding: 0 1.5em 0 1.5em;
+}
+
+div#description {
+    padding: 0.5em 1.5em;
+    background: #efefef;
+    border: 1px dotted #999;
+}
+
+div#description h1,h2,h3,h4,h5,h6 {
+    color: #125;;
+    background: transparent;
+}
+
+div#validator-badges {
+    text-align: center;
+}
+div#validator-badges img { border: 0; }
+
+div#copyright {
+    color: #333;
+    background: #efefef;
+    font: 0.75em sans-serif;
+    margin-top: 5em;
+    margin-bottom: 0;
+    padding: 0.5em 2em;
+}
+
+
+/* === Classes =================================== */
+
+table.header-table {
+    color: white;
+    font-size: small;
+}
+
+.type-note {
+    font-size: small;
+    color: #DEDEDE;
+}
+
+.xxsection-bar {
+    background: #eee;
+    color: #333;
+    padding: 3px;
+}
+
+.section-bar {
+   color: #333;
+   border-bottom: 1px solid #999;
+    margin-left: -20px;
+}
+
+
+.section-title {
+    background: #79a;
+    color: #eee;
+    padding: 3px;
+    margin-top: 2em;
+    margin-left: -30px;
+    border: 1px solid #999;
+}
+
+.top-aligned-row {  vertical-align: top }
+.bottom-aligned-row { vertical-align: bottom }
+
+/* --- Context section classes ----------------------- */
+
+.context-row { }
+.context-item-name { font-family: monospace; font-weight: bold; color: black; }
+.context-item-value { font-size: small; color: #448; }
+.context-item-desc { color: #333; padding-left: 2em; }
+
+/* --- Method classes -------------------------- */
+.method-detail {
+    background: #efefef;
+    padding: 0;
+    margin-top: 0.5em;
+    margin-bottom: 1em;
+    border: 1px dotted #ccc;
+}
+.method-heading {
+  color: black;
+  background: #ccc;
+  border-bottom: 1px solid #666;
+  padding: 0.2em 0.5em 0 0.5em;
+}
+.method-signature { color: black; background: inherit; }
+.method-name { font-weight: bold; }
+.method-args { font-style: italic; }
+.method-description { padding: 0 0.5em 0 0.5em; }
+
+/* --- Source code sections -------------------- */
+
+a.source-toggle { font-size: 90%; }
+div.method-source-code {
+    background: #262626;
+    color: #ffdead;
+    margin: 1em;
+    padding: 0.5em;
+    border: 1px dashed #999;
+    overflow: hidden;
+}
+
+div.method-source-code pre { color: #ffdead; overflow: hidden; }
+
+/* --- Ruby keyword styles --------------------- */
+
+.standalone-code { background: #221111; color: #ffdead; overflow: hidden; }
+
+.ruby-constant  { color: #7fffd4; background: transparent; }
+.ruby-keyword { color: #00ffff; background: transparent; }
+.ruby-ivar    { color: #eedd82; background: transparent; }
+.ruby-operator  { color: #00ffee; background: transparent; }
+.ruby-identifier { color: #ffdead; background: transparent; }
+.ruby-node    { color: #ffa07a; background: transparent; }
+.ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
+.ruby-regexp  { color: #ffa07a; background: transparent; }
+.ruby-value   { color: #7fffd4; background: transparent; }
\ No newline at end of file