diff options
Diffstat (limited to 'src/queue/Queue.hxx')
-rw-r--r-- | src/queue/Queue.hxx | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/queue/Queue.hxx b/src/queue/Queue.hxx index bd2f95c1a..06e800479 100644 --- a/src/queue/Queue.hxx +++ b/src/queue/Queue.hxx @@ -284,8 +284,28 @@ struct Queue { /** * Moves a song to a new position in the "order" list. + * + * @return to_order + */ + unsigned MoveOrder(unsigned from_order, unsigned to_order) noexcept; + + /** + * Moves a song to a new position in the "order" list before + * the given one. + * + * @return the new order number of the given "from" song + */ + unsigned MoveOrderBefore(unsigned from_order, + unsigned to_order) noexcept; + + /** + * Moves a song to a new position in the "order" list after + * the given one. + * + * @return the new order number of the given "from" song */ - void MoveOrder(unsigned from_order, unsigned to_order) noexcept; + unsigned MoveOrderAfter(unsigned from_order, + unsigned to_order) noexcept; /** * Moves a song to a new position. |