| Top |
| void | (*DmapConnectionFunc) () |
| gboolean | dmap_connection_is_connected () |
| void | dmap_connection_start () |
| void | dmap_connection_stop () |
| SoupMessageHeaders * | dmap_connection_get_headers () |
| GSList * | dmap_connection_get_playlists () |
| void | dmap_connection_authenticate_message () |
| void | dmap_connection_emit_error () |
| GUri * | base-uri | Read / Write |
| int | database-id | Read / Write |
| DmapDb * | db | Read / Write / Construct Only |
| double | dmap-version | Read / Write |
| DmapRecordFactory * | factory | Read / Write / Construct Only |
| char * | host | Read / Write / Construct Only |
| char * | name | Read / Write / Construct Only |
| char * | password | Write |
| guint | port | Read / Write / Construct Only |
| int | revision-number | Read / Write |
| int | session-id | Read / Write |
| char * | username | Read / Write / Construct Only |
| void | authenticate | Run Last |
| void | connected | Run Last |
| void | connecting | Run Last |
| void | disconnected | Run Last |
| void | error | Run First |
| void | operation-done | Run First |
GEnum ╰── DmapConnectionState GObject ╰── DmapConnection ├── DmapAvConnection ├── DmapControlConnection ╰── DmapImageConnection
DmapConnection provides an abstract parent to the DmapAvConnection, DmapControlConnection, and DmapImageConnection classes.
void (*DmapConnectionFunc) (DmapConnection *connection,gboolean result,const char *reason,gpointer user_data);
gboolean
dmap_connection_is_connected (DmapConnection *connection);
Returns TRUE if the connection is presently connected.
void dmap_connection_start (DmapConnection *connection,DmapConnectionFunc callback,gpointer user_data);
Connect to the remote DMAP share.
void dmap_connection_stop (DmapConnection *connection,DmapConnectionFunc callback,gpointer user_data);
Disconnect from the remote DMAP share.
SoupMessageHeaders * dmap_connection_get_headers (DmapConnection *connection,const char *uri);
GSList *
dmap_connection_get_playlists (DmapConnection *connection);
Get the playlists associated with a DmapConnection instance.
void dmap_connection_authenticate_message (DmapConnection *connection,SoupSession *session,SoupMessage *message,SoupAuth *auth,const char *password);
Attach an authentication credential to a request. This method should be called by a function that is connected to the “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.
void dmap_connection_emit_error (DmapConnection *connection,gint code,const gchar *format,...);
connection |
a DmapConnection instance. |
|
code |
error code. |
|
format |
printf()-style format for error message |
|
... |
parameters for message format |
Enumeration of connection states.
“database-id” property “database-id” int
database ID.
Owner: DmapConnection
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“db” property“db” DmapDb *
DmapDb object.
Owner: DmapConnection
Flags: Read / Write / Construct Only
“dmap-version” property “dmap-version” double
DMAP version.
Owner: DmapConnection
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“factory” property“factory” DmapRecordFactory *
record factory.
Owner: DmapConnection
Flags: Read / Write / Construct Only
“host” property “host” char *
host.
Owner: DmapConnection
Flags: Read / Write / Construct Only
Default value: NULL
“name” property “name” char *
connection name.
Owner: DmapConnection
Flags: Read / Write / Construct Only
Default value: NULL
“password” property “password” char *
connection password.
Owner: DmapConnection
Flags: Write
Default value: NULL
“port” property “port” guint
port.
Owner: DmapConnection
Flags: Read / Write / Construct Only
Allowed values: <= G_MAXINT
Default value: 0
“revision-number” property “revision-number” int
revision number.
Owner: DmapConnection
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“session-id” property “session-id” int
session ID.
Owner: DmapConnection
Flags: Read / Write
Allowed values: >= 0
Default value: 0
“authenticate” signalvoid user_function (DmapConnection *dmapconnection, char *arg1, SoupSession *arg2, SoupMessage *arg3, SoupAuth *arg4, gboolean arg5, gpointer user_data)
Flags: Run Last
“connected” signalvoid user_function (DmapConnection *dmapconnection, gpointer user_data)
Flags: Run Last
“connecting” signalvoid user_function (DmapConnection *dmapconnection, gulong arg1, float arg2, gpointer user_data)
Flags: Run Last
“disconnected” signalvoid user_function (DmapConnection *dmapconnection, gpointer user_data)
Flags: Run Last
“error” signalvoid user_function (DmapConnection *dmapconnection, gpointer arg1, gpointer user_data)
Flags: Run First
“operation-done” signalvoid user_function (DmapConnection *dmapconnection, gpointer user_data)
Flags: Run First