Max Kellermann
|
6961bd61ca
|
LocateUri: migrate from class Error to C++ exceptions
|
2016-10-27 22:04:41 +02:00 |
|
Max Kellermann
|
8d41e9658f
|
Instance: remove Error parameter from GetDatabase()
|
2016-10-26 18:52:00 +02:00 |
|
Max Kellermann
|
2fd5182608
|
db/Interface: GetSong() throws exception on error
|
2016-03-19 00:19:50 +01:00 |
|
Max Kellermann
|
fc2154ee92
|
DetachedSong: move code from Update() to LoadFile()
Avoid duplicate AllocatedPath::FromUTF8() invocations in two callers.
|
2015-10-20 12:10:42 +02:00 |
|
Max Kellermann
|
e0405f1781
|
test/test_translate_song: use PATH_LITERAL()
|
2015-06-22 22:12:08 +02:00 |
|
Max Kellermann
|
7c25d83f1c
|
Tag: use SignedSongTime for the song duration
|
2014-08-29 13:20:58 +02:00 |
|
Max Kellermann
|
6ad933982f
|
DetachedSong: use std::chrono::duration for start_ms and end_ms
|
2014-08-28 13:03:18 +02:00 |
|
Max Kellermann
|
41a7203c28
|
Tag: add class const_iterator and methods begin(), end()
Enables using range-based "for".
|
2014-07-12 17:22:39 +02:00 |
|
Max Kellermann
|
be081929f4
|
storage/local: remove utf8 path from constructor
Build the UTF-8 version of the path automatically in the constructor.
|
2014-02-07 23:41:06 +01:00 |
|
Max Kellermann
|
ffd16b55a6
|
StoragePlugin: add method MapToRelativeUTF8()
Replaces map_to_relative_path() from Mapper.cxx.
|
2014-02-07 19:09:28 +01:00 |
|
Max Kellermann
|
c13810ebaa
|
Mapper: move map_song_detach() to db/DatabaseSong.cxx
Use Storage::MapUTF8() internally, don't use global variables.
|
2014-02-07 00:42:14 +01:00 |
|
Max Kellermann
|
cf6281a5a7
|
Instance: add Database attribute
Move from db/DatabaseGlue.cxx, eliminating global variable.
|
2014-02-04 11:22:33 +01:00 |
|
Max Kellermann
|
29072797ca
|
db/DatabasePlaylist: pass Database reference around
Reduce global variable usage, move to frontend code.
|
2014-02-04 00:57:43 +01:00 |
|
Max Kellermann
|
ca36ac2ba1
|
SongLoader: new class that merges duplicate code
There was quite a lot of duplicate code for loading DetachedSong
objects, with different semantics for "securely" loading local files.
|
2014-02-03 23:32:10 +01:00 |
|
Max Kellermann
|
9d34fc394c
|
Database*: move to db/
|
2014-01-24 16:38:44 +01:00 |
|
Max Kellermann
|
f1f19841bd
|
playlist/*: move to playlist/plugins/
|
2014-01-23 23:30:12 +01:00 |
|
Max Kellermann
|
4f120f3714
|
PlaylistSong: modify the given song object in-place
Reduce bloat.
|
2014-01-21 00:28:37 +01:00 |
|
Max Kellermann
|
dd20a3ce7e
|
test: add unit test for playlist_check_translate_song()
|
2014-01-21 00:28:34 +01:00 |
|