version 0.3.16
[fms.git] / include / freenet / captcha / alternatecaptchafonts.h
diff --git a/include/freenet/captcha/alternatecaptchafonts.h b/include/freenet/captcha/alternatecaptchafonts.h
new file mode 100644 (file)
index 0000000..741d0b2
--- /dev/null
@@ -0,0 +1,27 @@
+#ifndef _alternatecaptcha_fonts_\r
+#define _alternatecaptcha_fonts_\r
+\r
+#ifdef ALTERNATE_CAPTCHA\r
+\r
+#include "freeimage/bitmap.h"\r
+#include "freeimage/font.h"\r
+#include <vector>\r
+\r
+class AlternateCaptchaFonts\r
+{\r
+public:\r
+       AlternateCaptchaFonts();\r
+       \r
+       const std::vector<FreeImage::Font> &Fonts() const               { return m_fonts; }\r
+\r
+private:\r
+       void LoadFonts();\r
+\r
+       static bool m_fontsloaded;\r
+       static std::vector<FreeImage::Font> m_fonts;\r
+\r
+};\r
+       \r
+#endif // ALTERNATE_CAPTCHA\r
+\r
+#endif // _alternatecaptcha_fonts_\r