TTKMusicPlayer  3.7.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
musicabstractdownloadtablewidget.h
Go to the documentation of this file.
1 #ifndef MUSICABSTRACTDOWNLOADTABLEWIDGET_H
2 #define MUSICABSTRACTDOWNLOADTABLEWIDGET_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 
24 
26 
31 {
32  Q_OBJECT
34 public:
38  explicit MusicAbstractDownloadTableWidget(QWidget *parent = nullptr);
43 
47  virtual void updateSongsList(const MusicSongList &songs) override final;
48 
49 Q_SIGNALS:
53  void addSongToPlaylist(const QStringList &items);
57  void updateItemTitle(int index);
58 
59 public Q_SLOTS:
63  virtual void removeItemAt() override final;
67  void itemDoubleClicked(int row, int column);
71  void downloadProgressChanged(float percent, const QString &total, qint64 time);
75  void createDownloadItem(const QString &name, qint64 time);
76 
77 protected:
81  virtual void contextMenuEvent(QContextMenuEvent *event) override;
86  virtual void addCellItem(int index, const MusicSong &record) = 0;
87 
90 
91 };
92 
93 #endif // MUSICABSTRACTDOWNLOADTABLEWIDGET_H
#define TTK_MODULE_EXPORT
The class of the progress bar item delegate.
const char * name
Definition: http_parser.c:458
TTKProgressBarItemDelegate * m_progressBarDelegate
#define TTK_DECLARE_MODULE(Class)
Definition: ttkqtglobal.h:152
The class of the download abstract table widget.
virtual void updateSongsList(const MusicSongList &songs)
The class of the music song info.
Definition: musicsong.h:28
The class of the songs list abstract table widget.