Pith - wedge
#ifndef CONFIGMANAGER_H
#define CONFIGMANAGER_H

#include <QColor>
#include <QDateTime>
#include <QString>

struct NoteData {
	bool autoStart;
	bool autoMerge;
	bool hideTaskbar;
	int fontSize;
	int networkRole;
	int networkRoute;
	int x, y, width, height;
	QColor bgColor;
	QColor focusColor;
	QColor highlightColor;
	QColor textColor;
	qint64 lastModified;
	qint64 lastSynced;
	QString content;
	QString fontFamily;
	QString headerFormat;
	QString ipAddress;
	QString passKey;
};

class ConfigManager {
public:
	static void saveNote(const NoteData &data);
	static NoteData loadNote();
	static void updateAutoStart(bool enable);
	static QString getConfigPath();
	static QString formatOtc(qint64 msecs);
	static bool backupNote();
	static qint64 lastBackupTime();
};

#endif