diff options
author | dknn <yoann.blein@free.fr> | 2012-07-08 20:27:27 (GMT) |
---|---|---|
committer | dknn <yoann.blein@free.fr> | 2012-09-22 09:00:01 (GMT) |
commit | 1b2d23c160b4c120a364ff9e86b54e2d8caeaaa4 (patch) | |
tree | 94c9884d7746786568d0da2d6e122dd0f0b5ca9c /Swiften/ScreenSharing/IncomingScreenSharing.h | |
parent | 4e0236b08d3914d24af32f45bc99663a73c6d83a (diff) | |
download | swift-contrib-1b2d23c160b4c120a364ff9e86b54e2d8caeaaa4.zip swift-contrib-1b2d23c160b4c120a364ff9e86b54e2d8caeaaa4.tar.bz2 |
Screen sharing managing
Diffstat (limited to 'Swiften/ScreenSharing/IncomingScreenSharing.h')
-rw-r--r-- | Swiften/ScreenSharing/IncomingScreenSharing.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Swiften/ScreenSharing/IncomingScreenSharing.h b/Swiften/ScreenSharing/IncomingScreenSharing.h new file mode 100644 index 0000000..a9850fd --- /dev/null +++ b/Swiften/ScreenSharing/IncomingScreenSharing.h @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2012 Yoann Blein + * Licensed under the simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include <Swiften/ScreenSharing/ScreenSharing.h> +#include <Swiften/Jingle/JingleContentID.h> + +namespace Swift { + class JingleContentPayload; + + class IncomingScreenSharing : public ScreenSharing + { + public: + typedef boost::shared_ptr<IncomingScreenSharing> ref; + + public: + IncomingScreenSharing(boost::shared_ptr<JingleSession> session, UDPSocketFactory* udpSocketFactory, + boost::shared_ptr<JingleContentPayload> content); + virtual ~IncomingScreenSharing(); + + virtual void cancel(); + + void accept(); + + private: + JingleContentID getContentID() const; + + private: + boost::shared_ptr<JingleContentPayload> initialContent; + }; +} |