KUnifiedPush

abstractpushprovider.cpp
1/*
2 SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#include "abstractpushprovider.h"
7
8#include <QNetworkAccessManager>
9#include <QStandardPaths>
10
11using namespace KUnifiedPush;
12
13AbstractPushProvider::AbstractPushProvider(const char *providerId, QObject *parent)
14 : QObject(parent)
15 , m_providerId(providerId)
16{
17}
18
19AbstractPushProvider::~AbstractPushProvider() = default;
20
22{
23 return m_providerId;
24}
25
26QNetworkAccessManager* AbstractPushProvider::nam()
27{
28 if (!m_nam) {
29 m_nam = new QNetworkAccessManager(this);
33 }
34 return m_nam;
35}
36
37#include "moc_abstractpushprovider.cpp"
const char * providerId() const
Provider id used e.g.
Client-side integration with UnifiedPush.
Definition connector.h:16
void enableStrictTransportSecurityStore(bool enabled, const QString &storeDir)
void setRedirectPolicy(QNetworkRequest::RedirectPolicy policy)
void setStrictTransportSecurityEnabled(bool enabled)
QString writableLocation(StandardLocation type)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:01:33 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.