daapclient 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +9 -1
- data/lib/itunes_sync.rb +19 -0
- data/lib/net/CVS/Entries +1 -1
- data/lib/net/daap/CVS/Entries +1 -1
- data/lib/net/daap/dmap.rb +42 -13
- data/lib/net/daap.rb +13 -9
- metadata +61 -123
- data/doc/classes/Net/DAAP/Client.html +0 -251
- data/doc/classes/Net/DAAP/Client.src/M000003.html +0 -20
- data/doc/classes/Net/DAAP/Client.src/M000004.html +0 -25
- data/doc/classes/Net/DAAP/Client.src/M000005.html +0 -33
- data/doc/classes/Net/DAAP/Client.src/M000006.html +0 -37
- data/doc/classes/Net/DAAP/Client.src/M000007.html +0 -20
- data/doc/classes/Net/DAAP/Client.src/M000008.html +0 -24
- data/doc/classes/Net/DAAP/DAAPv2.html +0 -165
- data/doc/classes/Net/DAAP/DAAPv2.src/M000015.html +0 -30
- data/doc/classes/Net/DAAP/DAAPv2.src/M000016.html +0 -21
- data/doc/classes/Net/DAAP/DAAPv3.html +0 -178
- data/doc/classes/Net/DAAP/DAAPv3.src/M000017.html +0 -30
- data/doc/classes/Net/DAAP/DAAPv3.src/M000018.html +0 -23
- data/doc/classes/Net/DAAP/DMAP.html +0 -189
- data/doc/classes/Net/DAAP/DMAP.src/M000012.html +0 -20
- data/doc/classes/Net/DAAP/DMAP.src/M000013.html +0 -18
- data/doc/classes/Net/DAAP/DMAP.src/M000014.html +0 -24
- data/doc/classes/Net/DAAP/Database.html +0 -224
- data/doc/classes/Net/DAAP/Database.src/M000009.html +0 -25
- data/doc/classes/Net/DAAP/Database.src/M000010.html +0 -21
- data/doc/classes/Net/DAAP/Database.src/M000011.html +0 -35
- data/doc/classes/Net/DAAP/Playlist.html +0 -192
- data/doc/classes/Net/DAAP/Playlist.src/M000001.html +0 -24
- data/doc/classes/Net/DAAP/Playlist.src/M000002.html +0 -30
- data/doc/classes/Net/DAAP/Song.html +0 -208
- data/doc/classes/Net/DAAP/Song.src/M000019.html +0 -27
- data/doc/classes/Net/DAAP/Song.src/M000020.html +0 -19
- data/doc/classes/Net/DAAP.html +0 -168
- data/doc/classes/Net.html +0 -127
- data/doc/created.rid +0 -1
- data/doc/files/CHANGELOG.html +0 -110
- data/doc/files/LICENSE.html +0 -531
- data/doc/files/README.html +0 -176
- data/doc/files/lib/net/daap/database_rb.html +0 -101
- data/doc/files/lib/net/daap/dmap_rb.html +0 -101
- data/doc/files/lib/net/daap/playlist_rb.html +0 -101
- data/doc/files/lib/net/daap/song_rb.html +0 -101
- data/doc/files/lib/net/daap_rb.html +0 -114
- data/doc/fr_class_index.html +0 -35
- data/doc/fr_file_index.html +0 -34
- data/doc/fr_method_index.html +0 -46
- data/doc/index.html +0 -24
- data/doc/rdoc-style.css +0 -208
@@ -1,189 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Net::DAAP::DMAP</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Net::DAAP::DMAP</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/net/daap/dmap_rb.html">
|
59
|
-
lib/net/daap/dmap.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
This class decodes responses from the <a href="../DAAP.html">DAAP</a>
|
84
|
-
server in to useful data structures.
|
85
|
-
</p>
|
86
|
-
|
87
|
-
</div>
|
88
|
-
|
89
|
-
|
90
|
-
</div>
|
91
|
-
|
92
|
-
<div id="method-list">
|
93
|
-
<h3 class="section-bar">Methods</h3>
|
94
|
-
|
95
|
-
<div class="name-list">
|
96
|
-
<a href="#M000013">find</a>
|
97
|
-
<a href="#M000014">flat_list</a>
|
98
|
-
<a href="#M000012">new</a>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
<!-- if includes -->
|
106
|
-
|
107
|
-
<div id="section">
|
108
|
-
|
109
|
-
|
110
|
-
<div id="constants-list">
|
111
|
-
<h3 class="section-bar">Constants</h3>
|
112
|
-
|
113
|
-
<div class="name-list">
|
114
|
-
<table summary="Constants">
|
115
|
-
<tr class="top-aligned-row context-row">
|
116
|
-
<td class="context-item-name">TYPE_TO_UNPACK</td>
|
117
|
-
<td>=</td>
|
118
|
-
<td class="context-item-value">{ 1 => 'c', 3 => 'n', 5 => 'N', 7 => 'Q', 9 => 'a*', 10 => 'N', 11 => 'nn', 42 => 'a*'</td>
|
119
|
-
</tr>
|
120
|
-
</table>
|
121
|
-
</div>
|
122
|
-
</div>
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
<!-- if method_list -->
|
130
|
-
<div id="methods">
|
131
|
-
<h3 class="section-bar">Public Class methods</h3>
|
132
|
-
|
133
|
-
<div id="method-M000012" class="method-detail">
|
134
|
-
<a name="M000012"></a>
|
135
|
-
|
136
|
-
<div class="method-heading">
|
137
|
-
<a href="DMAP.src/M000012.html" target="Code" class="method-signature"
|
138
|
-
onclick="popupCode('DMAP.src/M000012.html');return false;">
|
139
|
-
<span class="method-name">new</span><span class="method-args">(args)</span>
|
140
|
-
</a>
|
141
|
-
</div>
|
142
|
-
|
143
|
-
<div class="method-description">
|
144
|
-
</div>
|
145
|
-
</div>
|
146
|
-
|
147
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
148
|
-
|
149
|
-
<div id="method-M000013" class="method-detail">
|
150
|
-
<a name="M000013"></a>
|
151
|
-
|
152
|
-
<div class="method-heading">
|
153
|
-
<a href="DMAP.src/M000013.html" target="Code" class="method-signature"
|
154
|
-
onclick="popupCode('DMAP.src/M000013.html');return false;">
|
155
|
-
<span class="method-name">find</span><span class="method-args">(data, to_find)</span>
|
156
|
-
</a>
|
157
|
-
</div>
|
158
|
-
|
159
|
-
<div class="method-description">
|
160
|
-
</div>
|
161
|
-
</div>
|
162
|
-
|
163
|
-
<div id="method-M000014" class="method-detail">
|
164
|
-
<a name="M000014"></a>
|
165
|
-
|
166
|
-
<div class="method-heading">
|
167
|
-
<a href="DMAP.src/M000014.html" target="Code" class="method-signature"
|
168
|
-
onclick="popupCode('DMAP.src/M000014.html');return false;">
|
169
|
-
<span class="method-name">flat_list</span><span class="method-args">(data)</span>
|
170
|
-
</a>
|
171
|
-
</div>
|
172
|
-
|
173
|
-
<div class="method-description">
|
174
|
-
</div>
|
175
|
-
</div>
|
176
|
-
|
177
|
-
|
178
|
-
</div>
|
179
|
-
|
180
|
-
|
181
|
-
</div>
|
182
|
-
|
183
|
-
|
184
|
-
<div id="validator-badges">
|
185
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
186
|
-
</div>
|
187
|
-
|
188
|
-
</body>
|
189
|
-
</html>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>new (Net::DAAP::DMAP)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/net/daap/dmap.rb, line 6</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span>)
|
15
|
-
<span class="ruby-ivar">@daap</span> = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:daap</span>]
|
16
|
-
<span class="ruby-identifier">load_types</span>
|
17
|
-
<span class="ruby-identifier">update_content_codes</span>
|
18
|
-
<span class="ruby-keyword kw">end</span></pre>
|
19
|
-
</body>
|
20
|
-
</html>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>find (Net::DAAP::DMAP)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/net/daap/dmap.rb, line 12</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">to_find</span>)
|
15
|
-
<span class="ruby-identifier">seek</span>(<span class="ruby-identifier">unpack</span>(<span class="ruby-identifier">data</span>), <span class="ruby-identifier">to_find</span>)
|
16
|
-
<span class="ruby-keyword kw">end</span></pre>
|
17
|
-
</body>
|
18
|
-
</html>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>flat_list (Net::DAAP::DMAP)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/net/daap/dmap.rb, line 16</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">flat_list</span>(<span class="ruby-identifier">data</span>)
|
15
|
-
<span class="ruby-identifier">struct</span> = <span class="ruby-identifier">unpack</span>(<span class="ruby-identifier">data</span>)
|
16
|
-
<span class="ruby-identifier">hash_list</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
|
17
|
-
<span class="ruby-identifier">flat_list</span> = <span class="ruby-identifier">flat_list_traverse</span>(<span class="ruby-identifier">struct</span>)
|
18
|
-
<span class="ruby-value">0</span>.<span class="ruby-identifier">step</span>(<span class="ruby-identifier">flat_list</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>, <span class="ruby-value">2</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
|
19
|
-
<span class="ruby-identifier">hash_list</span>[<span class="ruby-identifier">flat_list</span>[<span class="ruby-identifier">i</span>]] = <span class="ruby-identifier">flat_list</span>[<span class="ruby-identifier">i</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>]
|
20
|
-
<span class="ruby-keyword kw">end</span>
|
21
|
-
<span class="ruby-identifier">hash_list</span>
|
22
|
-
<span class="ruby-keyword kw">end</span></pre>
|
23
|
-
</body>
|
24
|
-
</html>
|
@@ -1,224 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Net::DAAP::Database</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Net::DAAP::Database</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../../files/lib/net/daap/database_rb.html">
|
59
|
-
lib/net/daap/database.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
This class contains a database found on an iTunes server.
|
84
|
-
</p>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div id="method-list">
|
92
|
-
<h3 class="section-bar">Methods</h3>
|
93
|
-
|
94
|
-
<div class="name-list">
|
95
|
-
<a href="#M000009">new</a>
|
96
|
-
<a href="#M000011">playlists</a>
|
97
|
-
<a href="#M000010">songs</a>
|
98
|
-
</div>
|
99
|
-
</div>
|
100
|
-
|
101
|
-
</div>
|
102
|
-
|
103
|
-
|
104
|
-
<!-- if includes -->
|
105
|
-
|
106
|
-
<div id="section">
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
<div id="attribute-list">
|
113
|
-
<h3 class="section-bar">Attributes</h3>
|
114
|
-
|
115
|
-
<div class="name-list">
|
116
|
-
<table>
|
117
|
-
<tr class="top-aligned-row context-row">
|
118
|
-
<td class="context-item-name">containercount</td>
|
119
|
-
<td class="context-item-value"> [R] </td>
|
120
|
-
<td class="context-item-desc"></td>
|
121
|
-
</tr>
|
122
|
-
<tr class="top-aligned-row context-row">
|
123
|
-
<td class="context-item-name">id</td>
|
124
|
-
<td class="context-item-value"> [R] </td>
|
125
|
-
<td class="context-item-desc"></td>
|
126
|
-
</tr>
|
127
|
-
<tr class="top-aligned-row context-row">
|
128
|
-
<td class="context-item-name">itemcount</td>
|
129
|
-
<td class="context-item-value"> [R] </td>
|
130
|
-
<td class="context-item-desc"></td>
|
131
|
-
</tr>
|
132
|
-
<tr class="top-aligned-row context-row">
|
133
|
-
<td class="context-item-name">name</td>
|
134
|
-
<td class="context-item-value"> [R] </td>
|
135
|
-
<td class="context-item-desc"></td>
|
136
|
-
</tr>
|
137
|
-
<tr class="top-aligned-row context-row">
|
138
|
-
<td class="context-item-name">persistentid</td>
|
139
|
-
<td class="context-item-value"> [R] </td>
|
140
|
-
<td class="context-item-desc"></td>
|
141
|
-
</tr>
|
142
|
-
<tr class="top-aligned-row context-row">
|
143
|
-
<td class="context-item-name">playlists</td>
|
144
|
-
<td class="context-item-value"> [R] </td>
|
145
|
-
<td class="context-item-desc"></td>
|
146
|
-
</tr>
|
147
|
-
<tr class="top-aligned-row context-row">
|
148
|
-
<td class="context-item-name">songs</td>
|
149
|
-
<td class="context-item-value"> [R] </td>
|
150
|
-
<td class="context-item-desc"></td>
|
151
|
-
</tr>
|
152
|
-
</table>
|
153
|
-
</div>
|
154
|
-
</div>
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
<!-- if method_list -->
|
159
|
-
<div id="methods">
|
160
|
-
<h3 class="section-bar">Public Class methods</h3>
|
161
|
-
|
162
|
-
<div id="method-M000009" class="method-detail">
|
163
|
-
<a name="M000009"></a>
|
164
|
-
|
165
|
-
<div class="method-heading">
|
166
|
-
<a href="Database.src/M000009.html" target="Code" class="method-signature"
|
167
|
-
onclick="popupCode('Database.src/M000009.html');return false;">
|
168
|
-
<span class="method-name">new</span><span class="method-args">(args)</span>
|
169
|
-
</a>
|
170
|
-
</div>
|
171
|
-
|
172
|
-
<div class="method-description">
|
173
|
-
</div>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
177
|
-
|
178
|
-
<div id="method-M000011" class="method-detail">
|
179
|
-
<a name="M000011"></a>
|
180
|
-
|
181
|
-
<div class="method-heading">
|
182
|
-
<a href="Database.src/M000011.html" target="Code" class="method-signature"
|
183
|
-
onclick="popupCode('Database.src/M000011.html');return false;">
|
184
|
-
<span class="method-name">playlists</span><span class="method-args">() {|Playlist.new( :pl_info => value, :daap => @daap, :db => self )| ...}</span>
|
185
|
-
</a>
|
186
|
-
</div>
|
187
|
-
|
188
|
-
<div class="method-description">
|
189
|
-
<p>
|
190
|
-
Returns the playlists associated with this database
|
191
|
-
</p>
|
192
|
-
</div>
|
193
|
-
</div>
|
194
|
-
|
195
|
-
<div id="method-M000010" class="method-detail">
|
196
|
-
<a name="M000010"></a>
|
197
|
-
|
198
|
-
<div class="method-heading">
|
199
|
-
<a href="Database.src/M000010.html" target="Code" class="method-signature"
|
200
|
-
onclick="popupCode('Database.src/M000010.html');return false;">
|
201
|
-
<span class="method-name">songs</span><span class="method-args">() {|s| ...}</span>
|
202
|
-
</a>
|
203
|
-
</div>
|
204
|
-
|
205
|
-
<div class="method-description">
|
206
|
-
<p>
|
207
|
-
Returns the songs associated with this database
|
208
|
-
</p>
|
209
|
-
</div>
|
210
|
-
</div>
|
211
|
-
|
212
|
-
|
213
|
-
</div>
|
214
|
-
|
215
|
-
|
216
|
-
</div>
|
217
|
-
|
218
|
-
|
219
|
-
<div id="validator-badges">
|
220
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
221
|
-
</div>
|
222
|
-
|
223
|
-
</body>
|
224
|
-
</html>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>new (Net::DAAP::Database)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/net/daap/database.rb, line 11</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span>)
|
15
|
-
<span class="ruby-identifier">info</span> = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:db_info</span>]
|
16
|
-
<span class="ruby-ivar">@persistentid</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'dmap.persistentid'</span>]
|
17
|
-
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'dmap.itemname'</span>]
|
18
|
-
<span class="ruby-ivar">@containercount</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'dmap.containercount'</span>]
|
19
|
-
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'dmap.itemid'</span>]
|
20
|
-
<span class="ruby-ivar">@itemcount</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'dmap.itemcount'</span>]
|
21
|
-
<span class="ruby-ivar">@daap</span> = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:daap</span>]
|
22
|
-
<span class="ruby-ivar">@songs</span> = <span class="ruby-identifier">load_songs</span>
|
23
|
-
<span class="ruby-keyword kw">end</span></pre>
|
24
|
-
</body>
|
25
|
-
</html>
|
@@ -1,21 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>songs (Net::DAAP::Database)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/net/daap/database.rb, line 23</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">songs</span>
|
15
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
16
|
-
<span class="ruby-ivar">@songs</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">s</span> }
|
17
|
-
<span class="ruby-keyword kw">end</span>
|
18
|
-
<span class="ruby-ivar">@songs</span>
|
19
|
-
<span class="ruby-keyword kw">end</span></pre>
|
20
|
-
</body>
|
21
|
-
</html>
|
@@ -1,35 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html>
|
7
|
-
<head>
|
8
|
-
<title>playlists (Net::DAAP::Database)</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
|
11
|
-
</head>
|
12
|
-
<body class="standalone-code">
|
13
|
-
<pre><span class="ruby-comment cmt"># File lib/net/daap/database.rb, line 31</span>
|
14
|
-
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">playlists</span>
|
15
|
-
<span class="ruby-identifier">url</span> = <span class="ruby-node">"databases/#{@id}/containers?meta=dmap.itemid,dmap.itemname,dmap.persistentid,com.apple.itunes.smart-playlist"</span>
|
16
|
-
<span class="ruby-identifier">res</span> = <span class="ruby-ivar">@daap</span>.<span class="ruby-identifier">do_get</span>(<span class="ruby-identifier">url</span>)
|
17
|
-
|
18
|
-
<span class="ruby-identifier">listings</span> = <span class="ruby-ivar">@daap</span>.<span class="ruby-identifier">dmap</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">res</span>, <span class="ruby-value str">"daap.databaseplaylists/dmap.listing"</span>)
|
19
|
-
|
20
|
-
<span class="ruby-identifier">playlists</span> = []
|
21
|
-
<span class="ruby-ivar">@daap</span>.<span class="ruby-identifier">unpack_listing</span>(<span class="ruby-identifier">listings</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">value</span><span class="ruby-operator">|</span>
|
22
|
-
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">block_given?</span>
|
23
|
-
<span class="ruby-keyword kw">yield</span> <span class="ruby-constant">Playlist</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">:pl_info</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">value</span>,
|
24
|
-
<span class="ruby-identifier">:daap</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@daap</span>,
|
25
|
-
<span class="ruby-identifier">:db</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span> )
|
26
|
-
<span class="ruby-keyword kw">else</span>
|
27
|
-
<span class="ruby-identifier">playlists</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Playlist</span>.<span class="ruby-identifier">new</span>( <span class="ruby-identifier">:pl_info</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">value</span>,
|
28
|
-
<span class="ruby-identifier">:daap</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@daap</span>,
|
29
|
-
<span class="ruby-identifier">:db</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">self</span> )
|
30
|
-
<span class="ruby-keyword kw">end</span>
|
31
|
-
<span class="ruby-keyword kw">end</span>
|
32
|
-
<span class="ruby-identifier">playlists</span>
|
33
|
-
<span class="ruby-keyword kw">end</span></pre>
|
34
|
-
</body>
|
35
|
-
</html>
|