// Copyright 2017 Alejandro Sirgo Rica
//
// This file is part of Flameshot.
//
// Flameshot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Flameshot is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see .
#ifndef CONFIGHANDLER_H
#define CONFIGHANDLER_H
#include "src/capture/widget/capturebutton.h"
#include
#include
class ConfigHandler
{
public:
explicit ConfigHandler();
QList getButtons();
void setButtons(const QList &);
QString savePathValue();
void setSavePath(const QString &);
QColor uiMainColorValue();
void setUIMainColor(const QColor &);
QColor uiContrastColorValue();
void setUIContrastColor(const QColor &);
QColor drawColorValue();
void setDrawColor(const QColor &);
bool showHelpValue();
void setShowHelp(const bool);
bool desktopNotificationValue();
void setDesktopNotification(const bool);
QString filenamePatternValue();
void setFilenamePattern(const QString &);
bool disabledTrayIconValue();
void setDisabledTrayIcon(const bool);
int drawThicknessValue();
void setdrawThickness(const int);
bool initiatedIsSet();
void setInitiated();
void setNotInitiated();
void setDefaults();
void setAllTheButtons();
QString configFilePath() const;
private:
QSettings m_settings;
bool normalizeButtons(QList &);
QList fromIntToButton(const QList &l);
QList fromButtonToInt(const QList &l);
};
#endif // CONFIGHANDLER_H