VideoPolicy.h 1006 Bytes
Newer Older
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 41 42 43 44 45 46 47 48
#pragma once

#include "Utils.h"

namespace Linphone
{
    namespace Core
	{
		ref class LinphoneCoreFactory;
		ref class LinphoneCore;

		/// <summary>
		/// Class describing policy regarding video streams establishments.
		/// </summary>
		public ref class VideoPolicy sealed
		{
		public:
			/// <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);
			}

		private:
			friend class Linphone::Core::Utils;
			friend ref class Linphone::Core::LinphoneCoreFactory;
			friend ref class Linphone::Core::LinphoneCore;

			VideoPolicy();
			VideoPolicy(bool automaticallyInitiate, bool automaticallyAccept);

			bool automaticallyInitiate;
			bool automaticallyAccept;
		};
	}
}