TTKMusicPlayer  3.7.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 - 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 
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
40 public:
44  explicit MusicSourceUpdateNotifyWidget(QWidget *parent = nullptr);
49 
50 public Q_SLOTS:
54  void updateSourceClicked();
58  void downLoadFinished();
59 
60 private:
61  QLabel *m_textLabel;
62 
63 };
64 
65 
70 {
71  Q_OBJECT
73 public:
77  explicit MusicSourceUpdateWidget(QWidget *parent = nullptr);
82 
86  void start();
87 
88 public Q_SLOTS:
92  void upgradeButtonClicked();
96  void downLoadFinished();
100  virtual int exec();
101 
102 private:
103  Ui::MusicSourceUpdateWidget *m_ui;
104 
105 };
106 
107 #endif // MUSICSOURCEUPDATEWIDGET_H
#define TTK_MODULE_EXPORT
The class of the moving widget with plain.
static constexpr const char * REPORT_BUG_URL
#define TTK_DECLARE_MODULE(Class)
Definition: ttkqtglobal.h:152
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.