summaryrefslogtreecommitdiffstats
blob: e1270c4d70b5179c658b22d95dd95f562d1e467e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * Copyright (c) 2013 Remko Tronçon
 * Licensed under the GNU General Public License.
 * See the COPYING file for more information.
 */

#pragma once

#include <Swiften/Base/API.h>
#include <Swiften/Elements/JinglePayload.h>

namespace Swift {
	class JingleContentID;
	class JingleTransportPayload;
	class JingleDescription;

	class SWIFTEN_API JingleSessionListener {
		public:
			virtual ~JingleSessionListener();

			virtual void handleSessionAcceptReceived(
					const JingleContentID&, 
					boost::shared_ptr<JingleDescription>, 
					boost::shared_ptr<JingleTransportPayload>) = 0;
			virtual void handleSessionInfoReceived(boost::shared_ptr<JinglePayload>) = 0;
			virtual void handleSessionTerminateReceived(boost::optional<JinglePayload::Reason>) = 0;
			virtual void handleTransportAcceptReceived(
					const JingleContentID&, 
					boost::shared_ptr<JingleTransportPayload>) = 0;
			virtual void handleTransportInfoReceived(
					const JingleContentID&, 
					boost::shared_ptr<JingleTransportPayload>) = 0;
			virtual void handleTransportRejectReceived(
					const JingleContentID&, boost::shared_ptr<JingleTransportPayload>) = 0;
			virtual void handleTransportReplaceReceived(
					const JingleContentID&, boost::shared_ptr<JingleTransportPayload>) = 0;

			virtual void handleTransportInfoAcknowledged(const std::string& id) = 0;
	};
}