MCPcopy Create free account
hub / github.com/blizzard4591/openMittsu / fromString

Method fromString

src/database/MediaFileType.cpp:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 }
33
34 MediaFileType MediaFileTypeHelper::fromString(QString const& messageTypeString) {
35 if (messageTypeString == QStringLiteral("STANDARD")) {
36 return MediaFileType::TYPE_STANDARD;
37 } else if (messageTypeString == QStringLiteral("THUMBNAIL")) {
38 return MediaFileType::TYPE_THUMBNAIL;
39 } else {
40 throw openmittsu::exceptions::InternalErrorException() << "Unhandled MediaFileType string representation, this should never happen: " << messageTypeString.toStdString();
41 }
42 }
43
44 MediaFileType MediaFileTypeHelper::fromInt(int messageTypeInt) {
45 if (messageTypeInt == 1) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected