system.h 477 Bytes
#ifndef SYSTEM_H
#define SYSTEM_H


#include <QtCore>
#include <QDateTime>

namespace System {
struct IPData
{
    QString address;
    QString netmask;
    QString gateway;

    bool operator==(const IPData &other)
    {
        return address == other.address && netmask == other.netmask && gateway == other.gateway;
    }
};

void setIP(IPData &data);

void setBacklight(int level);

void setVolume(int percentage);

bool setRtcTime(QDateTime dt_tm);

}

#endif // SYSTEM_H