Helper struct for mapping between mode names and enum values. More...
#include <WallPaperEngine.h>
Public Member Functions | |
| QStringList | values () const |
| Returns all mode names as a QStringList. | |
| QString | toString (const WallPaperEngine::SwitchingMode mode) |
| Converts a SwitchingMode enum to its string representation. | |
| WallPaperEngine::SwitchingMode | fromString (const QString &l) |
| Converts a string name to the corresponding SwitchingMode enum. | |
Public Attributes | |
| const QMap< QString, WallPaperEngine::SwitchingMode > | mappings |
| Mapping from string names to SwitchingMode values. | |
Helper struct for mapping between mode names and enum values.
|
inline |
Converts a string name to the corresponding SwitchingMode enum.
| l | The mode name string. |
| std::runtime_error | if the name is invalid. |
|
inline |
Converts a SwitchingMode enum to its string representation.
| mode | The mode to convert. |
|
inline |
Returns all mode names as a QStringList.
| const QMap<QString, WallPaperEngine::SwitchingMode> WallPaperEngine::ModeMapping::mappings |
Mapping from string names to SwitchingMode values.