Loading...
Searching...
No Matches
QXmppContactAddresses.h
// SPDX-FileCopyrightText: 2025 Linus Jahn <lnj@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPCONTACTADDRESSES_H
#define QXMPPCONTACTADDRESSES_H
#include "QXmppConstants_p.h"
#include "QXmppDataFormBase.h"
struct QXmppContactAddressesPrivate;
class QXMPP_EXPORT QXmppContactAddresses : public QXmppExtensibleDataFormBase
{
public:
static constexpr auto DataFormType = QXmpp::Private::ns_contact_addresses;
static std::optional<QXmppContactAddresses> fromDataForm(const QXmppDataForm &form);
QXmppContactAddresses();
QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppContactAddresses)
QList<QString> abuseAddresses() const;
void setAbuseAddresses(const QList<QString> &);
QList<QString> adminAddresses() const;
void setAdminAddresses(const QList<QString> &newAdminAddresses);
QList<QString> feedbackAddresses() const;
void setFeedbackAddresses(const QList<QString> &newFeedbackAddresses);
QList<QString> salesAddresses() const;
void setSalesAddresses(const QList<QString> &newSalesAddresses);
QList<QString> securityAddresses() const;
void setSecurityAddresses(const QList<QString> &newSecurityAddresses);
QList<QString> statusAddresses() const;
void setStatusAddresses(const QList<QString> &newStatusAddresses);
QList<QString> supportAddresses() const;
void setSupportAddresses(const QList<QString> &newSupportAddresses);
protected:
QString formType() const override;
bool parseField(const QXmppDataForm::Field &) override;
void serializeForm(QXmppDataForm &) const override;
private:
QSharedDataPointer<QXmppContactAddressesPrivate> d;
};
#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
QXmppDataFormBase::fromDataForm
static bool fromDataForm(const QXmppDataForm &form, QXmppDataFormBase &parent)
Definition QXmppDataFormBase.cpp:55
QXmppDataFormBase::formType
virtual QString formType() const =0
QXmppDataForm::Field
Definition QXmppDataForm.h:93
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