00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef USERINFOHELPERS_H
00023 #define USERINFOHELPERS_H
00024
00025 #include <libicq2000/userinfoconstants.h>
00026
00027 #include <string>
00028 #include <vector>
00029
00030 #include <time.h>
00031
00032 namespace ICQ2000
00033 {
00034
00035 namespace UserInfoHelpers
00036 {
00037 std::string getSexIDtoString(Sex id);
00038 Sex getSexStringtoID(const std::string& s);
00039 std::vector<std::string> getSexAllStrings();
00040
00041 std::string getTimezoneIDtoString(signed char id);
00042 signed char getTimezoneStringtoID(const std::string& s);
00043 std::vector<std::string> getTimezoneAllStrings();
00044 std::string getTimezonetoLocaltime(signed char id);
00045 signed char getSystemTimezone();
00046
00047 std::string getLanguageIDtoString(unsigned char id);
00048 unsigned char getLanguageStringtoID(const std::string& s);
00049 std::vector<std::string> getLanguageAllStrings();
00050
00051 std::string getCountryIDtoString(unsigned short id);
00052 unsigned short getCountryStringtoID(const std::string& s);
00053 std::vector<std::string> getCountryAllStrings();
00054
00055 std::string getInterestsIDtoString(unsigned char id);
00056 unsigned char getInterestsStringtoID(const std::string& s);
00057 std::vector<std::string> getInterestsAllStrings();
00058
00059 std::string getBackgroundIDtoString(unsigned short id);
00060 unsigned short getBackgroundStringtoID(const std::string& s);
00061 std::vector<std::string> getBackgroundAllStrings();
00062 }
00063
00064 }
00065
00066 #endif