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();
188 void volumeChanged(
int volume);
193 void importSongsPopup();
205 void importSongsByUrl();
209 void importSongsItemList();
213 void exportSongsItem(
int index);
217 void exportSongsItemList();
222 void playSortBy(
int row);
226 void playedIndexBy(
int row);
230 void playIndexBy(
int row);
234 void playIndexBy(
int row,
int column);
238 void playIndexClicked(
int row,
int column);
242 void playAnyTimeAt(
int time);
247 void showSettingWidget();
251 void currentPlayLocation();
255 void addSongToLovestList(
bool state =
true);
259 void windowConciseChanged();
263 void enhancedSongChanged(
int type);
267 void createRightMenu();
271 void applyParameter();
275 void removeLoveItemAt(
const QString &path,
bool current);
279 void removeItemAt(
const QStringList &path,
bool remove,
bool current,
int playlistRow);
283 void currentLrcUpdated();
287 void resetCurrentSongLrcIndex();
291 void updateCurrentTime(qint64 pos);
295 void setPlaySongChanged(
int index);
299 void currentPlaylist(QStringList &list);
305 virtual void resizeEvent(QResizeEvent *event)
override final;
306 virtual void closeEvent(QCloseEvent *event)
override final;
307 virtual void contextMenuEvent(QContextMenuEvent *event)
override final;
308 virtual void enterEvent(
QtEnterEvent *event)
override final;
309 virtual void leaveEvent(QEvent *event)
override final;
312 virtual void mouseDoubleClickEvent(QMouseEvent *event)
override final;
313 virtual bool eventFilter(QObject *
object, QEvent *event)
override final;
322 void readSystemConfigFromFile();
326 void writeSystemConfigToFile();
347 #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.
MusicApplicationModule * m_applicationModule