TTKMusicPlayer  4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicsourceupdatewidget.h
Go to the documentation of this file.
1 #ifndef MUSICSOURCEUPDATEWIDGET_H
2 #define MUSICSOURCEUPDATEWIDGET_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 "ttkabstractmovedialog.h"
24 
25 static constexpr const char *REPORT_BUG_URL = "V0pTNkY2K1pRdVdzVDBrWFZGWnJiWHhVcHNTd2xlSE1FZUlQbytlN0tDK3ZUSVRqQ1ViZTFxQlpCVkR4akVhSk44cnMrVDhzWU5jPQ==";
26 static constexpr const char *RELEASE_DATA_URL = "OGk2YzFYT2NubTYxYkVDZG9aczB5NlNoeHVwRDZDeEttcEMxSGhScUVWcGRJNXdBK3IzZ0p2aWpiVnF4VjV3aEtHNlNERkhmN2pNPQ==";
27 
28 namespace Ui {
30 }
31 
32 
37 {
38  Q_OBJECT
39 public:
43  explicit MusicSourceUpdateNotifyWidget(QWidget *parent = nullptr);
48 
49 public Q_SLOTS:
53  void updateSourceClicked();
57  void downloadFinished();
58 
59 private:
60  QLabel *m_textLabel;
61 
62 };
63 
64 
69 {
70  Q_OBJECT
71 public:
75  explicit MusicSourceUpdateWidget(QWidget *parent = nullptr);
80 
84  void start();
85 
86 public Q_SLOTS:
90  void upgradeButtonClicked();
94  void downloadFinished();
98  virtual int exec();
99 
100 private:
101  Ui::MusicSourceUpdateWidget *m_ui;
102 
103 };
104 
105 #endif // MUSICSOURCEUPDATEWIDGET_H
#define TTK_MODULE_EXPORT
The class of the moving widget with plain.
static constexpr const char * REPORT_BUG_URL
The class of the application upgrade notify widget.
Ui::MusicSourceUpdateWidget * m_ui
The class of the ttk moving dialog base.
static constexpr const char * RELEASE_DATA_URL
The class of the application upgrade widget.