1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-14 18:35:16 +01:00
Commit Graph

23 Commits

Author SHA1 Message Date
David Sansome
492d8fec87 Use sqlite's Full Text Search on the songs table 2010-06-20 16:30:10 +00:00
David Sansome
91057acd78 Fix some test values 2010-06-17 16:54:23 +00:00
David Sansome
531fa90cbd Fix test compilation 2010-06-02 16:58:34 +00:00
David Sansome
1aee5e4667 Split all the source files up into seven new directories. 2010-05-10 21:50:31 +00:00
David Sansome
1b00aaa8b3 Big refactoring of the Library <-> LibraryBackend <-> SQLite interaction.
The LibraryBackend has now been split into a Database class that deals with setting up sqlite, and PlaylistBackend that contains the functions for persisting the playlist.  The LibraryBackend now only contains functions for accessing "a collection of songs", and can be parameterised with table names to access different collections.  It also no longer lives in a background thread, and follows the Qt memory management model instead of using shared_ptr.
Most of Library has been moved into LibraryModel - a QAbstractItemModel for any LibraryBackend.  What's left of Library is now specific to the user's local library on disk.
2010-05-09 00:10:26 +00:00
David Sansome
d1966aa7f6 Check these additional tables exist 2010-04-14 21:09:28 +00:00
David Sansome
747ae61620 More playlist tests 2010-04-14 15:39:24 +00:00
David Sansome
9f3fc3d8ab Add the library test back in 2010-04-04 16:28:34 +00:00
David Sansome
fd2da463b1 Update library backend tests 2010-04-04 13:17:07 +00:00
John Maguire
df38ebf9d9 A few little mac fixes. 2010-03-30 15:53:45 +00:00
John Maguire
2e71390acd Switch from OR to AND in split queries.
Fixes issue #116
2010-03-25 15:59:58 +00:00
John Maguire
95252ccc71 Support query splitting in library search.
Improve performance of LIKE().
Fixes issue #104
2010-03-25 13:58:24 +00:00
David Sansome
fa00ee971d Add license headers to all our source files 2010-03-23 23:11:46 +00:00
John Maguire
2f350c1ae6 Add unit tests for custom LIKE() function. 2010-03-22 16:03:24 +00:00
David Sansome
9f0e399fba Fix a failing test 2010-03-08 18:07:18 +00:00
John Maguire
64abef1cd4 Make tracks with no album show up.
Fixes issue #57
2010-03-05 10:51:16 +00:00
David Sansome
15797e07c6 Test updating and deleting songs 2010-03-03 18:38:20 +00:00
David Sansome
4652e47c65 Test adding a song without required fields set 2010-03-03 01:39:39 +00:00
David Sansome
fa3858266a Fixed review comments from r307 2010-03-03 00:49:44 +00:00
David Sansome
3f861654ec Some more backend tests 2010-03-03 00:33:31 +00:00
David Sansome
3296bf7b7d LibraryBackend tests should test at a higher level 2010-03-02 23:37:12 +00:00
John Maguire
6a43c8f6c6 Refactor LibraryBackendTest to make it easier to write tests. 2010-03-02 13:35:39 +00:00
John Maguire
864215cb23 Adds a test for LibraryBackend (not as trivial as it sounds :-)
Adds Googlemock.
Adds mock Qt database drivers.
2010-03-01 22:00:15 +00:00