WIP, Remote Client/Server, fist working artist list!

This commit is contained in:
emeric
2014-05-16 14:26:37 +02:00
parent 690fac67e0
commit 3b7813a581
15 changed files with 912 additions and 656 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ Artist::getNone(Wt::Dbo::Session& session)
}
Wt::Dbo::collection<Artist::pointer>
Artist::getAll(Wt::Dbo::Session& session)
Artist::getAll(Wt::Dbo::Session& session, std::size_t offset, std::size_t size)
{
return session.find<Artist>();
return session.find<Artist>().offset(offset).limit(size);
}
+1 -1
View File
@@ -27,7 +27,7 @@ class Artist
// Accessors
static pointer getByName(Wt::Dbo::Session& session, const std::string& name);
static pointer getNone(Wt::Dbo::Session& session);
static Wt::Dbo::collection<pointer> getAll(Wt::Dbo::Session& session);
static Wt::Dbo::collection<pointer> getAll(Wt::Dbo::Session& session, std::size_t offset, std::size_t size);
const std::string& getName(void) const { return _name; }