Preparing the upcoming release, switch to experimental Removed build dependency liboobs-1-dev (Closes: ) Added build dependency libqt5xdgiconloader-dev Removed minimum versions for libqt5xdg-dev Bumped Standards to 3.9.8, no changes needed Fixed VCS-Fields, use https Added recommends lxqt-admin-l10n Bumped copyright years Added hardening to rules Added translation control to rules Set CMAKE_BUILD_TYPE=RelWithDebInfo Added README.md to docs
31 lines
577 B
C++
31 lines
577 B
C++
#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
|