Changeset 17 for lib/song.cpp


Ignore:
Timestamp:
12/30/07 20:55:36 (4 years ago)
Author:
sander
Message:

Lots of updates, the music library is now being showed in the tree view. Though it doesn't actually do anything yet.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/song.cpp

    r15 r17  
    55    id = -1; 
    66    time = 0; 
    7     track = 0; 
     7    track = -1; 
    88    pos = 0; 
    99} 
     10 
     11bool Song::isEmpty() const 
     12{ 
     13    return (artist.isEmpty() && album.isEmpty() && title.isEmpty()); 
     14} 
     15 
     16void Song::fillEmptyFields() 
     17{ 
     18    if(artist.isEmpty()) 
     19        artist = "<Unknown>"; 
     20 
     21    if(album.isEmpty()) 
     22        album = "<Unknown>"; 
     23 
     24    if(title.isEmpty()) 
     25        title = "<Unknown>"; 
     26} 
Note: See TracChangeset for help on using the changeset viewer.