LeechCraft 0.6.70-14794-g33744ae6ce
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
ilyricsfinder.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include <optional>
12#include <QStringList>
13#include <util/sll/eitherfwd.h>
14
15template<typename>
16class QFuture;
17
18namespace Media
19{
25 {
28 QString Artist_;
29
32 QString Album_;
33
36 QString Title_;
37
40 std::optional<int> Year_;
41
44 std::optional<int> Track_;
45 };
46
55 {
59
62 QString Lyrics_;
63 };
64
70
76 class Q_DECL_EXPORT ILyricsFinder
77 {
78 public:
79 virtual ~ILyricsFinder () {}
80
89
99 };
100}
101
102Q_DECLARE_INTERFACE (Media::ILyricsFinder, "org.LeechCraft.Media.ILyricsFinder/1.0")
Interface for plugins supporting finding lyrics.
Definition: ilyricsfinder.h:77
virtual ~ILyricsFinder()
Definition: ilyricsfinder.h:79
virtual QFuture< LyricsQueryResult_t > RequestLyrics(const LyricsQuery &query)=0
Requests searching for lyrics for the given query.
Describes a lyrics search request.
Definition: ilyricsfinder.h:25
std::optional< int > Track_
The track number.
Definition: ilyricsfinder.h:44
std::optional< int > Year_
The year of the album the track is on.
Definition: ilyricsfinder.h:40
QString Album_
The album this track is on.
Definition: ilyricsfinder.h:32
QString Title_
The title of the track.
Definition: ilyricsfinder.h:36
QString Artist_
The artist preforming the track.
Definition: ilyricsfinder.h:28
Describes a single lyrics result item.
Definition: ilyricsfinder.h:55
QString ProviderName_
The name of the provider lyrics were fetched from.
Definition: ilyricsfinder.h:58
QString Lyrics_
The HTML-formatted lyrics string.
Definition: ilyricsfinder.h:62