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;
28
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
84
89 DLLEXPORT int CALLCONVENTION tqsl_setConverterQTHDetails(tQSL_Converter conv, int logverify);
90
99 DLLEXPORT int CALLCONVENTION tqsl_setConverterAllowDuplicates(tQSL_Converter convp, int allow);
100
107 DLLEXPORT int CALLCONVENTION tqsl_setConverterAppName(tQSL_Converter convp, const char *app);
108
115 DLLEXPORT int CALLCONVENTION tqsl_converterRollBack(tQSL_Converter convp);
116
122 DLLEXPORT int CALLCONVENTION tqsl_converterCommit(tQSL_Converter convp);
123
130 DLLEXPORT int CALLCONVENTION
131 tqsl_getDuplicateRecords(tQSL_Converter convp, char *key, char *data, int keylen);
132
140 DLLEXPORT int CALLCONVENTION
141 tqsl_getDuplicateRecordsV2(tQSL_Converter convp, char *key, char *data, int keylen);
142
149 DLLEXPORT int CALLCONVENTION
150 tqsl_putDuplicateRecord(tQSL_Converter convp, const char *key, const char *data, int keylen);
151
160 DLLEXPORT int CALLCONVENTION tqsl_setADIFConverterDateFilter(tQSL_Converter conv, tQSL_Date *start,
161 tQSL_Date *end);
162
184 DLLEXPORT const char* CALLCONVENTION tqsl_getConverterGABBI(tQSL_Converter conv);
185
187 DLLEXPORT int CALLCONVENTION tqsl_getConverterCert(tQSL_Converter conv, tQSL_Cert *certp);
188
191 DLLEXPORT int CALLCONVENTION tqsl_getConverterLine(tQSL_Converter conv, int *lineno);
192
197 DLLEXPORT const char* CALLCONVENTION tqsl_getConverterRecordText(tQSL_Converter conv);
198
201 #ifdef __cplusplus
202 }
203 #endif
204
205 #endif /* __tqslconvert_h */
206
tqsl_getConverterGABBI
DLLEXPORT const char *CALLCONVENTION tqsl_getConverterGABBI(tQSL_Converter conv)
tqsl_setConverterAllowBadCall
DLLEXPORT int CALLCONVENTION tqsl_setConverterAllowBadCall(tQSL_Converter conv, int allow)
tqsl_beginCabrilloConverter
DLLEXPORT int CALLCONVENTION tqsl_beginCabrilloConverter(tQSL_Converter *conv, const char *filename, tQSL_Cert *certs, int ncerts, tQSL_Location loc)
tqsl_getConverterRecordText
DLLEXPORT const char *CALLCONVENTION tqsl_getConverterRecordText(tQSL_Converter conv)
tQSL_Converter
void * tQSL_Converter
Definition: tqslconvert.h:27
tQSL_Location
void * tQSL_Location
Opaque location type.
Definition: tqsllib.h:77
tqsl_putDuplicateRecord
DLLEXPORT int CALLCONVENTION tqsl_putDuplicateRecord(tQSL_Converter convp, const char *key, const char *data, int keylen)
tqsl_setADIFConverterDateFilter
DLLEXPORT int CALLCONVENTION tqsl_setADIFConverterDateFilter(tQSL_Converter conv, tQSL_Date *start, tQSL_Date *end)
tqsl_setConverterAppName
DLLEXPORT int CALLCONVENTION tqsl_setConverterAppName(tQSL_Converter convp, const char *app)
tqsl_getDuplicateRecordsV2
DLLEXPORT int CALLCONVENTION tqsl_getDuplicateRecordsV2(tQSL_Converter convp, char *key, char *data, int keylen)
tqsl_converterCommit
DLLEXPORT int CALLCONVENTION tqsl_converterCommit(tQSL_Converter convp)
tQSL_Cert
void * tQSL_Cert
Opaque certificate type.
Definition: tqsllib.h:76
tqsl_endConverter
DLLEXPORT int CALLCONVENTION tqsl_endConverter(tQSL_Converter *conv)
tqsl_setConverterAllowDuplicates
DLLEXPORT int CALLCONVENTION tqsl_setConverterAllowDuplicates(tQSL_Converter convp, int allow)
tqsl_getConverterLine
DLLEXPORT int CALLCONVENTION tqsl_getConverterLine(tQSL_Converter conv, int *lineno)
tqsl_getConverterCert
DLLEXPORT int CALLCONVENTION tqsl_getConverterCert(tQSL_Converter conv, tQSL_Cert *certp)
tqsl_getDuplicateRecords
DLLEXPORT int CALLCONVENTION tqsl_getDuplicateRecords(tQSL_Converter convp, char *key, char *data, int keylen)
CALLCONVENTION
#define CALLCONVENTION
Symbol exports - Windows only.
Definition: tqsllib.h:27
tqsl_converterRollBack
DLLEXPORT int CALLCONVENTION tqsl_converterRollBack(tQSL_Converter convp)
tqsl_beginConverter
DLLEXPORT int CALLCONVENTION tqsl_beginConverter(tQSL_Converter *convp)
DLLEXPORT
#define DLLEXPORT
Symbol exports - Windows only.
Definition: tqsllib.h:25
tqsl_setConverterQTHDetails
DLLEXPORT int CALLCONVENTION tqsl_setConverterQTHDetails(tQSL_Converter conv, int logverify)
tqsllib.h
tQSL_Date
Definition: tqsllib.h:81
tqsl_beginADIFConverter
DLLEXPORT int CALLCONVENTION tqsl_beginADIFConverter(tQSL_Converter *conv, const char *filename, tQSL_Cert *certs, int ncerts, tQSL_Location loc)