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