2010-03-01 12:56:30 +00:00
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// dxcc.h
|
|
|
|
//
|
|
|
|
// Copyright (C) 2009
|
|
|
|
// Stelios Bounanos, M0GLD
|
|
|
|
//
|
|
|
|
// This file is part of fldigi.
|
|
|
|
//
|
|
|
|
// Fldigi is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// Fldigi is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with fldigi. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
2008-12-10 22:48:53 +00:00
|
|
|
#ifndef DXCC_H_
|
|
|
|
#define DXCC_H_
|
|
|
|
|
2009-06-30 15:26:08 +00:00
|
|
|
#include <vector>
|
2015-09-10 11:42:10 +00:00
|
|
|
#include <string>
|
|
|
|
#include <iostream>
|
2009-06-30 15:26:08 +00:00
|
|
|
|
2008-12-10 22:48:53 +00:00
|
|
|
struct dxcc {
|
|
|
|
const char* country;
|
|
|
|
int cq_zone;
|
|
|
|
int itu_zone;
|
|
|
|
char continent[3];
|
|
|
|
float latitude;
|
|
|
|
float longitude;
|
|
|
|
float gmt_offset;
|
|
|
|
dxcc(const char* cn = "", int cq = 0, int itu = 0, const char* ct = "",
|
|
|
|
float lat = 0.0f, float lon = 0.0f, float tz = 0.0f);
|
2015-09-10 11:42:10 +00:00
|
|
|
void print() {
|
|
|
|
std::cout << country << ", "
|
|
|
|
<< cq_zone << ", "
|
|
|
|
<< itu_zone << ", "
|
|
|
|
<< continent << ", "
|
|
|
|
<< latitude << ", "
|
|
|
|
<< longitude << ", "
|
|
|
|
<< gmt_offset << "\n";
|
|
|
|
}
|
2008-12-10 22:48:53 +00:00
|
|
|
};
|
|
|
|
|
2009-02-04 05:20:24 +00:00
|
|
|
enum qsl_t { QSL_LOTW, QSL_EQSL, QSL_END };
|
|
|
|
extern const char* qsl_names[];
|
|
|
|
|
2008-12-10 22:48:53 +00:00
|
|
|
bool dxcc_open(const char* filename);
|
2009-06-30 15:26:08 +00:00
|
|
|
bool dxcc_is_open(void);
|
2008-12-10 22:48:53 +00:00
|
|
|
void dxcc_close(void);
|
|
|
|
const dxcc* dxcc_lookup(const char* callsign);
|
2009-06-30 15:26:08 +00:00
|
|
|
const std::vector<dxcc*>* dxcc_entity_list(void);
|
2008-12-10 22:48:53 +00:00
|
|
|
|
2009-02-04 05:20:24 +00:00
|
|
|
bool qsl_open(const char* filename, qsl_t qsl_type);
|
2009-06-30 15:26:08 +00:00
|
|
|
unsigned char qsl_is_open(void);
|
2009-02-04 05:20:24 +00:00
|
|
|
void qsl_close(void);
|
|
|
|
unsigned char qsl_lookup(const char* callsign);
|
|
|
|
|
2011-12-03 00:55:51 +00:00
|
|
|
extern void reload_cty_dat();
|
|
|
|
extern void default_cty_dat_pathname();
|
|
|
|
extern void select_cty_dat_pathname();
|
|
|
|
|
2008-12-10 22:48:53 +00:00
|
|
|
#endif // DXCC_H_
|