00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef ENUM_H
00025 #define ENUM_H
00026
00027 #include <qcstring.h>
00028
00029 namespace VCARD
00030 {
00031
00032 extern const QCString paramNames [];
00033
00034 enum EntityType {
00035 EntityName,
00036 EntityProfile,
00037 EntitySource,
00038 EntityFullName,
00039 EntityN,
00040 EntityNickname,
00041 EntityPhoto,
00042 EntityBirthday,
00043 EntityAddress,
00044 EntityLabel,
00045 EntityTelephone,
00046 EntityEmail,
00047 EntityMailer,
00048 EntityTimeZone,
00049 EntityGeo,
00050 EntityTitle,
00051 EntityRole,
00052 EntityLogo,
00053 EntityAgent,
00054 EntityOrganisation,
00055 EntityCategories,
00056 EntityNote,
00057 EntityProductID,
00058 EntityRevision,
00059 EntitySortString,
00060 EntitySound,
00061 EntityUID,
00062 EntityURL,
00063 EntityVersion,
00064 EntityClass,
00065 EntityKey,
00066 EntityExtension,
00067 EntityUnknown
00068 };
00069
00070 enum ValueType {
00071 ValueSound,
00072 ValueAgent,
00073 ValueAddress,
00074 ValueTel,
00075 ValueTextBin,
00076 ValueOrg,
00077 ValueN,
00078 ValueUTC,
00079 ValueURI,
00080 ValueClass,
00081 ValueFloat,
00082 ValueImage,
00083 ValueDate,
00084 ValueTextList,
00085 ValueText,
00086 ValueGeo,
00087 ValueUnknown
00088 };
00089
00090 enum ParamType {
00091 ParamUnknown,
00092 ParamNone,
00093 ParamSource,
00094 ParamText,
00095 ParamImage,
00096 ParamDate,
00097 ParamAddrText,
00098 ParamTel,
00099 ParamEmail,
00100 ParamMailer,
00101 ParamAgent,
00102 ParamTextBin,
00103 ParamTextNS,
00104 ParamSound
00105 };
00106
00107 extern const ParamType paramTypesTable[];
00108
00109 ParamType EntityTypeToParamType(EntityType);
00110 ValueType EntityTypeToValueType(EntityType);
00111 QCString EntityTypeToParamName(EntityType);
00112 EntityType EntityNameToEntityType(const QCString &);
00113
00114 char * encodeBase64(const char *, unsigned long, unsigned long &);
00115 char * decodeBase64(const char *, unsigned long, unsigned long &);
00116
00117 }
00118
00119 #endif
00120