TTKMusicPlayer  4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicwyqueryinterface.h
Go to the documentation of this file.
1 #ifndef MUSICWYQUERYINTERFACE_H
2 #define MUSICWYQUERYINTERFACE_H
3 
4 /***************************************************************************
5  * This file is part of the TTK Music Player project
6  * Copyright (C) 2015 - 2026 Greedysky Studio
7 
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 3 of the License, or
11  * (at your option) any later version.
12 
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17 
18  * You should have received a copy of the GNU General Public License along
19  * with this program; If not, see <http://www.gnu.org/licenses/>.
20  ***************************************************************************/
21 
22 #include "musicglobaldefine.h"
23 
24 static constexpr const char *WY_SEARCH_URL = "STg2eHNFN0FLWnRzeDNlQXRlaHIvVlJ6b2k5a2s3Y2JmMG9lUEQzTytuNG5JenowY3ZleC9SbXFyak1ta29pYzA3dytZZz09";
25 static constexpr const char *WY_SEARCH_DATA_URL = "enoyd2tlWk4xYk1JUUIraXg5bzBUV2FvMTBvVWNVMWVxUmh2YUJqcVhoMW44cldwRldISVNqK09WVml0dDg4d2YwdllwZz09";
26 static constexpr const char *WY_SONG_LRC_OLD_URL = "eEZRWnA5eWZZZWFvakpnQ2F2Sml1aTZQa1crekFlZUJoTXUwRUgwekRtOXFsU2l2S1BKZFdwTUVaNGRzWUJ2ZTNpdlRDNnVuTUt2M0xtUTRsaWh2NTZBQ0JacnNTbXp6";
27 static constexpr const char *WY_TOPLIST_URL = "VUdTa0xMeG1Nblc4cThoS2E1QzhJK0lrTHJBRmk4TUJZMC9NQW1GanZydDJmR0VJVVRZNmJQSEhOZU96aE55bTJxdW55RldJOHl6aElNdTlHbkZkSmc9PQ==";
28 static constexpr const char *WY_TOPLIST_DATA_URL = "dTJrZloxZDVFSU9GSEowWjFoaGI1Z2FlMFd1alE4aFRiS05zUFZHMDNJd0lJejFMSVIwWXVndWhRU2ZZRXA5WnY3b0dVcklGZHd1K3R2aEJqRVo2c0JvTkdKWkNEL3Qz";
29 
30 class QNetworkRequest;
31 
35 namespace ReqWYInterface
36 {
40  void makeRequestRawHeader(QNetworkRequest *request) noexcept;
41 
45  QString makeSongArtist(const QString &in, const QString &name);
49  QString makeCoverPixmapUrl(const QString &id);
50 
54  QByteArray makeTokenRequest(QNetworkRequest *request, const QString &query, const QString &data);
58  QByteArray makeTokenRequest(QNetworkRequest *request, const QString &url, const QString &query, const QString &data);
59 
63  void parseFromSongProperty(TTK::MusicSongInformation *info, int bitrate);
67  void parseFromSongProperty(TTK::MusicSongInformation *info, const QVariantMap &key);
68 
69 }
70 
71 #endif // MUSICWYQUERYINTERFACE_H
static constexpr const char * WY_SEARCH_DATA_URL
QString makeSongArtist(const QString &in, const QString &name)
void makeRequestRawHeader(QNetworkRequest *request) noexcept
static constexpr const char * WY_TOPLIST_DATA_URL
static constexpr const char * WY_TOPLIST_URL
const char * name
Definition: http_parser.c:458
static constexpr const char * WY_SONG_LRC_OLD_URL
static constexpr wchar_t key[]
The namespace of the wangyi request interface.
void parseFromSongProperty(TTK::MusicSongInformation *info, int bitrate)
QByteArray makeTokenRequest(QNetworkRequest *request, const QString &query, const QString &data)
The class of the music song information.
Definition: musicobject.h:300
QString makeCoverPixmapUrl(const QString &id)
static constexpr const char * WY_SEARCH_URL