VideoPolicy.h 2.16 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*
VideoPolicy.h
Copyright (C) 2015  Belledonne Communications, Grenoble, France
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
14
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
15 16
*/

17 18 19 20
#pragma once

#include "Utils.h"

21
namespace BelledonneCommunications
22
{
23
	namespace Linphone
24
	{
25
		namespace Native
26
		{
27
			ref class LinphoneCore;
28

29
			/// <summary>
30
			/// Class describing policy regarding video streams establishments.
31
			/// </summary>
32
			public ref class VideoPolicy sealed
33
			{
34 35 36 37 38 39
			public:
				/// <summary>
				/// Creates a default VideoPolicy object (automatically initiate and accept).
				/// </summary>
				/// <returns>The created VideoPolicy</returns>
				VideoPolicy();
40

41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
				/// <summary>
				/// Creates a VideoPolicy object.
				/// </summary>
				/// <param name="automaticallyInitiate">Whether to activate video for outgoing calls</param>
				/// <param name="automaticallyAccept">Whether to accept video for incoming calls</param>
				/// <returns>The created VideoPolicy</returns>
				VideoPolicy(bool automaticallyInitiate, bool automaticallyAccept);

				/// <summary>
				/// Whether video shall be automatically proposed for outgoing calls.
				/// </summary>
				property bool AutomaticallyInitiate
				{
					bool get();
					void set(bool value);
				}

				/// <summary>
				/// Whether video shall be automatically accepted for incoming calls.
				/// </summary>
				property bool AutomaticallyAccept
				{
					bool get();
					void set(bool value);
				}
66

67 68 69
			private:
				friend class Utils;
				friend ref class LinphoneCore;
70

71 72 73 74
				bool automaticallyInitiate;
				bool automaticallyAccept;
			};
		}
75 76
	}
}