Returns the ed2k file type term which is to be used in server searches
| 917 | |
| 918 | // Returns the ed2k file type term which is to be used in server searches |
| 919 | wxString 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 |
no outgoing calls
no test coverage detected