Emoconfig.h 588 B

12345678910111213141516171819202122232425262728293031323334
  1. /* i don't like this class name */
  2. #ifndef Emoconfig_h_
  3. #define Emoconfig_h_
  4. #include <Message.h>
  5. #include <expat.h>
  6. class Emoconfig : public BMessage
  7. {
  8. public:
  9. Emoconfig(const char* xmlfile);
  10. ~Emoconfig();
  11. int numfaces;
  12. BMessage menu;
  13. float GetEmoticonSize() {
  14. return fEmoticonSize;
  15. }
  16. private:
  17. float fEmoticonSize;
  18. XML_Parser fParser;
  19. static void StartElement(void* pUserData, const char* pName, const char** pAttr);
  20. static void EndElement(void* pUserData, const char* pName);
  21. static void Characters(void* pUserData, const char* pString, int pLen);
  22. };
  23. #endif