diff options
| author | LostDragonist <lost.dragonist@gmail.com> | 2018-08-16 22:40:05 -0500 |
|---|---|---|
| committer | LostDragonist <lost.dragonist@gmail.com> | 2018-08-16 22:40:17 -0500 |
| commit | d65031c814769079a72d79b0edb84a20266b2b3c (patch) | |
| tree | 45031716de5c9653851126a5763a7c3db2fdca92 /src/usvfsconnector.h | |
| parent | c27e718fbdb3355bb75a92e8773afebb7d9c69a5 (diff) | |
Allow user to cancel VFS mapping
Diffstat (limited to 'src/usvfsconnector.h')
| -rw-r--r-- | src/usvfsconnector.h | 16 |
1 files changed, 15 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. #ifndef USVFSCONNECTOR_H #define USVFSCONNECTOR_H - +#include <exception> #include <filemapping.h> #include <QString> #include <QThread> @@ -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 |
