QXmpp: QXmppContactAddresses.h Source File

QXmpp Version: 1.14.3

Loading...
Searching...
No Matches
QXmppContactAddresses.h
1// SPDX-FileCopyrightText: 2025 Linus Jahn <lnj@kaidan.im>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPCONTACTADDRESSES_H
6#define QXMPPCONTACTADDRESSES_H
7
8#include "QXmppConstants_p.h"
9#include "QXmppDataFormBase.h"
10
11struct QXmppContactAddressesPrivate;
12
13 class QXMPP_EXPORT QXmppContactAddresses : public QXmppExtensibleDataFormBase
14{
15public:
17 static constexpr auto DataFormType = QXmpp::Private::ns_contact_addresses;
18 static std::optional<QXmppContactAddresses> fromDataForm(const QXmppDataForm &form);
19
20 QXmppContactAddresses();
21 QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppContactAddresses)
22
23 QList<QString> abuseAddresses() const;
24 void setAbuseAddresses(const QList<QString> &);
25
26 QList<QString> adminAddresses() const;
27 void setAdminAddresses(const QList<QString> &newAdminAddresses);
28
29 QList<QString> feedbackAddresses() const;
30 void setFeedbackAddresses(const QList<QString> &newFeedbackAddresses);
31
32 QList<QString> salesAddresses() const;
33 void setSalesAddresses(const QList<QString> &newSalesAddresses);
34
35 QList<QString> securityAddresses() const;
36 void setSecurityAddresses(const QList<QString> &newSecurityAddresses);
37
38 QList<QString> statusAddresses() const;
39 void setStatusAddresses(const QList<QString> &newStatusAddresses);
40
41 QList<QString> supportAddresses() const;
42 void setSupportAddresses(const QList<QString> &newSupportAddresses);
43
44protected:
45 QString formType() const override;
46 bool parseField(const QXmppDataForm::Field &) override;
47 void serializeForm(QXmppDataForm &) const override;
48
49private:
50 QSharedDataPointer<QXmppContactAddressesPrivate> d;
51};
52
53#endif // QXMPPCONTACTADDRESSES_H
QXmppContactAddresses::setSupportAddresses
void setSupportAddresses(const QList< QString > &newSupportAddresses)
Sets addresses for customer support.
Definition QXmppContactAddresses.cpp:137
QXmppContactAddresses::supportAddresses
QList< QString > supportAddresses() const
Returns addresses for customer support.
Definition QXmppContactAddresses.cpp:131
QXmppContactAddresses::setSalesAddresses
void setSalesAddresses(const QList< QString > &newSalesAddresses)
Sets addresses for communication related to sales and marketing.
Definition QXmppContactAddresses.cpp:101
QXmppContactAddresses::setStatusAddresses
void setStatusAddresses(const QList< QString > &newStatusAddresses)
Sets addresses for service status.
Definition QXmppContactAddresses.cpp:125
QXmppContactAddresses::salesAddresses
QList< QString > salesAddresses() const
Returns addresses for communication related to sales and marketing.
Definition QXmppContactAddresses.cpp:95
QXmppContactAddresses::DataFormType
static constexpr auto DataFormType
FORM_TYPE of this data form.
Definition QXmppContactAddresses.h:17
QXmppContactAddresses::setFeedbackAddresses
void setFeedbackAddresses(const QList< QString > &newFeedbackAddresses)
Sets addresses for customer feedback.
Definition QXmppContactAddresses.cpp:89
QXmppContactAddresses::statusAddresses
QList< QString > statusAddresses() const
Returns addresses for service status.
Definition QXmppContactAddresses.cpp:119
QXmppContactAddresses::setAdminAddresses
void setAdminAddresses(const QList< QString > &newAdminAddresses)
Sets addresses for communication with the service administrators.
Definition QXmppContactAddresses.cpp:77
QXmppContactAddresses::feedbackAddresses
QList< QString > feedbackAddresses() const
Returns addresses for customer feedback.
Definition QXmppContactAddresses.cpp:83
QXmppContactAddresses::abuseAddresses
QList< QString > abuseAddresses() const
Returns addresses for communication related to abusive traffic.
Definition QXmppContactAddresses.cpp:59
QXmppContactAddresses::setSecurityAddresses
void setSecurityAddresses(const QList< QString > &newSecurityAddresses)
Sets addresses for communication related to security concerns.
Definition QXmppContactAddresses.cpp:113
QXmppContactAddresses::adminAddresses
QList< QString > adminAddresses() const
Returns addresses for communication with the service administrators.
Definition QXmppContactAddresses.cpp:71
QXmppContactAddresses::setAbuseAddresses
void setAbuseAddresses(const QList< QString > &)
Sets addresses for communication related to abusive traffic.
Definition QXmppContactAddresses.cpp:65
QXmppContactAddresses::securityAddresses
QList< QString > securityAddresses() const
Returns addresses for communication related to security concerns.
Definition QXmppContactAddresses.cpp:107
QXmppDataForm::Field
Definition QXmppDataForm.h:93
QXmppDataFormBase::fromDataForm
static bool fromDataForm(const QXmppDataForm &form, QXmppDataFormBase &parent)
Definition QXmppDataFormBase.cpp:55
QXmppDataFormBase::formType
virtual QString formType() const =0
QXmppDataForm
Definition QXmppDataForm.h:28
QXmppExtensibleDataFormBase::serializeForm
void serializeForm(QXmppDataForm &) const override
Definition QXmppDataFormBase.cpp:204
QXmppExtensibleDataFormBase::parseField
virtual bool parseField(const QXmppDataForm::Field &)
Definition QXmppDataFormBase.cpp:215