1 #ifndef MUSICAPPLICATION_H
2 #define MUSICAPPLICATION_H
65 QString currentFileName()
const;
69 QString currentFilePath()
const;
74 bool checkMusicListCurrentIndex()
const;
78 void loadCurrentSongLrc();
83 void importSongsByOutside(
const QString &path,
bool play);
88 QString containsDownloadItem(
bool &contains)
const;
92 bool containsLovestItem()
const;
96 bool containsLovestItem(
int index)
const;
100 void updateCurrentArtist();
105 bool isPlaying()
const;
109 qint64 duration()
const;
123 void positionChanged(qint64 position);
127 void durationChanged(qint64 duration);
135 void showCurrentSong();
139 void switchToPlayState();
143 void switchToStopState();
180 void volumeChanged(
int volume);
184 void importSongsPopup();
196 void importSongsByUrl();
200 void importSongsItemList();
204 void exportSongsItem(
int index);
208 void exportSongsItemList();
212 void playSortBy(
int row);
216 void playedIndexBy(
int row);
220 void playIndexBy(
int row);
224 void playIndexBy(
int row,
int column);
228 void playIndexClicked(
int row,
int column);
232 void playAnyTimeAt(
int time);
244 void showSettingWidget();
248 void currentPlayLocation();
252 void addSongToLovestList(
bool state =
true);
256 void windowConciseChanged();
260 void enhancedSongChanged(
int type);
264 void createRightMenu();
268 void applyParameter();
272 void removeLoveItemAt(
const QString &path,
bool current);
276 void removeItemAt(
const QStringList &path,
bool remove,
bool current,
int playlistRow);
280 void currentLrcUpdated();
284 void resetCurrentSongLrcIndex();
288 void updateCurrentTime(qint64 pos);
292 void setPlaySongChanged(
int index);
296 void currentPlaylist(QStringList &list);
302 virtual void resizeEvent(QResizeEvent *event)
override final;
303 virtual void closeEvent(QCloseEvent *event)
override final;
304 virtual void contextMenuEvent(QContextMenuEvent *event)
override final;
305 virtual void enterEvent(
QtEnterEvent *event)
override final;
306 virtual void leaveEvent(QEvent *event)
override final;
309 virtual void mouseDoubleClickEvent(QMouseEvent *event)
override final;
310 virtual bool eventFilter(QObject *
object, QEvent *event)
override final;
319 void readSystemConfigFromFile();
323 void writeSystemConfigToFile();
343 #endif // MUSICAPPLICATION_H
The class of the app mpris player object.
MusicBottomAreaWidget * m_bottomAreaWidget
#define QtEnterEvent
Event enter.
#define TTK_MODULE_EXPORT
The class of the app object module.
The class of the app main widget.
The class of the music player.
Ui::MusicApplication * m_ui
MusicTopAreaWidget * m_topAreaWidget
MusicRightAreaWidget * m_rightAreaWidget
MusicSongsContainerWidget * m_songTreeWidget
MusicPlaylist * m_playlist
#define TTK_DECLARE_MODULE(Class)
MusicLeftAreaWidget * m_leftAreaWidget
static MusicApplication * m_instance
The class of the music play list.
int m_currentSongTreeIndex
MusicApplicationModule * m_applicationModule