TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicsongsharingwidget.h
Go to the documentation of this file.
1 #ifndef MUSICSONGSHARINGWIDGET_H
2 #define MUSICSONGSHARINGWIDGET_H
3 
4 /***************************************************************************
5  * This file is part of the TTK Music Player project
6  * Copyright (C) 2015 - 2024 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 
23 
24 static constexpr const char *WY_SG_SHARE = "TEVOTmViQm1OblVEM2JMUlhIM0ZoTk9sK2Y3aDJMb1I5cTRSQWYxemlVR0xyRVJsR1o3TUhRPT0=";
25 static constexpr const char *KG_SG_SHARE = "U3g3a2NLTnAvbGJjNXlqTjZuSkhHL0FDS2NMdTZ4U0UwN09jZEhLU0dYYnNMOXl1b3NNb3VRPT0=";
26 static constexpr const char *KW_SG_SHARE = "bThPbExsSllKcjU2MVpHa3NhaElaODNNczMyOHJ3N0RYakkzb1lUUEliYz0=";
27 
28 static constexpr const char *WY_PL_SHARE = "cVhNOXVnOHp2ZVI1S21rd1RHOC8vWkE2ZWhLa0NFaHZuZlpXc2RBaU5KRWRnd091VVI2VDFMd21Pbms9";
29 static constexpr const char *KG_PL_SHARE = "ZEhtM3BHZUZ3UDJoWE5Kbi9Bc1JVcWxlbXdLZFIrc1JIbHlmR09CR2xEYzQ4K0JYN3JWWHBrbzYyUGpKOHBRZjArL0thQT09";
30 static constexpr const char *KW_PL_SHARE = "dG1JTHFsTms5UjdjbExUK0Q2emMwZnVpMS82blU3Tkt4OXRQcngvcS9SVFl6bWVFa2NjbnduTXltZnM9";
31 
32 static constexpr const char *WY_AR_SHARE = "NHdtOUsxRjZ5YkdEOWhHVGcwelVwWVUwQTY5THZvUnk5d3hyZkdmdGhBN3BmU0htdllzeU13PT0=";
33 static constexpr const char *KG_AR_SHARE = "dVdUSGtqTEw0Z29vVHo4WUZEcWVsOVNBQ0hTNkhoQ0E3NnoyYlJ1R0xlc3VVQzlwamcrMm1CUUFmR2tJY1laQQ==";
34 static constexpr const char *KW_AR_SHARE = "YU4zcFJ3bndBRjZWMXVDeFdzbGpVV3Y4dm5aelV6STdPT3d3M3VQTGxjTUhmb2hvUUN1YkZ1QVZEaFk9";
35 
36 static constexpr const char *WY_AL_SHARE = "WmJQamdNaS9CL1hWUmhsejFYMDdZZlpMd002MlhRdnBWSjlVcWtVZjJmNUtEMXRNcGZ6enFnPT0=";
37 static constexpr const char *KG_AL_SHARE = "dnFzTzNVaU1hUmJkTWwyTFNsdXNoNVB6SWZDN1MvRnRUTjlGQ05TZDIzanJZOVk0OVhyS2JwbHIzSE9sanErSA==";
38 static constexpr const char *KW_AL_SHARE = "SW5jUzJnLy9keTEraGNPWU9va2NGRjFmaFFidU5DTHFpTmZMa2NaQUtZbz0=";
39 
40 static constexpr const char *WY_MV_SHARE = "Qjh6UWM4QjB4QkpBS3FWRVI5STZSZnZDVkRvMlhQLzZ5aklZMkFmbzRGM3BUNVJI";
41 static constexpr const char *KG_MV_SHARE = "Y1d2TGY3MVVJa0tXK2dweGEvdzVYRTVmWGFhdjE0VFZPRlhUc3dNZ0NjWWRsek5DdDFZcDRKVlN2NXc9";
42 static constexpr const char *KW_MV_SHARE = "ZVdIcDFqSnJHbGhWZDl4L01sNmtvTDRZeWVNMzNMc2FZQU9CemtHaldnND0=";
43 
44 static constexpr const char *QQ_SHARE = "OXJEQURWRlk3c2ZJYjE2RXRtVVJyWVduaUNVMlFFdTNpY3l4U1pudS9CcFdudEZXdVFRL0VHZ3Ryc3NjWnBWM0JPeVY3UUIvWnNkNklVSEdhL3JzVEZTOEY3b015SnZIMkN2cXE1VytEWjhYOURMQ0FtZS9HWWlKd0xwaUJ0Rk4=";
45 static constexpr const char *QZONE_SHARE = "ck9FZHQzNmJkdzZBMC9KeGhCVGJNODlJUHYyYU5VUmF5eDFPdTJrZGQzZ2NzdFJlTkVRUjRPUGo0OTk0Zk5LWmY3S3BrRGQ2Vk15cUxYQXpraTZ3Vm45WGtMemJrL0FJQmJ1TXdTYTJoREJxcmEza2RHVktBS09HUGlGYVlFVTNrVHF5SVE9PQ==";
46 static constexpr const char *SINA_SHARE = "SDhiNk5UNFdDTnRneVBqcmNCOVdoOENsMGtXZGxZdVZJTWJncmFNbjRHZnpJVXdXZS9xM25tYW1hTDVsUlhDKzgzcHREK1M1Zlo1QkJsNnFNUk1WMEhPeldDUT0=";
47 
48 class QRCodeQWidget;
49 
50 namespace Ui {
52 }
53 
58 {
59  Q_OBJECT
61 public:
62  enum class Module
63  {
64  Song,
65  Movie,
66  Artist,
67  Album,
68  Playlist,
69  Null
70  };
71 
72  struct Item
73  {
74  QString m_id;
75  QString m_name;
76  QString m_cover;
77  QString m_server;
78  };
79 
83  explicit MusicSongSharingWidget(QWidget *parent = nullptr);
88 
92  void initialize(Module type, const MusicSongSharingWidget::Item &data);
93 
94 public Q_SLOTS:
98  void textAreaChanged();
102  void confirmButtonClicked();
106  void shareTimeout();
110  void downLoadFinished(const QByteArray &bytes);
111 
112 private:
116  void sendToShare(const QString &playUrl, const QString &imageUrl);
120  void sendToShare(const QString &a, const QString &b, const QString &c);
121 
122 private:
123  Ui::MusicSongSharingWidget *m_ui;
127 
128 };
129 
130 #endif // MUSICSONGSHARINGWIDGET_H
static constexpr const char * WY_SG_SHARE
#define TTK_MODULE_EXPORT
static constexpr const char * KW_PL_SHARE
static constexpr const char * KG_SG_SHARE
The class of the song share widget.
static constexpr const char * QZONE_SHARE
static constexpr const char * WY_MV_SHARE
static constexpr const char * KW_AR_SHARE
static constexpr const char * KG_AL_SHARE
static constexpr const char * QQ_SHARE
MusicSongSharingWidget::Item m_data
The class of the qr code widget.
Definition: qrcodewidget.h:31
static constexpr const char * SINA_SHARE
static constexpr const char * KW_SG_SHARE
static constexpr const char * KG_AR_SHARE
static constexpr const char * KW_AL_SHARE
static constexpr const char * KG_MV_SHARE
static constexpr const char * WY_PL_SHARE
#define TTK_DECLARE_MODULE(Class)
Definition: ttkqtglobal.h:152
The class of the moving dialog base.
static constexpr const char * WY_AL_SHARE
Ui::MusicSongSharingWidget * m_ui
static constexpr const char * KW_MV_SHARE
static constexpr const char * WY_AR_SHARE
static constexpr const char * KG_PL_SHARE