12 return QString(
" %1 (%2)\n").arg(
"Ctrl+B",
"Switch to play state") +
13 QString(
" %1 (%2)\n").arg(
"Ctrl+Left",
"Play previous") +
14 QString(
" %1 (%2)\n").arg(
"Ctrl+Right",
"Play next") +
15 QString(
" %1 (%2)\n").arg(
"Ctrl+Up",
"Volume up") +
16 QString(
" %1 (%2)\n").arg(
"Ctrl+Down",
"Volume down") +
17 QString(
" %1 (%2)\n").arg(
"Ctrl+1",
"Play random") +
18 QString(
" %1 (%2)\n").arg(
"Ctrl+2",
"Playlist loop") +
19 QString(
" %1 (%2)\n").arg(
"Ctrl+3",
"Play one loop") +
20 QString(
" %1 (%2)\n").arg(
"Ctrl+4",
"Play once") +
21 QString(
" %1 (%2)\n").arg(
"Alt+1",
"Enhanced off") +
22 QString(
" %1 (%2)\n").arg(
"Alt+2",
"Enhanced 3D") +
23 QString(
" %1 (%2)\n").arg(
"Alt+3",
"Enhanced NICAM") +
24 QString(
" %1 (%2)\n").arg(
"Alt+4",
"Enhanced subwoofer") +
25 QString(
" %1 (%2)\n").arg(
"Alt+5",
"Enhanced cocal") +
26 QString(
" %1 (%2)\n").arg(
"Ctrl+Q",
"Quit");
32 m_playbackMode(
"Order"),
70 text +=
"Offical web page: https://github.com/Greedysky/TTKMusicPlayer\n";
71 text +=
"Copyright(C) 2015 - 2026 Greedysky All Rights Reserved\n";
72 text +=
"TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux\n\n";
96 const QString &path = parser.
value(op1);
109 else if(parser.
isSet(op2))
111 const QString &path = parser.
value(op2);
131 else if(parser.
isSet(op3))
133 const QString &path = parser.
value(op3);
154 MusicSongItemList items;
182 return QCoreApplication::exec();
339 TTK_LOG_STREAM(QString(
"Time:[%1/%2], Volume:%3, PlaybackMode:%4, Enhance:%5, Media Path: %6")
The class of the music play item.
QString value(const TTKCommandLineOption &option) const
void setEnhancedSubwoofer()
void setDescription(const QString &description) noexcept
MusicPlayItem currentItem() const noexcept
bool fromFile(const QString &name)
bool isEmpty() const noexcept
void setPlaylist(MusicPlaylist *playlist) noexcept
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
static constexpr int PLAY_PREVIOUS_LEVEL
bool isSet(const TTKCommandLineOption &option) const
#define TTK_SIGNLE_SHOT(...)
bool addOption(const TTKCommandLineOption &option)
static QString shortcutMessage()
#define TTK_LOG_STREAM(msg)
TTK_MODULE_EXPORT QFileInfoList fileInfoListByPath(const QString &dpath, const QStringList &filter={}, bool recursively=true)
bool isPlaying() const noexcept
static constexpr int PLAY_NEXT_LEVEL
void positionChanged(qint64 position)
void setPlaybackMode(TTK::PlayMode mode) noexcept
void setCurrentIndex(int index)
int count() const noexcept
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.
The class of the music play list.
The class of the command line parser.
void setEnhance(TTK::Enhance type)
void print(qint64 position, qint64 duration) const
void currentIndexChanged(int index)
static qint64 formatDuration(const QString &time) noexcept