Functions | |
DLLEXPORT int | tqsl_init () |
DLLEXPORT int | tqsl_setDirectory (const char *dir) |
DLLEXPORT const char * | tqsl_getErrorString () |
DLLEXPORT const char * | tqsl_getErrorString_v (int err) |
DLLEXPORT int | tqsl_encodeBase64 (const unsigned char *data, int datalen, char *output, int outputlen) |
DLLEXPORT int | tqsl_decodeBase64 (const char *input, unsigned char *data, int *datalen) |
DLLEXPORT int | tqsl_initDate (tQSL_Date *date, const char *str) |
DLLEXPORT int | tqsl_initTime (tQSL_Time *time, const char *str) |
DLLEXPORT int | tqsl_compareDates (const tQSL_Date *a, const tQSL_Date *b) |
DLLEXPORT char * | tqsl_convertDateToText (const tQSL_Date *date, char *buf, int bufsiz) |
DLLEXPORT int | tqsl_isDateValid (const tQSL_Date *d) |
DLLEXPORT int | tqsl_isDateNull (const tQSL_Date *d) |
DLLEXPORT int | tqsl_isTimeValid (const tQSL_Time *t) |
DLLEXPORT char * | tqsl_convertTimeToText (const tQSL_Time *time, char *buf, int bufsiz) |
DLLEXPORT int | tqsl_getVersion (int *major, int *minor) |
DLLEXPORT int | tqsl_getConfigVersion (int *major, int *minor) |
Variables | |
DLLEXPORTDATA int | tQSL_Error |
Error code from most recent tQSL library call. | |
DLLEXPORTDATA TQSL_ADIF_GET_FIELD_ERROR | tQSL_ADIF_Error |
The ADIF error code. | |
DLLEXPORTDATA TQSL_CABRILLO_ERROR_TYPE | tQSL_Cabrillo_Error |
The ADIF error code. | |
DLLEXPORTDATA char | tQSL_ErrorFile [256] |
File name of file giving error. (May be empty.). | |
DLLEXPORTDATA char | tQSL_CustomError [256] |
Custom error message string. |
|
Compare two tQSL_Date objects. Returns:
|
|
Converts a tQSL_Date object to a YYYY-MM-DD string.
Returns a pointer to |
|
Converts a tQSL_Time object to a HH:MM:SSZ string.
Returns a pointer to |
|
Decode Base64 text into binary data.
*datalen . |
|
Encode a block of data into Base64 text.
|
|
Returns the configuration-file version. |
|
Gets the error string for the current tQSL library error and resets the error status. See tqsl_getErrorString_v(). |
|
Gets the error string corresponding to the given error number. The error string is available only until the next call to tqsl_getErrorString_v or tqsl_getErrorString. |
|
Returns the library version. |
|
Initialize the tQSL library This function should be called prior to calling any other library functions. |
|
Initialize a tQSL_Date object from a date string. The date string must be YYYY-MM-DD or YYYYMMDD format. Returns 0 on success, nonzero on failure |
|
Initialize a tQSL_Time object from a time string. The time string must be HH[:]MM[[:]SS] format. Returns 0 on success, nonzero on failure |
|
Test whether a tQSL_Date is empty (contains all zeroes) Returns 1 if the date is null |
|
Test whether a tQSL_Date contains a valid date value Returns 1 if the date is valid |
|
Test whether a tQSL_Time contains a valid time value Returns 1 if the time is valid |
|
Set the directory where the TQSL files are kept. May be called either before of after tqsl_init(), but should be called before calling any other functions in the library. Note that this is purely optional. The library will figure out an approriate directory if tqsl_setDirectory isn't called. Unless there is some particular need to set the directory explicitly, programs should refrain from doing so. |
|
Error code from most recent tQSL library call. The values for the error code are defined in tqslerrno.h |