From d13f6bb870cdda71257f665367be8ef9fca86255 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Tue, 17 May 2022 11:47:01 +0200 Subject: Apply clang-format. --- src/usvfsconnector.h | 60 +++++++++++++++++++++++----------------------------- 1 file changed, 26 insertions(+), 34 deletions(-) (limited to 'src/usvfsconnector.h') diff --git a/src/usvfsconnector.h b/src/usvfsconnector.h index bf5d49ce..798d5983 100644 --- a/src/usvfsconnector.h +++ b/src/usvfsconnector.h @@ -17,29 +17,27 @@ You should have received a copy of the GNU General Public License along with Mod Organizer. If not, see . */ - #ifndef USVFSCONNECTOR_H #define USVFSCONNECTOR_H -#include -#include -#include -#include -#include +#include "envdump.h" +#include "executableinfo.h" #include +#include #include -#include +#include +#include +#include +#include #include -#include "executableinfo.h" -#include "envdump.h" - +#include -class LogWorker : public QThread { +class LogWorker : public QThread +{ Q_OBJECT public: - LogWorker(); ~LogWorker(); @@ -50,60 +48,54 @@ public slots: signals: - void outputLog(const QString &message); + void outputLog(const QString& message); void finished(); private: - std::string m_Buffer; bool m_QuitRequested; QFile m_LogFile; - }; - -class UsvfsConnectorException : public std::exception { +class UsvfsConnectorException : public std::exception +{ public: - UsvfsConnectorException(const QString &text) - : std::exception(), m_Message(text.toLocal8Bit()) {} + UsvfsConnectorException(const QString& text) + : std::exception(), m_Message(text.toLocal8Bit()) + {} + + virtual const char* what() const throw() { return m_Message.constData(); } - virtual const char* what() const throw() - { return m_Message.constData(); } private: QByteArray m_Message; - }; - -class UsvfsConnector : public QObject { +class UsvfsConnector : public QObject +{ Q_OBJECT public: - UsvfsConnector(); ~UsvfsConnector(); - void updateMapping(const MappingType &mapping); + void updateMapping(const MappingType& mapping); - void updateParams( - MOBase::log::Levels logLevel, env::CoreDumpTypes coreDumpType, - const QString& crashDumpsPath, std::chrono::seconds spawnDelay, - QString executableBlacklist); + void updateParams(MOBase::log::Levels logLevel, env::CoreDumpTypes coreDumpType, + const QString& crashDumpsPath, std::chrono::seconds spawnDelay, + QString executableBlacklist); void updateForcedLibraries( - const QList &forcedLibraries); + const QList& forcedLibraries); private: - LogWorker m_LogWorker; QThread m_WorkerThread; - }; CrashDumpsType crashDumpsType(int type); std::vector getRunningUSVFSProcesses(); -#endif // USVFSCONNECTOR_H +#endif // USVFSCONNECTOR_H -- cgit v1.3.1