diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2018-02-22 18:02:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-22 18:02:02 +0200 |
| commit | 28714f0eb800f2170acbf29dddce1582d20d6b8b (patch) | |
| tree | 0684c123db375336e0e03f0240155a12e744db16 /src/usvfsconnector.h | |
| parent | 0bcd752b2758bdb072b498ccc90905276be065e9 (diff) | |
| parent | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (diff) | |
Merge pull request #236 from SuperSandro2000/new_vfs_library
Update reame.md
Diffstat (limited to 'src/usvfsconnector.h')
| -rw-r--r-- | src/usvfsconnector.h | 50 |
1 files changed, 20 insertions, 30 deletions
diff --git a/src/usvfsconnector.h b/src/usvfsconnector.h index 0935bac1..937912bf 100644 --- a/src/usvfsconnector.h +++ b/src/usvfsconnector.h @@ -17,64 +17,54 @@ You should have received a copy of the GNU General Public License along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. */ - #ifndef USVFSCONNECTOR_H #define USVFSCONNECTOR_H - -#include <filemapping.h> +#include <QDebug> +#include <QFile> #include <QString> #include <QThread> -#include <QFile> -#include <QDebug> +#include <filemapping.h> #include <usvfsparameters.h> - class LogWorker : public QThread { - Q_OBJECT + Q_OBJECT public: - - LogWorker(); - ~LogWorker(); + LogWorker(); + ~LogWorker(); public slots: - void process(); - void exit(); + void process(); + void exit(); signals: - void outputLog(const QString &message); - void finished(); + void outputLog(const QString& message); + void finished(); private: - - std::string m_Buffer; - bool m_QuitRequested; - QFile m_LogFile; - + std::string m_Buffer; + bool m_QuitRequested; + QFile m_LogFile; }; - class UsvfsConnector : public QObject { - Q_OBJECT + Q_OBJECT public: + UsvfsConnector(); + ~UsvfsConnector(); - UsvfsConnector(); - ~UsvfsConnector(); - - void updateMapping(const MappingType &mapping); - void updateParams(int logLevel, int crashDumpsType); + void updateMapping(const MappingType& mapping); + void updateParams(int logLevel, int crashDumpsType); private: - - LogWorker m_LogWorker; - QThread m_WorkerThread; - + LogWorker m_LogWorker; + QThread m_WorkerThread; }; CrashDumpsType crashDumpsType(int type); |
