Index: sources/storage/filehandler.h =================================================================== diff -u -rfeb3423b373dc2a2c4267ef9fcb4d924d738423d -r5e78f0799b46963feb5756decb1a27b952cd19b3 --- sources/storage/filehandler.h (.../filehandler.h) (revision feb3423b373dc2a2c4267ef9fcb4d924d738423d) +++ sources/storage/filehandler.h (.../filehandler.h) (revision 5e78f0799b46963feb5756decb1a27b952cd19b3) @@ -14,45 +14,20 @@ #pragma once // Qt -#include -#include +#include -// Project -#include "main.h" - -// Define -#define _FileHandler FileHandler::I() - namespace Storage { -class FileHandler : public QObject +class FileHandler { - Q_OBJECT - QProcess _processCopyFolder; + int copyFolder(const QString &vSource, const QString &vDestination); -// Singleton -SINGLETON_DECL(FileHandler) public: - bool init(); - void quit(); + static bool write(const QString &vFileName, const QString &vContent, bool vAppend = true); + static bool read (const QString &vFileName, QString &vContent); -private: - void initConnections(); - - bool write(const QString &vFileName, const QString &vContent, bool vAppend); - bool read (const QString &vFileName, QString &vContent); - -signals: - void didWrite(const QString &vFileName); - void didRead (const QString &vFileName, const QString &vContent); - -public slots: - bool onWrite (const QString &vFileName, const QString &vContent, bool vAppend = true); -private slots: - bool onRead (const QString &vFileName); - - bool onExportLog(); + bool exportLog (); }; }