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 )
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
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.
iterator insert(const Key &key, const T &value)
const T value(const Key &key) const