3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-12 02:05:54 +00:00
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

39 lines
839 B
C++

/*
SPDX-FileCopyrightText: 1998 Luca Montecchiani <m.luca@usa.net>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef CLOCK_HELPER_H
#define CLOCK_HELPER_H
#include <QObject>
#include <kauth_version.h>
#if KAUTH_VERSION >= QT_VERSION_CHECK(5, 92, 0)
#include <KAuth/ActionReply>
#include <KAuth/HelperSupport>
#else
#include <KAuth>
#endif
using namespace KAuth;
class ClockHelper : public QObject
{
Q_OBJECT
public:
enum { CallError = 1 << 0, TimezoneError = 1 << 1, NTPError = 1 << 2, DateError = 1 << 3 };
public Q_SLOTS:
ActionReply save(const QVariantMap &map);
private:
int ntp(const QStringList &ntpServers, bool ntpEnabled);
int date(const QString &newdate, const QString &olddate);
int tz(const QString &selectedzone);
int tzreset();
void toHwclock();
};
#endif // CLOCK_HELPER_H