get_selected


Description:

[ Version ( since = "3.18" ) ]
public bool get_selected (int index, out string out_href, out uint out_supports, out string out_display_name, out string out_color, out uint out_order)

Returns information about selected source at index index.

The function can be called multiple times, with the index starting at zero and as long as it doesn't return false. If the this doesn't have allowed multiselection, then the only valid index is 0.

All the out_href, out_display_name and out_color are newly allocated strings, which should be freed with g_free, when no longer needed.

Parameters:

this

an WebDAVDiscoverContent

index

an index of the selected source; counts from 0

out_href

an output location for the URL of the selected source

out_supports

an output location of a bit-or of WebDAVDiscoverSupports , the set of source types this server source location supports

out_display_name

an output location of the sources display name

out_color

an output location of the string representation of the color for the source, as set on the server

out_order

an output location of the preferred sorting order

Returns:

true, when a selected source of index index exists, false otherwise.