DMAP.Connection

g DMAP.Connection DMAP.Connection GObject.Object GObject.Object GObject.Object->DMAP.Connection

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
  authenticate_message (session, message, auth, password)
  get_headers (uri)
  is_connected ()
  setup ()

Virtual Methods

Inherited:GObject.Object (7)
  do_authenticate (name)
  do_connected ()
  do_connecting (state, progress)
  do_disconnected ()
  do_get_protocol_version_cc ()
  do_get_query_metadata ()
  do_operation_done ()

Properties

Name Type Flags Short Description
base-uri int r/w base URI
database-id int r/w database ID
db int r/w/co DMAP.Db object
dmap-version float r/w DMAP version
factory int r/w/co record factory
host str r/w/co host
name str r/w/co connection name
password str w connection password
port int r/w/co port
revision-number int r/w revision number
session-id int r/w session ID
username str r/w/co connection username

Signals

Inherited:GObject.Object (1)
Name Short Description
authenticate  
connected  
connecting  
disconnected  
operation-done  

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent GObject.Object r  

Class Details

class DMAP.Connection(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:DMAP.ConnectionClass
authenticate_message(session, message, auth, password)
Parameters:

Attach an authentication credential to a request. This method should be called by a function that is connected to the DMAP.Connection ::authenticate signal. The signal will provide the connection, session, message and auth to that function. That function should obtain a password and provide it to this method.

get_headers(uri)
Parameters:uri (str) –
Return type:Soup.MessageHeaders
is_connected()
Return type:bool
setup()
do_authenticate(name) virtual
Parameters:name (str) –
Return type:str
do_connected() virtual
do_connecting(state, progress) virtual
Parameters:
do_disconnected() virtual
do_get_protocol_version_cc() virtual
Return type:DMAP.ContentCode
do_get_query_metadata() virtual
Return type:str
do_operation_done() virtual

Signal Details

DMAP.Connection.signals.authenticate(connection, object, p0, p1, p2, p3)
Signal Name:

authenticate

Flags:

RUN_LAST

Parameters:
DMAP.Connection.signals.connected(connection)
Signal Name:connected
Flags:RUN_LAST
Parameters:connection (DMAP.Connection) – The object which received the signal
DMAP.Connection.signals.connecting(connection, object, p0)
Signal Name:

connecting

Flags:

RUN_LAST

Parameters:
DMAP.Connection.signals.disconnected(connection)
Signal Name:disconnected
Flags:RUN_LAST
Parameters:connection (DMAP.Connection) – The object which received the signal
DMAP.Connection.signals.operation_done(connection)
Signal Name:operation-done
Flags:RUN_FIRST
Parameters:connection (DMAP.Connection) – The object which received the signal

Property Details

DMAP.Connection.props.base_uri
Name:base-uri
Type:int
Default Value:None
Flags:READABLE, WRITABLE

base URI

DMAP.Connection.props.database_id
Name:database-id
Type:int
Default Value:0
Flags:READABLE, WRITABLE

database ID

DMAP.Connection.props.db
Name:db
Type:int
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

DMAP.Db object

DMAP.Connection.props.dmap_version
Name:dmap-version
Type:float
Default Value:0.0
Flags:READABLE, WRITABLE

DMAP version

DMAP.Connection.props.factory
Name:factory
Type:int
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

record factory

DMAP.Connection.props.host
Name:host
Type:str
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

host

DMAP.Connection.props.name
Name:name
Type:str
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

connection name

DMAP.Connection.props.password
Name:password
Type:str
Default Value:None
Flags:WRITABLE

connection password

DMAP.Connection.props.port
Name:port
Type:int
Default Value:0
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

port

DMAP.Connection.props.revision_number
Name:revision-number
Type:int
Default Value:0
Flags:READABLE, WRITABLE

revision number

DMAP.Connection.props.session_id
Name:session-id
Type:int
Default Value:0
Flags:READABLE, WRITABLE

session ID

DMAP.Connection.props.username
Name:username
Type:str
Default Value:'libdmapsharing'
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

connection username