1 #ifndef MUSICAPPLICATION_H
2 #define MUSICAPPLICATION_H
66 QString currentFileName()
const;
70 QString currentFilePath()
const;
75 bool checkMusicListCurrentIndex()
const;
79 void loadCurrentSongLrc();
84 void importSongsByOutside(
const QString &path,
bool play);
89 QString containsDownloadItem(
bool &contains)
const;
93 bool containsLovestItem()
const;
97 bool containsLovestItem(
int index)
const;
101 void updateCurrentArtist();
106 bool isPlaying()
const;
110 qint64 duration()
const;
124 void positionChanged(qint64 position);
128 void durationChanged(qint64 duration);
136 void showCurrentSong();
140 void switchToPlayState();
144 void switchToStopState();
181 void volumeChanged(
int volume);
185 void importSongsPopup();
197 void importSongsByUrl();
201 void importSongsItemList();
205 void exportSongsItemList(
int index);
209 void playSortBy(
int row);
213 void playedIndexBy(
int row);
217 void playIndexBy(
int row);
221 void playIndexBy(
int row,
int column);
225 void playIndexClicked(
int row,
int column);
229 void playAnyTimeAt(
int time);
241 void showSettingWidget();
245 void currentPlayLocation();
249 void addSongToLovestList(
bool state =
true);
253 void windowConciseChanged();
257 void enhancedMusicChanged(
int type);
261 void createRightMenu();
265 void applyParameter();
269 void removeLoveItemAt(
const QString &path,
bool current);
273 void removeItemAt(
const QStringList &path,
bool remove,
bool current,
int playlistRow);
277 void currentLrcUpdated();
281 void resetCurrentSongLrcIndex();
285 void updateCurrentTime(qint64 pos);
289 void setPlaySongChanged(
int index);
293 void currentPlaylist(QStringList &list);
299 virtual void resizeEvent(QResizeEvent *event)
override final;
300 virtual void closeEvent(QCloseEvent *event)
override final;
301 virtual void contextMenuEvent(QContextMenuEvent *event)
override final;
302 virtual void enterEvent(
QtEnterEvent *event)
override final;
303 virtual void leaveEvent(QEvent *event)
override final;
305 virtual void mouseDoubleClickEvent(QMouseEvent *event)
override final;
306 virtual bool eventFilter(QObject *
object, QEvent *event)
override final;
315 void readSystemConfigFromFile();
319 void writeSystemConfigToFile();
340 #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 widget.
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
MusicApplicationModule * m_applicationObject
The class of the playlist backup module.
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