TTKMusicPlayer  4.3.0.0
TTKMusicPlayer imitates Kugou UI, the music player uses of qmmp core library based on Qt for windows and linux
Public Member Functions | Private Member Functions | List of all members
MusicConfigModule Class Reference

The class of the initialize module. More...

#include <musicconfigmodule.h>

+ Inheritance diagram for MusicConfigModule:

Public Member Functions

 MusicConfigModule (QObject *parent=nullptr)
 
void execute () const
 
void initialize () const
 
void reset () const
 

Private Member Functions

void directoryExist (const QString &name) const
 
void checkDirectoryExist () const
 
void checkFileNeededExist () const
 
void copyFileOverwrite (const QString &origin, const QString &des) const
 
void copyFile (const QString &origin, const QString &des) const
 

Detailed Description

The class of the initialize module.

Author
Greedysky greed.nosp@m.ysky.nosp@m.@163..nosp@m.com

Definition at line 28 of file musicconfigmodule.h.

Constructor & Destructor Documentation

MusicConfigModule::MusicConfigModule ( QObject *  parent = nullptr)
explicit

Object constructor.

Definition at line 5 of file musicconfigmodule.cpp.

Member Function Documentation

void MusicConfigModule::checkDirectoryExist ( ) const
private
void MusicConfigModule::checkFileNeededExist ( ) const
private
void MusicConfigModule::copyFile ( const QString &  origin,
const QString &  des 
) const
private

Copy file.

Definition at line 98 of file musicconfigmodule.cpp.

Referenced by checkFileNeededExist().

void MusicConfigModule::copyFileOverwrite ( const QString &  origin,
const QString &  des 
) const
private

Copy file by overwrite.

Definition at line 87 of file musicconfigmodule.cpp.

Referenced by initialize(), and reset().

void MusicConfigModule::directoryExist ( const QString &  name) const
private

Check current dir is exist or not, if not, just create it.

Definition at line 34 of file musicconfigmodule.cpp.

Referenced by checkDirectoryExist().

void MusicConfigModule::execute ( ) const

Check current setting file's validation.

Definition at line 11 of file musicconfigmodule.cpp.

References checkDirectoryExist(), and checkFileNeededExist().

Referenced by initialize(), and main().

void MusicConfigModule::initialize ( ) const
void MusicConfigModule::reset ( ) const

Reset config parameters.

Definition at line 29 of file musicconfigmodule.cpp.

References copyFileOverwrite(), and TTK_COFIG_PATH_FULL.

Referenced by main().


The documentation for this class was generated from the following files: