TTKMusicPlayer
4.1.3.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
|
Public Member Functions | |
void | install () |
void | uninstall () |
Static Public Member Functions | |
static void | loggerHandler (QtMsgType type, const char *message) |
Private Member Functions | |
TTKLogOutput () | |
~TTKLogOutput () | |
void | open () |
void | save (const QString &message) |
void | write (QtMsgType type, const QMessageLogContext &context, const QString &message) |
Private Attributes | |
QFile | m_file |
QString | m_dateTime |
QMutex | m_mutex |
QtMessageHandler | m_defaultHandler |
Definition at line 15 of file ttklogoutput.cpp.
|
private |
Object constructor.
Definition at line 70 of file ttklogoutput.cpp.
|
private |
void TTKLogOutput::install | ( | ) |
Install log output handler.
Definition at line 87 of file ttklogoutput.cpp.
References LOG_DIR_PATH, loggerHandler(), m_defaultHandler, open(), and qInstallMessageHandler.
|
static |
Log output handler.
Definition at line 112 of file ttklogoutput.cpp.
References TTKSingleton< T >::instance().
Referenced by install().
|
private |
Open log output file.
Definition at line 118 of file ttklogoutput.cpp.
References LOG_DIR_PATH, LOG_MAXSIZE, m_dateTime, m_file, and TTK_DATE_FORMAT.
|
private |
Save log output file.
Definition at line 133 of file ttklogoutput.cpp.
References m_file, and TTK_WLINEFEED.
Referenced by write().
void TTKLogOutput::uninstall | ( | ) |
Uninstall log output handler.
Definition at line 100 of file ttklogoutput.cpp.
References m_defaultHandler, and qInstallMessageHandler.
|
private |
Write log output file.
Definition at line 143 of file ttklogoutput.cpp.
References LOG_MAXSIZE, m_dateTime, m_defaultHandler, m_file, m_mutex, open(), save(), and TTK_DATE_FORMAT.
|
private |
Definition at line 61 of file ttklogoutput.cpp.
|
private |
Definition at line 63 of file ttklogoutput.cpp.
Referenced by install(), uninstall(), and write().
|
private |
Definition at line 60 of file ttklogoutput.cpp.
Referenced by open(), save(), write(), and ~TTKLogOutput().
|
private |
Definition at line 62 of file ttklogoutput.cpp.
Referenced by write().