Index: sources/storage/filehandler.h =================================================================== diff -u -rfbeafa0714f065bce0403e2e8ce68f6d8fbea6bd -r5963f00ffd2c557d3ae06a5deea05032a3a3bd68 --- sources/storage/filehandler.h (.../filehandler.h) (revision fbeafa0714f065bce0403e2e8ce68f6d8fbea6bd) +++ sources/storage/filehandler.h (.../filehandler.h) (revision 5963f00ffd2c557d3ae06a5deea05032a3a3bd68) @@ -15,7 +15,7 @@ // Qt #include -#include +#include // Project #include "main.h" @@ -35,15 +35,14 @@ bool _umounted = false; const char *_usbDrive = ""; + QProcess _processCopyFolder; + // Singleton SINGLETON_DECL(FileHandler) public: bool init(); void quit(); - bool doExport(); - bool doImport(); - bool umounted( ) const; void umounted(bool vUmounted); @@ -52,14 +51,25 @@ bool usbSeek(QString &vDevice); + bool write(const QString &vFileName, const QString &vContent, bool vAppend); + bool read (const QString &vFileName, QString &vContent); + signals: void didUSBDriveMount (); void didUSBDriveUmount(); void didUSBDriveRemove(); + void didWrite(const QString &vFileName); + void didRead (const QString &vFileName, const QString &vContent); + public slots: void doUSBDriveMount (); + bool doWrite(const QString &vFileName, const QString &vContent, bool vAppend = true); + bool doRead (const QString &vFileName); + + bool doExportFolder(const QString &vFolder); + private slots: bool usbMount (const QString &vDevice); bool usbUmount(const QString &vDevice);