I've thought of two ideas so far, but could use some input to determine the best solution overall.
a) Detect that the song is not in the library and therefore hide the ratings and up/down buttons.
Can someone point me to existing code that hides xbmc interface items based upon criteria?
b) Detect that the song is not in the library and therefore pop a dialog when the user tries to change the song rating.
Can someone point me to existing code that pops an xbmc messagebox?
For both ideas, I need to be able to determine if the song is in the library db. Can someone point me to the proper way to detect if a song is in the music library database?
Additionally, this code comment makes me wonder if the functionality I'm hoping to fix is resolved by opening the database for write.
if (db.Open()) // OpenForWrite() ?