summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/FileTransfer/SOCKS5BytestreamServerResourceUser.h')
-rw-r--r--Swiften/FileTransfer/SOCKS5BytestreamServerResourceUser.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Swiften/FileTransfer/SOCKS5BytestreamServerResourceUser.h b/Swiften/FileTransfer/SOCKS5BytestreamServerResourceUser.h
new file mode 100644
index 0000000..014689b
--- /dev/null
+++ b/Swiften/FileTransfer/SOCKS5BytestreamServerResourceUser.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2015 Isode Limited.
+ * All rights reserved.
+ * See the COPYING file for more information.
+ */
+
+#pragma once
+
+#include <Swiften/Base/boost_bsignals.h>
+
+namespace Swift {
+
+class SOCKS5BytestreamServerManager;
+
+class SOCKS5BytestreamServerResourceUser {
+ public:
+ SOCKS5BytestreamServerResourceUser(SOCKS5BytestreamServerManager* s5bServerManager);
+ ~SOCKS5BytestreamServerResourceUser();
+
+ bool isInitialized() const;
+
+ boost::signal<void (bool /* success */)> onSuccessfulInitialized;
+
+ private:
+ void handleServerManagerInitialized(bool successfulInitialize);
+
+ private:
+ SOCKS5BytestreamServerManager* s5bServerManager_;
+};
+
+}