D-Bus API description for A2DPD
*******************************

Copyright (C) 2007  Frederic Dalleau <frederic.dalleau@access-company.com>

Constant definitions
====================

A2DPD states
		Started, Ended, Disconnected, Connecting, Connected

AVRCP commands
		avrcp_select, avrcp_up, avrcp_down, avrcp_left, avrcp_right, avrcp_right_up, avrcp_right_down, avrcp_left_up, avrcp_left_down, avrcp_root_menu, avrcp_setup_menu, avrcp_contents_menu, avrcp_favourite_menu, avrcp_exit, avrcp_0, avrcp_1, avrcp_2, avrcp_3, avrcp_4, avrcp_5, avrcp_6, avrcp_7, avrcp_8, avrcp_9, avrcp_dot, avrcp_enter, avrcp_clear, avrcp_channel_up, avrcp_channel_down, avrcp_sound_select, avrcp_input_select, avrcp_display_information, avrcp_help, avrcp_page_up, avrcp_page_down, avrcp_power, avrcp_volume_up, avrcp_volume_down, avrcp_mute, avrcp_play, avrcp_stop, avrcp_pause, avrcp_record, avrcp_rewind, avrcp_fast_forward, avrcp_eject, avrcp_forward, avrcp_backward, avrcp_angle, avrcp_subpicture, avrcp_f1, avrcp_f2, avrcp_f3, avrcp_f4, avrcp_f5, avrcp_vendor_unique

AVRCP commands directions
		up, down

A2DPD hierarchy
===============

Service		com.access.a2dpd
Interface	com.access.a2dpd.server
Object path	/com/access/a2dpd

Methods
		void SetAddress(string addr)

			Set address of device to play to Do not interfere with incoming connections

		string GetAddress()

			Get address of device to connect to.

		string GetState()

			Get current state of daemon (Disconnected,Connecting, Connected)

		void Connect()

			Start a connection

		void Disconnect()

			Disconnect connected device

		void AutoConnect(string state)

			state in 0/1 Connect when there is stream, disconnect when there is no stream

		void StreamSuspend()

			Send AVDTP_SUSPEND when streaming

		void StreamStart()

			Send AVDTP_START when suspended

Signals
		void A2StateChange(string state, string addr)

			state in Started when a2dpd starts and Ended when a2dpd ends.
			When Started is sent, the address is the address stored or given in parameter.
			state in Disconnected/Connecting/Connected Sent when the state is changing. If a device is connecting, the address will be that of the device and not that stored.

		void A2AddressChanged(string addr)

			Called when address changes. For example when SetAddress() is called or when the address is read in the file. If no address is specified, then the signal may be sent with empty string as parameter when an address is required.

		void A2Command(string dir, string cmd)

			Called when an avrcp command is received. Most common AVRCP commands are avrcp_play, avrcp_pause, avrcp_stop, avrcp_next, avrcp_forward, avrcp_backward. dir is either down or up depending whether the control key is pressed or released. new is a special command run when there a client connects. Other avrcp command can be received. ( )
