akonadi/contact
22 #include "customfields_p.h"
24 CustomField::CustomField()
25 : mType( TextType ), mScope( LocalScope )
29 CustomField::CustomField(
const QString &key,
const QString &title, Type type, Scope scope )
30 : mKey( key ), mTitle( title ), mType( type ), mScope( scope )
34 CustomField CustomField::fromVariantMap(
const QVariantMap &map, Scope scope )
38 stringToType( map.value(
QLatin1String(
"type" ) ).toString() ),
42 void CustomField::setKey(
const QString &key )
47 QString CustomField::key()
const
52 void CustomField::setTitle(
const QString &title )
57 QString CustomField::title()
const
62 void CustomField::setType( Type type )
67 CustomField::Type CustomField::type()
const
72 void CustomField::setScope( Scope scope )
82 void CustomField::setValue(
const QString &value )
87 QString CustomField::value()
const
92 QVariantMap CustomField::toVariantMap()
const
102 CustomField::Type CustomField::stringToType(
const QString &type )
105 return CustomField::TextType;
108 return CustomField::NumericType;
111 return CustomField::BooleanType;
114 return CustomField::DateType;
117 return CustomField::TimeType;
120 return CustomField::DateTimeType;
123 return CustomField::UrlType;
126 return CustomField::TextType;
129 QString CustomField::typeToString( CustomField::Type type )
132 case CustomField::TextType:
136 case CustomField::NumericType:
139 case CustomField::BooleanType:
142 case CustomField::DateType:
145 case CustomField::TimeType:
148 case CustomField::DateTimeType:
151 case CustomField::UrlType:
A class that represents non-standard contact fields.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:19 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.