VCardEnum.h

00001 /*
00002     libvcard - vCard parsing library for vCard version 3.0
00003     
00004     Copyright (C) 1999 Rik Hemsley rik@kde.org
00005     
00006   Permission is hereby granted, free of charge, to any person obtaining a copy
00007   of this software and associated documentation files (the "Software"), to
00008   deal in the Software without restriction, including without limitation the
00009   rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
00010   sell copies of the Software, and to permit persons to whom the Software is
00011   furnished to do so, subject to the following conditions:
00012 
00013   The above copyright notice and this permission notice shall be included in
00014   all copies or substantial portions of the Software.
00015 
00016   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
00017   IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00018   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
00019   AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
00020   ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
00021   WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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 
KDE Home | KDE Accessibility Home | Description of Access Keys