Changeset 99
- Timestamp:
- 02/28/07 16:18:26 (1 year ago)
- Files:
-
- dmp/trunk/Bridge/Bridge.cs (modified) (1 diff)
- dmp/trunk/XmLRpcBridgeServer/BridgeXmlRpcServer.cs (modified) (3 diffs)
- dmp/trunk/XmLRpcBridgeServer/XMLRPCBridgeServer.csproj (modified) (1 diff)
- dmp/trunk/gwt-windows-1.3.3/.classpath (modified) (1 diff)
- dmp/trunk/gwt-windows-1.3.3/src/DMP/client/DMPWebsite.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dmp/trunk/Bridge/Bridge.cs
r97 r99 136 136 public Stream getSongStream(int id) 137 137 { 138 int libraryId = this.db.getRemoteLibraryId(id);139 int remoteSongId = this.db.getRemoteSongId(id);138 //int libraryId = this.db.getRemoteLibraryId(id); 139 //int remoteSongId = this.db.getRemoteSongId(id); 140 140 long songSize = this.db.getRemoteSongSize(id); 141 141 142 142 //Track song = clientList[libraryId].Database.LookupTrackById(remoteSongId); 143 //return clientList[libraryId].Database.StreamTrack(song, out songSize); 144 return null; 143 Track song = db.getRemoteTrack(id); 144 return clientList[libraryId].Database.StreamTrack(song, out songSize); 145 //return null; 145 146 } 147 148 /// <summary> 149 /// Gets the track information for the specified track id. 150 /// </summary> 151 /// <param name="id">The id of the requested song.</param> 152 /// <returns>the Track object containing the track information</returns> 153 public Track getTrackInfo(int id) 154 { 155 return db.getRemoteTrack(id); 156 } 146 157 147 158 public String getSongURL(int id) dmp/trunk/XmLRpcBridgeServer/BridgeXmlRpcServer.cs
r86 r99 7 7 using Nwc.XmlRpc; 8 8 using DMP; 9 using DAAP; 9 10 10 11 namespace XMLRPCServerTest … … 19 20 { 20 21 bridge = new Bridge(); 21 bridge.AddServerConnection("localhost", 3689);22 WriteEntry(bridge.AddServerConnection("localhost", 3689).ToString(),EventLogEntryType.Warning); 22 23 int breakPt = 0; 23 24 } … … 64 65 public byte[] getSong(int songID) 65 66 { 67 Console.WriteLine("getSong " + songID + " in BridgeXmlRpcServer"); 66 68 Stream musicStream = bridge.getSongStream(songID); 67 byte[] musicBytes = new byte[musicStream.Length]; 68 musicStream.Read(musicBytes, 0, Convert.ToInt32(musicStream.Length)); 69 Track song = bridge.getTrackInfo(songID); 70 byte[] musicBytes = new byte[song.Size]; 71 musicStream.Read(musicBytes, 0, song.Size); 69 72 return musicBytes; 70 73 } dmp/trunk/XmLRpcBridgeServer/XMLRPCBridgeServer.csproj
r87 r99 71 71 <Name>Bridge</Name> 72 72 </ProjectReference> 73 <ProjectReference Include="..\daap-sharp\daap-sharp.csproj"> 74 <Project>{C7D0CE28-60E1-4FC8-B9E0-DBB9F683E95E}</Project> 75 <Name>daap-sharp</Name> 76 </ProjectReference> 77 <ProjectReference Include="..\DataObjects\DataObjects.csproj"> 78 <Project>{D3451818-BACA-4462-BC01-3E98F10BDF1A}</Project> 79 <Name>DataObjects</Name> 80 </ProjectReference> 73 81 <ProjectReference Include="..\XmlRpcUnaltered\XmlRpcUnaltered.csproj"> 74 82 <Project>{115E72B8-DDB0-4730-B25B-8C962ADF8D91}</Project> dmp/trunk/gwt-windows-1.3.3/.classpath
r85 r99 9 9 <classpathentry kind="lib" path="C:/Documents and Settings/Beverly Fitzpatrick/My Documents/Visual Studio 2005/Projects/DMP/gwt-windows-1.3.3/xmlrpc-3.0/lib/xmlrpc-client-3.0.jar" sourcepath="C:/Documents and Settings/Beverly Fitzpatrick/My Documents/Visual Studio 2005/Projects/DMP/gwt-windows-1.3.3/xmlrpc-3.0/lib/xmlrpc-client-3.0-sources.jar"/> 10 10 <classpathentry kind="lib" path="C:/Documents and Settings/Beverly Fitzpatrick/My Documents/Visual Studio 2005/Projects/DMP/gwt-windows-1.3.3/xmlrpc-3.0/lib/xmlrpc-common-3.0.jar" sourcepath="C:/Documents and Settings/Beverly Fitzpatrick/My Documents/Visual Studio 2005/Projects/DMP/gwt-windows-1.3.3/xmlrpc-3.0/lib/xmlrpc-common-3.0-sources.jar"/> 11 <classpathentry kind="lib" path="translate-as1-2.0.5/translate.jar" sourcepath="C:/Documents and Settings/Beverly Fitzpatrick/My Documents/Visual Studio 2005/Projects/DMP/gwt-windows-1.3.3/translate-as1-2.0.5/src">12 <attributes>13 <attribute name="javadoc_location" value="file:/C:/Documents and Settings/Beverly Fitzpatrick/My Documents/Visual Studio 2005/Projects/DMP/gwt-windows-1.3.3/translate-as1-2.0.5/doc/datasheets/"/>14 </attributes>15 </classpathentry>16 11 <classpathentry kind="lib" path="transform-2.1.5/transform.jar" sourcepath="transform-2.1.5/src"> 17 12 <attributes> dmp/trunk/gwt-windows-1.3.3/src/DMP/client/DMPWebsite.java
r78 r99 84 84 topPanel.add(logo); 85 85 topPanel.add(flashPanel); 86 Button refreshButton = new Button("Refresh"); 87 refreshButton.addClickListener(new ClickListener(){ 88 public void onClick(Widget w) 89 { 90 getSongsFromCollection(); 91 } 92 }); 93 topPanel.add(refreshButton); 86 94 mainPanel.add(topPanel, DockPanel.NORTH); 87 95
