TTKMusicPlayer  4.3.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 - 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 
23 
24 static constexpr const char *WY_SG_SHARE = "TEVOTmViQm1OblVEM2JMUlhIM0ZoTk9sK2Y3aDJMb1I5cTRSQWYxemlVR0xyRVJsR1o3TUhRPT0=";
25 static constexpr const char *KW_SG_SHARE = "VTVpWGNpU3YyMGhrMk1acTZsaEVFeGFKcnR1NFdSMENiSDJqZG9uRXlKSTA2NzRyUUg4bUZBPT0=";
26 static constexpr const char *KG_SG_SHARE = "U3g3a2NLTnAvbGJjNXlqTjZuSkhHL0FDS2NMdTZ4U0UwN09jZEhLU0dYYnNMOXl1b3NNb3VRPT0=";
27 
28 static constexpr const char *WY_PL_SHARE = "cVhNOXVnOHp2ZVI1S21rd1RHOC8vWkE2ZWhLa0NFaHZuZlpXc2RBaU5KRWRnd091VVI2VDFMd21Pbms9";
29 static constexpr const char *KW_PL_SHARE = "dG1JTHFsTms5UjdjbExUK0Q2emMwZnVpMS82blU3Tkt4OXRQcngvcS9SVFl6bWVFa2NjbnduTXltZnM9";
30 static constexpr const char *KG_PL_SHARE = "ZEhtM3BHZUZ3UDJoWE5Kbi9Bc1JVcWxlbXdLZFIrc1JIbHlmR09CR2xEYzQ4K0JYN3JWWHBrbzYyUGpKOHBRZjArL0thQT09";
31 
32 static constexpr const char *WY_AR_SHARE = "NHdtOUsxRjZ5YkdEOWhHVGcwelVwWVUwQTY5THZvUnk5d3hyZkdmdGhBN3BmU0htdllzeU13PT0=";
33 static constexpr const char *KW_AR_SHARE = "YU4zcFJ3bndBRjZWMXVDeFdzbGpVV3Y4dm5aelV6STdPT3d3M3VQTGxjTUhmb2hvUUN1YkZ1QVZEaFk9";
34 static constexpr const char *KG_AR_SHARE = "dVdUSGtqTEw0Z29vVHo4WUZEcWVsOVNBQ0hTNkhoQ0E3NnoyYlJ1R0xlc3VVQzlwamcrMm1CUUFmR2tJY1laQQ==";
35 
36 static constexpr const char *WY_AL_SHARE = "WmJQamdNaS9CL1hWUmhsejFYMDdZZlpMd002MlhRdnBWSjlVcWtVZjJmNUtEMXRNcGZ6enFnPT0=";
37 static constexpr const char *KW_AL_SHARE = "SW5jUzJnLy9keTEraGNPWU9va2NGRjFmaFFidU5DTHFpTmZMa2NaQUtZbz0=";
38 static constexpr const char *KG_AL_SHARE = "dnFzTzNVaU1hUmJkTWwyTFNsdXNoNVB6SWZDN1MvRnRUTjlGQ05TZDIzanJZOVk0OVhyS2JwbHIzSE9sanErSA==";
39 
40 static constexpr const char *WY_MV_SHARE = "Qjh6UWM4QjB4QkpBS3FWRVI5STZSZnZDVkRvMlhQLzZ5aklZMkFmbzRGM3BUNVJI";
41 static constexpr const char *KW_MV_SHARE = "ZVdIcDFqSnJHbGhWZDl4L01sNmtvTDRZeWVNMzNMc2FZQU9CemtHaldnND0=";
42 static constexpr const char *KG_MV_SHARE = "Y1d2TGY3MVVJa0tXK2dweGEvdzVYRTVmWGFhdjE0VFZPRlhUc3dNZ0NjWWRsek5DdDFZcDRKVlN2NXc9";
43 
44 static constexpr const char *QQ_SHARE = "OXJEQURWRlk3c2ZJYjE2RXRtVVJyWVduaUNVMlFFdTNpY3l4U1pudS9CcFdudEZXdVFRL0VHZ3Ryc3NjWnBWM0JPeVY3UUIvWnNkNklVSEdhL3JzVEZTOEY3b015SnZIMkN2cXE1VytEWjhYOURMQ0FtZS9HWWlKd0xwaUJ0Rk4=";
45 static constexpr const char *SINA_SHARE = "SDhiNk5UNFdDTnRneVBqcmNCOVdoOENsMGtXZGxZdVZJTWJncmFNbjRHZnpJVXdXZS9xM25tYW1hTDVsUlhDKzgzcHREK1M1Zlo1QkJsNnFNUk1WMEhPeldDUT0=";
46 static constexpr const char *QZONE_SHARE = "ck9FZHQzNmJkdzZBMC9KeGhCVGJNODlJUHYyYU5VUmF5eDFPdTJrZGQzZ2NzdFJlTkVRUjRPUGo0OTk0Zk5LWmY3S3BrRGQ2Vk15cUxYQXpraTZ3Vm45WGtMemJrL0FJQmJ1TXdTYTJoREJxcmEza2RHVktBS09HUGlGYVlFVTNrVHF5SVE9PQ==";
47 
48 class QRCodeQWidget;
49 
50 namespace Ui {
52 }
53 
58 {
59  Q_OBJECT
60 public:
61  enum class Module
62  {
63  Song,
64  Movie,
65  Artist,
66  Album,
67  Playlist,
68  Null
69  };
70 
71  struct Data
72  {
73  QString m_id;
74  QString m_name;
75  QString m_cover;
76  QString m_server;
77  };
78 
82  explicit MusicSongSharingWidget(QWidget *parent = nullptr);
87 
91  void initialize(Module type, const MusicSongSharingWidget::Data &data);
92 
93 public Q_SLOTS:
97  void textAreaChanged();
101  void confirmButtonClicked();
105  void shareTimeout();
109  void downloadFinished(const QByteArray &bytes);
110 
111 private:
115  void sendToShare(const QString &playUrl, const QString &imageUrl);
119  void sendToShare(const QString &a, const QString &b, const QString &c);
120 
121 private:
122  Ui::MusicSongSharingWidget *m_ui;
126 
127 };
128 
129 #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.
MusicSongSharingWidget::Data m_data
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
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
TTK_MODULE_EXPORT void initialize(TTK::Attribute attr)
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