English > Development
Programming own plugins
nostra:
General import plugins
function GetFilter(AppHandle : HWND; const LangID : Integer; CustomFields : PWideChar) : PWideChar; stdcall
AppHandle - Handle of the application window
LangID - Currently selected user interface language
CustomFields - List of custom fields (#0 - separator, #8#0 - end of the list)
This function must return a filter for the File Open Dialog, when selecting a file to import from.
procedure Parse(AppHandle : HWND; const LangID : Integer; FileName : PWideChar; MovieCallback : TPluginImpGenMovieCallback; HumanCallback : TPluginImpGenHumanCallback; CustomFields : PWideChar); stdcall;
LangID - Currently selected user interface language
AppHandle - Handle of the application window
FileName - Name of the file to import from.
MovieCallback - A callback procedure that should be called from the plugin every time a movie should be added to the database.
HumanCallback - A callback procedure that should be called from the plugin every time a human should be added to the database.
CustomFields - List of custom fields (#0 - separator, #8#0 - end of the list)
This procedure must be present in this type of plugins. It is called just after the user selected the file to import from.
nostra:
Cover and Disc image Plugins
function GetURL(const CurrentURL : PCHAR; out NewURL : PCHAR; const ASearchText : PChar) : Integer; stdcall;
The same as for other web import plugins, but with additional parameter ASearchText, so you can prepare the search request in the plugin.
function GetCurrentType : SHORT; stdcall;
This function must return the type of cover (TCoverType) plugin is working with at the moment.
procedure SetSelection(const AVal : Integer); stdcall;
When user selects one of the movies from the list the program passes index of selected movie to the plugin using this procedure.
Navigation
[0] Message Index
[*] Previous page
Go to full version