Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Wasabi/api/font/FontSvcEnum.h

19 lines
418 B
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#include <bfc/string/StringW.h>
#include <api/service/svc_enum.h>
class FontSvcEnum : public SvcEnumT<svc_font> {
public:
FontSvcEnum(const wchar_t *_svc_name = NULL) : svc_name(_svc_name) {}
protected:
virtual int testService(svc_font *svc)
{
if (!svc_name.len())
return 1; // blank name returns all services.
return (!WCSICMP(svc->getFontSvcName(),svc_name));
}
private:
StringW svc_name;
};