Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

userinfohelpers.h

00001 /*
00002  * User Info Helpers
00003  *
00004  * Copyright (C) 2001 Barnaby Gray <barnaby@beedesign.co.uk>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
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

Generated on Sun Jul 21 10:57:32 2002 for libicq2000 by doxygen1.2.16