From d65031c814769079a72d79b0edb84a20266b2b3c Mon Sep 17 00:00:00 2001 From: LostDragonist Date: Thu, 16 Aug 2018 22:40:05 -0500 Subject: Allow user to cancel VFS mapping --- src/usvfsconnector.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/usvfsconnector.h') diff --git a/src/usvfsconnector.h b/src/usvfsconnector.h index 0935bac1..40f8857b 100644 --- a/src/usvfsconnector.h +++ b/src/usvfsconnector.h @@ -21,7 +21,7 @@ along with Mod Organizer. If not, see . #ifndef USVFSCONNECTOR_H #define USVFSCONNECTOR_H - +#include #include #include #include @@ -58,6 +58,20 @@ private: }; +class UsvfsConnectorException : public std::exception { + +public: + UsvfsConnectorException(const QString &text) + : std::exception(), m_Message(text.toLocal8Bit()) {} + + virtual const char* what() const throw() + { return m_Message.constData(); } +private: + QByteArray m_Message; + +}; + + class UsvfsConnector : public QObject { Q_OBJECT -- cgit v1.3.1