KContacts

related.h
1 /*
2  This file is part of the KContacts framework.
3  SPDX-FileCopyrightText: 2015-2019 Laurent Montel <[email protected]>
4 
5  SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7 
8 #ifndef RELATED_H
9 #define RELATED_H
10 
11 #include "kcontacts_export.h"
12 #include <QSharedDataPointer>
13 #include <QString>
14 #include <QMap>
15 
16 namespace KContacts {
18 class KCONTACTS_EXPORT Related
19 {
20  friend KCONTACTS_EXPORT QDataStream &operator<<(QDataStream &, const Related &);
21  friend KCONTACTS_EXPORT QDataStream &operator>>(QDataStream &, Related &);
22 public:
23  Related();
24  Related(const Related &other);
25  Related(const QString &related);
26 
27  ~Related();
28 
29  typedef QVector<Related> List;
30 
31  void setRelated(const QString &relatedTo);
32  Q_REQUIRED_RESULT QString related() const;
33 
34  Q_REQUIRED_RESULT bool isValid() const;
35 
36  void setParameters(const QMap<QString, QStringList> &params);
37  Q_REQUIRED_RESULT QMap<QString, QStringList> parameters() const;
38 
39  Q_REQUIRED_RESULT bool operator==(const Related &other) const;
40  Q_REQUIRED_RESULT bool operator!=(const Related &other) const;
41 
42  Related &operator=(const Related &other);
43 
44  Q_REQUIRED_RESULT QString toString() const;
45 private:
46  class Private;
48 };
49 KCONTACTS_EXPORT QDataStream &operator<<(QDataStream &stream, const Related &object);
50 
51 KCONTACTS_EXPORT QDataStream &operator>>(QDataStream &stream, Related &object);
52 }
53 Q_DECLARE_TYPEINFO(KContacts::Related, Q_MOVABLE_TYPE);
54 #endif // LANG_H
Descripes a relationship of an Addressee.
Definition: related.h:18
QDataStream & operator>>(QDataStream &in, KDateTime::Spec &spec)
QDataStream & operator<<(QDataStream &out, const KDateTime::Spec &spec)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jul 9 2020 22:54:11 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.