[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [libechonest] src: Add artist year before/after dates to Song API
From:       Leo Franchi <lfranchi () kde ! org>
Date:       2013-05-19 2:28:29
Message-ID: 20130519022829.1F2A5A606F () git ! kde ! org
[Download RAW message or body]

Git commit 80d700ebee6e7e154c22108cdf264e3ce283604a by Leo Franchi.
Committed on 19/05/2013 at 04:26.
Pushed by lfranchi into branch 'master'.

Add artist year before/after dates to Song API

M  +8    -0    src/Song.cpp
M  +5    -1    src/Song.h

http://commits.kde.org/libechonest/80d700ebee6e7e154c22108cdf264e3ce283604a

diff --git a/src/Song.cpp b/src/Song.cpp
index b792c52..c13c0a2 100644
--- a/src/Song.cpp
+++ b/src/Song.cpp
@@ -388,6 +388,14 @@ QByteArray Echonest::Song::searchParamToString( Echone=
st::Song::SearchParam para
             return "sort";
         case Echonest::Song::SongType:
             return "song_type";
+        case Echonest::Song::ArtistStartYearBefore:
+            return "artist_start_year_before";
+        case Echonest::Song::ArtistStartYearAfter:
+            return "artist_start_year_after";
+        case Echonest::Song::ArtistEndYearBefore:
+            return "artist_endt_year_before";
+        case Echonest::Song::ArtistEndYearAfter:
+            return "artist_end_year_after";
     }
     return QByteArray();
 }
diff --git a/src/Song.h b/src/Song.h
index 8a51b9a..9f1922a 100644
--- a/src/Song.h
+++ b/src/Song.h
@@ -78,7 +78,11 @@ public:
       Mode,
       Key,
       Sort,
-      SongType
+      SongType,
+      ArtistStartYearBefore,
+      ArtistStartYearAfter,
+      ArtistEndYearBefore,
+      ArtistEndYearAfter
   };
   typedef QPair< Echonest::Song::SearchParam, QVariant > SearchParamData;
   typedef QVector< SearchParamData > SearchParams;

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic