THE FOLLOWING API
IS WORK IN PROGRESS AND SUBJECT TO CHANGE.
The YLoader API consists of several functions exported by the
yloader.dll, and whose C prototypes are declared in yloader.h.
These APIs can be used in applications developed in C, C++, Visual
Basic, Excel or any other languages and environments that allow
direct dll calls.
unsigned int create( unsigned int mode );
bool start( unsigned int downloaderId, int mode
);
bool isRunning( unsigned int downloaderId, bool*
isRunning );
bool getLastError( char* error, unsigned int
errorMessageLength );
bool startSession( unsigned int downloaderId,
bool sync );
�bool isSessionActive( unsigned int downloaderId,
bool* isSessionActive );
�bool hasHadSession( unsigned int downloaderId,
bool* hasHadSession );
bool setSymbolsFileName( unsigned int
downloaderId, const char* symbolsFileName );
bool setDataPath( unsigned int downloaderId,
const char* dataPath );
bool setDateRange( unsigned int downloaderId,
const char* startDate, const char* endDate );
- Description: sets the downloading date range.
- Arguments:
- unsigned int downloaderId - the downloader id
- const char* startDate - a pointer to a string containing the
range start date as "mm/dd/yyyy". Set to 0 or an empty string to
indicate the earliest date available.
- const char* endDate - a pointer to a string containing the
range start date as "mm/dd/yyyy". Set to 0 or an empty string to
indicate the most recent date available.
- Return value: true in case of success, false in case of
failure. Call getLastError to get more information about a
failure.
- Ex:
bool success = setDateRange( downloaderId,
"1/1/2007", "12/31/2007" );
success = setDateRange( donwloaderId, 0, "12/31/2007" );
success = setDateRange( downloaderId, "1/1/2007", "" );
bool setStartDate( unsigned int downloaderId,
const char* startDate );
bool setEndDate( unsigned int downloaderId, const
char* endDate );
bool setDataSource( unsigned int downloaderId,
unsigned int dataSource );
- Description: this API has been deprecated and should not be
called, or it will return an error. Call setDateSourcePlugin
instead.
bool setDataSourcePlugin( unsigned int
downloaderId, const char* dataSourcePlugin );
bool loadSettings( unsigned int downloaderId, const char*
settingsName );
bool setAllAvailable( unsigned int downloaderId,
bool allAvailable );
bool setUpdate( unsigned int downloaderId, bool
update );
bool setAdjust( unsigned int downloaderId, bool
adjust );
bool setValidatePrices( unsigned int
downloaderId, bool validate );
bool setPeriod( unsigned int downloaderId,
unsigned int period );
bool setConnections( unsigned int downloaderId,
unsigned int connections );
bool close( unsigned int downloaderId );
bool getLastError( char* error, unsigned int
errorMessageLength );