MCPcopy Create free account
hub / github.com/amule-project/amule / GetED2KFileTypeSearchTerm

Function GetED2KFileTypeSearchTerm

src/OtherFunctions.cpp:919–931  ·  view source on GitHub ↗

Returns the ed2k file type term which is to be used in server searches

Source from the content-addressed store, hash-verified

917
918// Returns the ed2k file type term which is to be used in server searches
919wxString GetED2KFileTypeSearchTerm(EED2KFileType iFileID)
920{
921 if (iFileID == ED2KFT_AUDIO) return ED2KFTSTR_AUDIO;
922 if (iFileID == ED2KFT_VIDEO) return ED2KFTSTR_VIDEO;
923 if (iFileID == ED2KFT_IMAGE) return ED2KFTSTR_IMAGE;
924 if (iFileID == ED2KFT_DOCUMENT) return ED2KFTSTR_DOCUMENT;
925 if (iFileID == ED2KFT_PROGRAM) return ED2KFTSTR_PROGRAM;
926 // NOTE: Archives and CD-Images are published with file type "Pro"
927 if (iFileID == ED2KFT_ARCHIVE) return ED2KFTSTR_PROGRAM;
928 if (iFileID == ED2KFT_CDIMAGE) return ED2KFTSTR_PROGRAM;
929
930 return "";
931}
932
933
934// Returns a file type which is used eMule internally only, examining the extension of the given filename

Callers 2

PreparePacketForTagsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected