1 #ifndef _alternate_captcha1_
\r
2 #define _alternate_captcha1_
\r
4 #ifdef ALTERNATE_CAPTCHA
\r
8 #include "icaptcha.h"
\r
9 #include "freeimage/bitmap.h"
\r
10 #include "freeimage/font.h"
\r
12 class AlternateCaptcha1:public ICaptcha
\r
15 AlternateCaptcha1();
\r
19 const bool GetPuzzle(std::vector<unsigned char> &puzzle);
\r
20 const bool GetSolution(std::vector<unsigned char> &solution);
\r
24 const std::string GenerateRandomString(const int len);
\r
26 static bool m_fontsloaded;
\r
27 static std::vector<FreeImage::Font> m_fonts;
\r
29 std::vector<unsigned char> m_puzzle;
\r
30 std::vector<unsigned char> m_solution;
\r
34 #endif // ALTERNATE_CAPTCHA
\r
36 #endif // _alternate_captcha1_
\r