13 m_playbackMode(
"Order"),
51 text +=
"Offical web page: https://github.com/Greedysky/TTKMusicPlayer\n";
52 text +=
"Copyright(C) 2015 - 2025 Greedysky All Rights Reserved\n";
53 text +=
"TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux\n\n";
76 const QString &path = parser.
value(op1);
89 else if(parser.
isSet(op2))
91 const QString &path = parser.
value(op2);
111 else if(parser.
isSet(op3))
113 const QString &path = parser.
value(op3);
134 MusicSongItemList items;
162 return QCoreApplication::exec();
319 TTK_LOG_STREAM(QString(
"Music Name: %1, Time:[%2/%3], Volume:%4, PlaybackMode:%5, Enhance:%6")
The class of the music play item.
QString value(const TTKCommandLineOption &option) const
void setEnhancedSubwoofer()
void setDescription(const QString &description) noexcept
bool fromFile(const QString &name)
void setEnhanced(Enhance type)
MusicPlaylist * m_playlist
The class of the music player.
void add(int playlistRow, const QString &content)
void setVolume(int volume)
The class of the command line option.
virtual bool readBuffer(MusicSongItemList &items) overridefinal
MusicPlayItem currentItem() const
static constexpr int PLAY_PREVIOUS_LEVEL
bool isSet(const TTKCommandLineOption &option) const
#define TTK_SIGNLE_SHOT(...)
void setPlaybackMode(TTK::PlayMode mode)
bool addOption(const TTKCommandLineOption &option)
#define TTK_LOG_STREAM(msg)
TTK_MODULE_EXPORT QFileInfoList fileInfoListByPath(const QString &dpath, const QStringList &filter={}, bool recursively=true)
static constexpr int PLAY_NEXT_LEVEL
void positionChanged(qint64 position)
void setCurrentIndex(int index)
The class of the music song item.
The class of the tkpl config manager.
MusicConsoleModule(QObject *parent=nullptr)
void append(int playlistRow, const QString &content)
bool isEmpty() const noexcept
#define TTK_FILE_SUFFIX(fin)
The class of the music song info.
void setPlaylist(MusicPlaylist *playlist)
The class of the music play list.
The class of the command line parser.
void print(qint64 position, qint64 duration) const
void currentIndexChanged(int index)
static qint64 formatDuration(const QString &time) noexcept