You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lxqt-admin-packaging/lxqt-admin-time/timedatectl.h

31 lines
577 B

#ifndef TIMEDATECTL_H
#define TIMEDATECTL_H
#include <QString>
#include <QDateTime>
class QDBusInterface;
class TimeDateCtl
{
public:
explicit TimeDateCtl();
~TimeDateCtl();
bool useNtp() const;
bool setUseNtp(bool value, QString& errorMessage);
bool localRtc() const;
bool setLocalRtc(bool value, QString& errorMessage);
QString timeZone() const;
bool setTimeZone(QString timeZone, QString& errorMessage);
bool setDateTime(QDateTime dateTime, QString& errorMessage);
private:
QDBusInterface* mIface;
};
#endif // TIMEDATECTL_H