? dbus-rating.diff
? burn-sharp/.deps
? burn-sharp/.libs
? burn-sharp/glue.lo
? burn-sharp/libnautilusburnglue.la
? libbanshee/.deps
? libbanshee/.libs
? libbanshee/gst-cd-rip-0.10.lo
? libbanshee/gst-misc-0.10.lo
? libbanshee/gst-playback-0.10.lo
? libbanshee/gst-tagger.lo
? libbanshee/gst-transcode-0.10.lo
? libbanshee/hal-context.lo
? libbanshee/inotify-glue.lo
? libbanshee/libbanshee.la
? po/.intltool-merge-cache
? po/stamp-it
Index: src/Main.cs
===================================================================
RCS file: /cvs/gnome/banshee/src/Main.cs,v
retrieving revision 1.29
diff -u -r1.29 Main.cs
--- src/Main.cs	13 Feb 2006 22:18:07 -0000	1.29
+++ src/Main.cs	17 Apr 2006 11:35:00 -0000
@@ -79,6 +79,7 @@
                 new ArgumentLayout("query-genre",    "Get track genre for current playing song"),
                 new ArgumentLayout("query-duration", "Get duration of current playing song in seconds"),
                 new ArgumentLayout("query-position", "Get position of current playing song in seconds"),
+                new ArgumentLayout("query-rating",   "Get track rating for current playing song"),
                 new ArgumentLayout("query-uri",      "Get URI of current playing song"),
                 new ArgumentLayout("query-cover-uri","Get URI of the album cover of current playing song"),
                 new ArgumentLayout("query-status",   "Get player status (-1: Not loaded, 0: Paused, 1: Playing)"),
@@ -181,6 +182,10 @@
                     break;
                 case "query-position":
                     PrintQueryResult("Position", remote_player.GetPlayingPosition());
+                    present = false;
+                    break;
+                case "query-rating":
+                    PrintQueryResult("Rating", remote_player.GetPlayingRating());
                     present = false;
                     break;
                 case "query-uri":
Index: src/RemotePlayer.cs
===================================================================
RCS file: /cvs/gnome/banshee/src/RemotePlayer.cs,v
retrieving revision 1.6
diff -u -r1.6 RemotePlayer.cs
--- src/RemotePlayer.cs	10 Mar 2006 01:28:51 -0000	1.6
+++ src/RemotePlayer.cs	17 Apr 2006 11:35:00 -0000
@@ -197,6 +197,12 @@
         }
         
         [Method]
+        public virtual int GetPlayingRating()
+        {
+            return HaveTrack ? (int)PlayerEngineCore.CurrentTrack.Rating : -1;
+        }
+        
+        [Method]
         public virtual int GetPlayingStatus()
         {
             return PlayerEngineCore.CurrentState == PlayerEngineState.Playing ? 1 :
