TTKMusicPlayer  3.7.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
MusicConfigObject Class Reference

The class of the music initialize object. More...

#include <musicconfigobject.h>

+ Inheritance diagram for MusicConfigObject:

Public Member Functions

 MusicConfigObject (QObject *parent=nullptr)
 
void valid () 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 music initialize object.

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

Definition at line 28 of file musicconfigobject.h.

Constructor & Destructor Documentation

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

Object constructor.

Definition at line 5 of file musicconfigobject.cpp.

Member Function Documentation

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

Copy file.

Definition at line 98 of file musicconfigobject.cpp.

Referenced by checkFileNeededExist().

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

Copy file by overwrite.

Definition at line 87 of file musicconfigobject.cpp.

Referenced by initialize(), and reset().

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

Check current dir is exist, no, just create it.

Definition at line 34 of file musicconfigobject.cpp.

Referenced by checkDirectoryExist().

void MusicConfigObject::initialize ( ) const
void MusicConfigObject::reset ( ) const

Reset config parameters.

Definition at line 29 of file musicconfigobject.cpp.

References copyFileOverwrite(), and TTK_COFIG_PATH_FULL.

Referenced by main().

void MusicConfigObject::valid ( ) const

Check current setting file's validation.

Definition at line 11 of file musicconfigobject.cpp.

References checkDirectoryExist(), and checkFileNeededExist().

Referenced by initialize(), and main().


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