|
|
|
@ -29,6 +29,8 @@
|
|
|
|
|
using namespace VCARD;
|
|
|
|
|
|
|
|
|
|
// There are 31 possible types, not including extensions.
|
|
|
|
|
// URI is a custom field designed to store the upstream URI for each contact
|
|
|
|
|
// in order to handle certain limited CardDAV systems such as Zimbra
|
|
|
|
|
const QCString
|
|
|
|
|
VCARD::paramNames [] =
|
|
|
|
|
{
|
|
|
|
@ -62,7 +64,8 @@ VCARD::paramNames [] =
|
|
|
|
|
"URL",
|
|
|
|
|
"VERSION",
|
|
|
|
|
"CLASS",
|
|
|
|
|
"KEY"
|
|
|
|
|
"KEY",
|
|
|
|
|
"URI"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const ParamType
|
|
|
|
@ -99,6 +102,7 @@ VCARD::paramTypesTable[] = {
|
|
|
|
|
ParamNone, // CLASS
|
|
|
|
|
ParamTextBin, // KEY
|
|
|
|
|
ParamTextNS // X
|
|
|
|
|
ParamNone, // URI
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
ParamType
|
|
|
|
@ -152,6 +156,7 @@ VCARD::EntityTypeToParamType(EntityType e)
|
|
|
|
|
case EntityName:
|
|
|
|
|
case EntityVersion:
|
|
|
|
|
case EntityProfile:
|
|
|
|
|
case EntityURI:
|
|
|
|
|
default: t = ParamNone; break;
|
|
|
|
|
//---------------------------------------------------------------//
|
|
|
|
|
|
|
|
|
@ -214,6 +219,7 @@ VCARD::EntityTypeToValueType(EntityType e)
|
|
|
|
|
case EntityProfile:
|
|
|
|
|
case EntityUID:
|
|
|
|
|
case EntityNote:
|
|
|
|
|
case EntityURI:
|
|
|
|
|
default: t = ValueText; break;
|
|
|
|
|
//---------------------------------------------------------------//
|
|
|
|
|
|
|
|
|
@ -344,6 +350,8 @@ VCARD::EntityNameToEntityType(const QCString & s)
|
|
|
|
|
t = EntityUID;
|
|
|
|
|
else if (s == "URL")
|
|
|
|
|
t = EntityURL;
|
|
|
|
|
else if (s == "URI")
|
|
|
|
|
t = EntityURI;
|
|
|
|
|
case 'V':
|
|
|
|
|
if (s == "VERSION")
|
|
|
|
|
t = EntityVersion;
|
|
|
|
|