8#ifndef KCONTACTS_PHONENUMBER_H
9#define KCONTACTS_PHONENUMBER_H
11#include "kcontacts_export.h"
16#include <QSharedDataPointer>
34 friend class VCardTool;
37 Q_PROPERTY(
QString id READ
id WRITE setId)
38 Q_PROPERTY(
QString number READ number WRITE setNumber)
39 Q_PROPERTY(
QString normalizedNumber READ normalizedNumber)
40 Q_PROPERTY(
Type type READ type WRITE setType)
41 Q_PROPERTY(
QString typeLabel READ typeLabel)
42 Q_PROPERTY(
bool isEmpty READ isEmpty)
43 Q_PROPERTY(
bool isPreferred READ isPreferred)
44 Q_PROPERTY(
bool supportsSms READ supportsSms)
120 Q_REQUIRED_RESULT
bool operator==(const
PhoneNumber &other) const;
125 Q_REQUIRED_RESULT
bool operator!=(const
PhoneNumber &other) const;
139 Q_REQUIRED_RESULT
bool isEmpty() const;
144 void setId(const
QString &identifier);
149 Q_REQUIRED_RESULT
QString id() const;
154 void setNumber(const
QString &number);
161 Q_REQUIRED_RESULT
QString number() const;
169 Q_REQUIRED_RESULT
QString normalizedNumber() const;
177 void setType(
Type type);
185 Q_REQUIRED_RESULT
Type type() const;
190 Q_REQUIRED_RESULT
QString typeLabel() const;
195 Q_REQUIRED_RESULT static
TypeList typeList();
201 Q_REQUIRED_RESULT
bool isPreferred() const;
206 Q_REQUIRED_RESULT
bool supportsSms() const;
236 KCONTACTS_NO_EXPORT
void setParams(const ParameterMap ¶ms);
237 Q_REQUIRED_RESULT KCONTACTS_NO_EXPORT ParameterMap params() const;
262Q_DECLARE_TYPEINFO(KContacts::
PhoneNumber, Q_RELOCATABLE_TYPE);
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:34 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.