add_application


Description:

public void add_application (string uri, string name, string exec)

Adds the application with name and exec to the list of applications that have registered a bookmark for uri into this.

Every bookmark inside a BookmarkFile must have at least an application registered. Each application must provide a name, a command line useful for launching the bookmark, the number of times the bookmark has been registered by the application and the last time the application registered this bookmark.

If name is null, the name of the application will be the same returned by get_application_name; if exec is null, the command line will be a composition of the program name as returned by get_prgname and the "%u" modifier, which will be expanded to the bookmark's URI.

This function will automatically take care of updating the registrations count and timestamping in case an application with the same name had already registered a bookmark for uri inside this.

If no bookmark for uri is found, one is created.

Parameters:

this

a BookmarkFile

uri

a valid URI

name

the name of the application registering the bookmark or null

exec

command line to be used to launch the bookmark or null