diff options
Diffstat (limited to 'Swift/Controllers/UIInterfaces')
-rw-r--r-- | Swift/Controllers/UIInterfaces/RemoteScreenWindow.h | 24 | ||||
-rw-r--r-- | Swift/Controllers/UIInterfaces/RemoteScreenWindowFactory.h | 21 | ||||
-rw-r--r-- | Swift/Controllers/UIInterfaces/UIFactory.h | 5 |
3 files changed, 48 insertions, 2 deletions
diff --git a/Swift/Controllers/UIInterfaces/RemoteScreenWindow.h b/Swift/Controllers/UIInterfaces/RemoteScreenWindow.h new file mode 100644 index 0000000..c31ca91 --- /dev/null +++ b/Swift/Controllers/UIInterfaces/RemoteScreenWindow.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2012 Yoann Blein + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include <boost/shared_ptr.hpp> + +namespace Swift { + class IncomingScreenSharing; + class Image; + + class RemoteScreenWindow { + public: + RemoteScreenWindow(boost::shared_ptr<IncomingScreenSharing> incScreenSharing) + : iss(incScreenSharing) {} + virtual ~RemoteScreenWindow() {} + + protected: + boost::shared_ptr<IncomingScreenSharing> iss; + }; +} diff --git a/Swift/Controllers/UIInterfaces/RemoteScreenWindowFactory.h b/Swift/Controllers/UIInterfaces/RemoteScreenWindowFactory.h new file mode 100644 index 0000000..7c78777 --- /dev/null +++ b/Swift/Controllers/UIInterfaces/RemoteScreenWindowFactory.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2012 Yoann Blein + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include "Swift/Controllers/UIInterfaces/RemoteScreenWindow.h" + +#include <boost/shared_ptr.hpp> + +namespace Swift { + class IncomingScreenSharing; + class RemoteScreenWindowFactory { + public: + virtual ~RemoteScreenWindowFactory() {} + + virtual RemoteScreenWindow* createRemoteScreenViewer(boost::shared_ptr<IncomingScreenSharing> iss) = 0; + }; +} diff --git a/Swift/Controllers/UIInterfaces/UIFactory.h b/Swift/Controllers/UIInterfaces/UIFactory.h index 6b4efd8..e0e5425 100644 --- a/Swift/Controllers/UIInterfaces/UIFactory.h +++ b/Swift/Controllers/UIInterfaces/UIFactory.h @@ -21,12 +21,12 @@ #include <Swift/Controllers/UIInterfaces/AdHocCommandWindowFactory.h> #include <Swift/Controllers/UIInterfaces/FileTransferListWidgetFactory.h> #include <Swift/Controllers/UIInterfaces/WhiteboardWindowFactory.h> +#include <Swift/Controllers/UIInterfaces/RemoteScreenWindowFactory.h> namespace Swift { class UIFactory : public ChatListWindowFactory, public ChatWindowFactory, - public HistoryWindowFactory, public EventWindowFactory, public LoginWindowFactory, public MainWindowFactory, @@ -38,7 +38,8 @@ namespace Swift { public ContactEditWindowFactory, public AdHocCommandWindowFactory, public FileTransferListWidgetFactory, - public WhiteboardWindowFactory { + public WhiteboardWindowFactory, + public RemoteScreenWindowFactory { public: virtual ~UIFactory() {} }; |