#ifndef CONFIG_H
#define CONFIG_H

#include <QGSettings>
#include <QString>
#include <QByteArray>
#include <QDBusInterface>
#include <QDebug>
#include <QProcess>
#include <QStyle>
#include <QPixmap>
#include <QtDBus/QDBusConnection>
#include <QtDBus/QDBusAbstractAdaptor>
#include <QtDBus/QDBusInterface>
#include <QtDBus/QDBusReply>
#include <QtDBus/QDBusConnectionInterface>
#include "windowmanager/windowmanager.h"
enum Environment
{
    NOMAL = 0,
    HUAWEI,
    LAIKA,
    MAVIS
};
extern Environment envPC;

class Config : public QObject
{
    Q_OBJECT
public:

    enum PixmapColor {
            WHITE = 0,
            BLACK,
            GRAY,
            BLUE,
    };
    Q_ENUM(PixmapColor)

    Config(QObject *parent = nullptr,QString name = "org.ukui.bluetooth");
    ~Config();

    static void SendNotifyMessage(QString);
    static void OpenBluetoothSettings();
    static const QPixmap loadSvg(const QPixmap &source, const PixmapColor &color);
    static void setKdkGeometry(QWindow *windowHandle, int width, int height, bool center);

private:
    QString setting_name;
    QGSettings    *gsetting = nullptr;
    friend class MainProgram;
    friend class TrayWidget;
};
#endif // CONFIG_H
