1 #ifndef MUSICAPPLICATION_H
2 #define MUSICAPPLICATION_H
64 QString currentFileName()
const;
68 QString currentFilePath()
const;
73 bool checkMusicListCurrentIndex()
const;
77 void loadCurrentSongLrc();
82 void importSongsByOutside(
const QString &path,
bool play);
87 QString containsDownloadMedia(
bool &contains)
const;
91 bool containsLovestMedia()
const;
95 bool containsLovestMedia(
int index)
const;
99 void updateCurrentArtist();
104 bool isPlaying()
const;
108 qint64 duration()
const;
122 void positionChanged(qint64 position);
126 void durationChanged(qint64 duration);
134 void showCurrentSong();
138 void switchToPlayState();
142 void switchToStopState();
187 void volumeChanged(
int volume);
192 void importSongsPopup();
196 void importSongsByUrl();
200 void importSongsItemList();
204 void exportSongsItem(
int index);
208 void exportSongsItemList();
213 void playSortBy(
int row);
217 void playedIndexBy(
int row);
221 void playIndexBy(
int row);
225 void playIndexBy(
int row,
int column);
229 void playIndexClicked(
int row,
int column);
233 void playTimePosition(
int time);
238 void showSettingWidget();
242 void currentPlayLocation();
246 void addSongToLovestList(
bool state =
true);
250 void windowConciseChanged();
254 void enhancedSongChanged(
int type);
258 void createRightMenu();
262 void applyParameter();
266 void removeLoveItemAt(
const QString &path,
bool current);
270 void removeItemAt(
const QStringList &path,
bool remove,
bool current,
int playlistRow);
274 void currentLrcUpdated();
278 void resetCurrentSongLrcIndex();
282 void updateCurrentTime(qint64 pos);
286 void setPlaySongChanged(
int index);
290 void currentPlaylist(QStringList &list);
296 virtual void resizeEvent(QResizeEvent *event)
override final;
297 virtual void closeEvent(QCloseEvent *event)
override final;
298 virtual void contextMenuEvent(QContextMenuEvent *event)
override final;
299 virtual void enterEvent(
QtEnterEvent *event)
override final;
300 virtual void leaveEvent(QEvent *event)
override final;
303 virtual void mouseDoubleClickEvent(QMouseEvent *event)
override final;
304 virtual bool eventFilter(QObject *
object, QEvent *event)
override final;
309 void generatePlaylistItems();
313 void readSystemConfigFromFile();
317 void writeSystemConfigToFile();
338 #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
MusicLeftAreaWidget * m_leftAreaWidget
static MusicApplication * m_instance
The class of the music play list.
MusicApplicationModule * m_applicationModule