TrustedQSL Library API: tqslconvert.h Source File

TrustedQSL Library API

tqslconvert.h
Go to the documentation of this file.
1 /***************************************************************************
2 convert.h - description
3 -------------------
4 begin : Sun Nov 17 2002
5 copyright : (C) 2002 by ARRL
6 author : Jon Bloom
7 email : jbloom@arrl.org
8 revision : $Id$
9 ***************************************************************************/
10
11 #ifndef __tqslconvert_h
12 #define __tqslconvert_h
13
14 #include "tqsllib.h"
15
27 typedef void * tQSL_Converter;
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
40 DLLEXPORT int CALLCONVENTION
41 tqsl_beginConverter(tQSL_Converter *convp);
42
52 DLLEXPORT int CALLCONVENTION tqsl_beginADIFConverter(tQSL_Converter *conv, const char *filename,
53 tQSL_Cert *certs, int ncerts, tQSL_Location loc);
54
64 DLLEXPORT int CALLCONVENTION tqsl_beginCabrilloConverter(tQSL_Converter *conv, const char *filename,
65 tQSL_Cert *certs, int ncerts, tQSL_Location loc);
66
68 DLLEXPORT int CALLCONVENTION tqsl_endConverter(tQSL_Converter *conv);
69
78 DLLEXPORT int CALLCONVENTION tqsl_setConverterAllowBadCall(tQSL_Converter conv, int allow);
79
80 #define TQSL_LOC_IGNORE 0
81 #define TQSL_LOC_REPORT 1
82 #define TQSL_LOC_UPDATE 2
83
89 DLLEXPORT int CALLCONVENTION tqsl_setConverterQTHDetails(tQSL_Converter conv, int logverify);
90
99 DLLEXPORT int CALLCONVENTION tqsl_setConverterAllowDuplicates(tQSL_Converter convp, int ignore);
107 DLLEXPORT int CALLCONVENTION tqsl_setConverterIgnoreSeconds(tQSL_Converter convp, int ignore);
108
115 DLLEXPORT int CALLCONVENTION tqsl_setConverterAppName(tQSL_Converter convp, const char *app);
116
123 DLLEXPORT int CALLCONVENTION tqsl_converterRollBack(tQSL_Converter convp);
124
130 DLLEXPORT int CALLCONVENTION tqsl_converterCommit(tQSL_Converter convp);
131
138 DLLEXPORT int CALLCONVENTION
139 tqsl_getDuplicateRecords(tQSL_Converter convp, char *key, char *data, int keylen);
140
148 DLLEXPORT int CALLCONVENTION
149 tqsl_getDuplicateRecordsV2(tQSL_Converter convp, char *key, char *data, int keylen);
150
157 DLLEXPORT int CALLCONVENTION
158 tqsl_putDuplicateRecord(tQSL_Converter convp, const char *key, const char *data, int keylen);
159
168 DLLEXPORT int CALLCONVENTION tqsl_setADIFConverterDateFilter(tQSL_Converter conv, tQSL_Date *start,
169 tQSL_Date *end);
170
192 DLLEXPORT const char* CALLCONVENTION tqsl_getConverterGABBI(tQSL_Converter conv);
193
195 DLLEXPORT int CALLCONVENTION tqsl_getConverterCert(tQSL_Converter conv, tQSL_Cert *certp);
196
199 DLLEXPORT int CALLCONVENTION tqsl_getConverterLine(tQSL_Converter conv, int *lineno);
200
205 DLLEXPORT const char* CALLCONVENTION tqsl_getConverterRecordText(tQSL_Converter conv);
206
209 #ifdef __cplusplus
210 }
211 #endif
212
213 #endif /* __tqslconvert_h */
214
tqsl_converterCommit
DLLEXPORT int CALLCONVENTION tqsl_converterCommit(tQSL_Converter convp)
tQSL_Converter
void * tQSL_Converter
Definition: tqslconvert.h:27
tqsl_getConverterRecordText
DLLEXPORT const char *CALLCONVENTION tqsl_getConverterRecordText(tQSL_Converter conv)
tqsl_setConverterQTHDetails
DLLEXPORT int CALLCONVENTION tqsl_setConverterQTHDetails(tQSL_Converter conv, int logverify)
tqsl_converterRollBack
DLLEXPORT int CALLCONVENTION tqsl_converterRollBack(tQSL_Converter convp)
tqsl_endConverter
DLLEXPORT int CALLCONVENTION tqsl_endConverter(tQSL_Converter *conv)
tqsl_setConverterAppName
DLLEXPORT int CALLCONVENTION tqsl_setConverterAppName(tQSL_Converter convp, const char *app)
tqsl_putDuplicateRecord
DLLEXPORT int CALLCONVENTION tqsl_putDuplicateRecord(tQSL_Converter convp, const char *key, const char *data, int keylen)
tqsl_setConverterAllowBadCall
DLLEXPORT int CALLCONVENTION tqsl_setConverterAllowBadCall(tQSL_Converter conv, int allow)
tqsl_getConverterGABBI
DLLEXPORT const char *CALLCONVENTION tqsl_getConverterGABBI(tQSL_Converter conv)
tqsl_getDuplicateRecords
DLLEXPORT int CALLCONVENTION tqsl_getDuplicateRecords(tQSL_Converter convp, char *key, char *data, int keylen)
tqsl_getDuplicateRecordsV2
DLLEXPORT int CALLCONVENTION tqsl_getDuplicateRecordsV2(tQSL_Converter convp, char *key, char *data, int keylen)
tqsl_setConverterIgnoreSeconds
DLLEXPORT int CALLCONVENTION tqsl_setConverterIgnoreSeconds(tQSL_Converter convp, int ignore)
tqsl_beginADIFConverter
DLLEXPORT int CALLCONVENTION tqsl_beginADIFConverter(tQSL_Converter *conv, const char *filename, tQSL_Cert *certs, int ncerts, tQSL_Location loc)
tqsl_beginConverter
DLLEXPORT int CALLCONVENTION tqsl_beginConverter(tQSL_Converter *convp)
tqsl_setConverterAllowDuplicates
DLLEXPORT int CALLCONVENTION tqsl_setConverterAllowDuplicates(tQSL_Converter convp, int ignore)
tqsl_beginCabrilloConverter
DLLEXPORT int CALLCONVENTION tqsl_beginCabrilloConverter(tQSL_Converter *conv, const char *filename, tQSL_Cert *certs, int ncerts, tQSL_Location loc)
tqsl_setADIFConverterDateFilter
DLLEXPORT int CALLCONVENTION tqsl_setADIFConverterDateFilter(tQSL_Converter conv, tQSL_Date *start, tQSL_Date *end)
tqsl_getConverterCert
DLLEXPORT int CALLCONVENTION tqsl_getConverterCert(tQSL_Converter conv, tQSL_Cert *certp)
tqsl_getConverterLine
DLLEXPORT int CALLCONVENTION tqsl_getConverterLine(tQSL_Converter conv, int *lineno)
tQSL_Date
Definition: tqsllib.h:86
tqsllib.h
CALLCONVENTION
#define CALLCONVENTION
Symbol exports - Windows only.
Definition: tqsllib.h:27
tQSL_Location
void * tQSL_Location
Opaque location type.
Definition: tqsllib.h:82
DLLEXPORT
#define DLLEXPORT
Symbol exports - Windows only.
Definition: tqsllib.h:25
tQSL_Cert
void * tQSL_Cert
Opaque certificate type.
Definition: tqsllib.h:81