KUnifiedPush

main.cpp
1/*
2 SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#include "distributor.h"
7#include "logging.h"
8
9#include "../shared/unifiedpush-constants.h"
10
11#include <QCoreApplication>
12#include <QDBusConnection>
13
14using namespace KUnifiedPush;
15
16int main(int argc, char **argv)
17{
18 QCoreApplication::setOrganizationDomain(QStringLiteral("kde.org"));
19 QCoreApplication::setOrganizationName(QStringLiteral("KDE"));
20
21 QCoreApplication app(argc, argv);
22 KUnifiedPush::Distributor distributor;
23 if (!QDBusConnection::sessionBus().registerService(QLatin1String(KDE_DISTRIBUTOR_SERVICE_NAME))) {
24 qCCritical(Log) << "Distributor service name already in use - aborting!";
25 return 1;
26 }
27
28 return app.exec();
29}
UnifiedPush distributor service.
Definition distributor.h:29
Client-side integration with UnifiedPush.
Definition connector.h:16
void setOrganizationDomain(const QString &orgDomain)
void setOrganizationName(const QString &orgName)
QDBusConnection sessionBus()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 24 2024 12:02:24 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.