[UI/MOBILE] Handling year in release

This commit is contained in:
emeric
2015-11-22 15:01:00 +01:00
parent fc88cce33e
commit 963e5911e3
4 changed files with 41 additions and 14 deletions
+3
View File
@@ -53,6 +53,9 @@ class Release : public Wt::Dbo::Dbo<Release>
// Create
static pointer create(Wt::Dbo::Session& session, const std::string& name, const std::string& MBID = "");
// Utility functions
int getReleaseYear(bool originalDate = false) const; // 0 if unknown or various
// MVC models for the user interface
// ID, Release name, year, track counts
typedef boost::tuple<id_type, std::string, boost::posix_time::ptime, int> UIQueryResult;