Commits

Matias De lellis committed 708dc1e

Complete methods to get and sabe basics tags.

Comments (0)

Files changed (2)

libtaginfo/info.cc

     return true;
 }
 
-void Info::set_track_name(String new_track_name) {
-    track_name = new_track_name;
-    changedflag |= CHANGED_TITLE_TAG;
+void Info::set_genre(String new_genre) {
+    genre = new_genre;
+    changedflag |= CHANGED_GENRE_TAG;
 }
-String Info::get_track_name(void) {
-    return track_name;
+String Info::get_genre(void) {
+    return genre;
+}
+
+void Info::set_artist(String new_artist) {
+    artist = new_artist;
+    changedflag |= CHANGED_ARTIST_TAG;
+}
+String Info::get_artist(void) {
+    return artist;
+}
+
+void Info::set_album_artist(String new_album_artist) {
+    album_artist = new_album_artist;
+    changedflag |= CHANGED_DATA_ALBUMARTIST;
+}
+String Info::get_album_artist(void) {
+    return album_artist;
+}
+
+void Info::set_album(String new_album) {
+    album_artist = new_album;
+    changedflag |= CHANGED_ALBUM_TAG;
+}
+String Info::get_album(void) {
+    return album;
+}
+
+void Info::set_composer(String new_composer) {
+    composer = new_composer;
+    changedflag |= CHANGED_COMPOSER_TAG;
+}
+String Info::get_composer(void) {
+    return composer;
+}
+
+void Info::set_tracknumber(int new_tracknumber) {
+    tracknumber = new_tracknumber;
+    changedflag |= CHANGED_TRACKNO_TAG;
+
+}
+int Info::get_tracknumber(void) {
+    return tracknumber;
+}
+
+void Info::set_year(int new_year) {
+    year = new_year;
+    changedflag |= CHANGED_YEAR_TAG;
+
+}
+int Info::get_year(void) {
+    return year;
 }
 
 bool Info::can_handle_images(void) {

libtaginfo/taginfo.h

         CHANGED_DATA_LYRICS      = (1 << 10),
         CHANGED_DATA_LABELS      = (1 << 11),
         CHANGED_DATA_RATING      = (1 << 11),
-        CHANGED_DATA_TAGS        = (1 << 12) // Kept for compatibility: TODO: Remove
+        CHANGED_COMPOSER_TAG     = (1 << 12), // TODO: Reoreder them.
+        CHANGED_DATA_TAGS        = (1 << 13) // Kept for compatibility: TODO: Remove
     };
     
     enum ImageType {
             String get_track_name(void);
             void   set_track_name(String new_track_name);
             
-            String get_genre();
+            String get_genre(void);
             void   set_genre(String new_genre);
             
-            String get_artist();
+            String get_artist(void);
             void   set_artist(String new_artist);
             
-            String get_album_artist();
+            String get_album_artist(void);
             void   set_album_artist(String new_artist);
             
-            String get_album();
+            String get_album(void);
             void   set_album(String new_album);
             
-            String get_composer();
+            String get_composer(void);
             void   set_composer(String new_composer);
             
-            String get_comments();
+            String get_comments(void);
             void   set_comments(String new_comments);
             
             int  get_tracknumber();