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 | Static Public Attributes | Private Attributes | List of all members
TTKSuperEnum Class Reference

The class of the super enum. More...

#include <ttksuperenum.h>

Public Member Functions

 TTKSuperEnum (const QString &value)
 
QString keyToString (int value) const
 
int stringToKey (const QString &name) const
 

Static Public Attributes

static constexpr int Null = -1
 

Private Attributes

std::unordered_map< int, QString > m_enumValue
 

Detailed Description

The class of the super enum.

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

Definition at line 28 of file ttksuperenum.h.

Constructor & Destructor Documentation

TTKSuperEnum::TTKSuperEnum ( const QString &  value)

Object constructor.

Definition at line 5 of file ttksuperenum.cpp.

References m_enumValue, Null, and qAsConst.

Member Function Documentation

QString TTKSuperEnum::keyToString ( int  value) const

Map key int to string.

Definition at line 25 of file ttksuperenum.cpp.

References m_enumValue, and Null.

int TTKSuperEnum::stringToKey ( const QString &  name) const

Map key string to int.

Definition at line 36 of file ttksuperenum.cpp.

References m_enumValue, Null, and qAsConst.

Member Data Documentation

std::unordered_map<int, QString> TTKSuperEnum::m_enumValue
private

Definition at line 49 of file ttksuperenum.h.

Referenced by keyToString(), stringToKey(), and TTKSuperEnum().

constexpr int TTKSuperEnum::Null = -1
static

Definition at line 31 of file ttksuperenum.h.

Referenced by keyToString(), stringToKey(), and TTKSuperEnum().


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