Skip to content

Commit

Permalink
Closes #354 #356
Browse files Browse the repository at this point in the history
  • Loading branch information
ea4k committed Aug 29, 2021
1 parent a27d539 commit 90537a6
Show file tree
Hide file tree
Showing 19 changed files with 6,690 additions and 6,688 deletions.
5 changes: 3 additions & 2 deletions src/Changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
TBD - 1.8.4
Aug 2021 - 1.8.4
- Bugfix: In some situations callsigns were always shown as to be worked. (Closes #345)
- Bugfix: Double click on DXCC widget was not sending the DXCC QSOs to the search widget.
- Bugfix: Queued LoTW were not properly selected for upload. (Closes #354) (TNX EA5WA)
- Improvement: KLog start is optimized.

Aug 2021 - 1.8.3
Expand All @@ -9,7 +10,7 @@ Aug 2021 - 1.8.3

Aug 2021 - 1.8.2
- Bugfix: Updated the openSSL libraries for Windows users that was causing TLS errors on some connections. (Closes #342)
- Bugfix: Spanish typo (TNX (EA5WA) (Closes #341)
- Bugfix: Spanish typo (TNX EA5WA) (Closes #341)
- Bugfix: Statistics were showing wrong numbers on DXCC/Grid per band (Closes #344)

Aug 2021 - 1.8.1
Expand Down
24 changes: 12 additions & 12 deletions src/dataproxy_sqlite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3419,9 +3419,9 @@ int DataProxy_SQLite::lotwUpdateQSLReception (const QString &_call, const QDateT
return -100;
}

QList<int> DataProxy_SQLite::getQSOsListLoTWNotSent(const QString &_stationCallsign, const QDate &_startDate, const QDate &_endDate, bool _justQueued)
QList<int> DataProxy_SQLite::getQSOsListLoTWToSend(const QString &_stationCallsign, const QDate &_startDate, const QDate &_endDate, bool _justQueued)
{
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWNotSent Call/Start/end: " << _stationCallsign << _startDate.toString("yyyyMMdd") << "/" << _endDate.toString("yyyyMMdd") << QT_ENDL;
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWToSend Call/Start/end: " << _stationCallsign << _startDate.toString("yyyyMMdd") << "/" << _endDate.toString("yyyyMMdd") << QT_ENDL;

QList <int> qsoList;
qsoList.clear();
Expand All @@ -3448,12 +3448,12 @@ QList<int> DataProxy_SQLite::getQSOsListLoTWNotSent(const QString &_stationCalls
QString _query_justQueued;
if (_justQueued)
{
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWNotSent justQueued TRUE" << QT_ENDL;
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWToSend justQueued TRUE" << QT_ENDL;
_query_justQueued = QString("lotw_qsl_sent='Q'");
}
else
{
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWNotSent justQueued FALSE" << QT_ENDL;
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWToSend justQueued FALSE" << QT_ENDL;
_query_justQueued = QString("lotw_qsl_sent!='1'");
}

Expand All @@ -3474,19 +3474,19 @@ QList<int> DataProxy_SQLite::getQSOsListLoTWNotSent(const QString &_stationCalls
QSqlQuery query;

bool sqlOK = query.exec(queryString);
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWNotSent Query: " << query.lastQuery() << QT_ENDL;
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWToSend Query: " << query.lastQuery() << QT_ENDL;

if (sqlOK)
{
// //qDebug() << "DataProxy_SQLite::getQSOsListLoTWNotSent Query: " << query.lastQuery() << QT_ENDL;
// //qDebug() << "DataProxy_SQLite::getQSOsListLoTWToSend Query: " << query.lastQuery() << QT_ENDL;

while ( (query.next())) {
if (query.isValid())
{
aux.clear();
aux = (query.value(1)).toString() ;
tmpDate = util->getDateFromSQliteString(aux);
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWNotSent QSO Date: " << aux << "/" << tmpDate.toString("yyyy-MM-dd") << QT_ENDL;
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWToSend QSO Date: " << aux << "/" << tmpDate.toString("yyyy-MM-dd") << QT_ENDL;
//tmpDate = QDate::fromString(aux, "yyyy-MM-dd");
if ((_startDate<=tmpDate) && _endDate>=tmpDate)
{
Expand Down Expand Up @@ -3542,12 +3542,12 @@ QStringList DataProxy_SQLite::getQSOsListLoTWNotSent2(const QString &_stationCal
QString _query_justQueued;
if (_justQueued)
{
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWNotSent justQueued TRUE" << QT_ENDL;
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWToSend justQueued TRUE" << QT_ENDL;
_query_justQueued = QString("lotw_qsl_sent='Q'");
}
else
{
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWNotSent justQueued FALSE" << QT_ENDL;
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWToSend justQueued FALSE" << QT_ENDL;
_query_justQueued = QString("lotw_qsl_sent!='1'");
}

Expand All @@ -3558,11 +3558,11 @@ QStringList DataProxy_SQLite::getQSOsListLoTWNotSent2(const QString &_stationCal
QSqlQuery query;

bool sqlOK = query.exec(queryString);
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWNotSent Query: " << query.lastQuery() << QT_ENDL;
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWToSend Query: " << query.lastQuery() << QT_ENDL;

if (sqlOK)
{
// //qDebug() << "DataProxy_SQLite::getQSOsListLoTWNotSent Query: " << query.lastQuery() << QT_ENDL;
// //qDebug() << "DataProxy_SQLite::getQSOsListLoTWToSend Query: " << query.lastQuery() << QT_ENDL;
QStringList result;
while ( (query.next())) {
if (query.isValid())
Expand Down Expand Up @@ -3979,7 +3979,7 @@ QList<int> DataProxy_SQLite::getQSOsListeQSLNotSent(const QString &_stationCalls
aux.clear();
aux = (query.value(1)).toString() ;
tmpDate = util->getDateFromSQliteString(aux);
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWNotSent QSO Date: " << aux << "/" << tmpDate.toString("yyyy-MM-dd") << QT_ENDL;
//qDebug() << "DataProxy_SQLite::getQSOsListLoTWToSend QSO Date: " << aux << "/" << tmpDate.toString("yyyy-MM-dd") << QT_ENDL;
//tmpDate = QDate::fromString(aux, "yyyy-MM-dd");
if ((_startDate<=tmpDate) && _endDate>=tmpDate)
{
Expand Down
2 changes: 1 addition & 1 deletion src/dataproxy_sqlite.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class DataProxy_SQLite : public QObject
bool lotwSentYes(const QDate &_updateDate, const int _currentLog, const QString &_station); // Update LOTW QSL SENT marked as Q as Y (Queued)
bool lotwSentQSOs(const QList<int> &_qsos);
int lotwUpdateQSLReception (const QString &_call, const QDateTime &_dateTime, const QString &_band, const QString &_mode, const QDate &_qslrdate);
QList<int> getQSOsListLoTWNotSent(const QString &_stationCallsign, const QDate &_startDate, const QDate &_endDate, bool _justQueued=true);
QList<int> getQSOsListLoTWToSend(const QString &_stationCallsign, const QDate &_startDate, const QDate &_endDate, bool _justQueued=true);
//QStringList getQSOsListLoTWNotSent2(const QString &_stationCallsign, const QDate &_startDate, const QDate &_endDate, bool _justQueued=true);
QStringList getQSODetailsForLoTWDownload(const int _id);

Expand Down
4 changes: 2 additions & 2 deletions src/klogdefinitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ struct EntityBandStatus { // Used to pass a list of data from Awards to dxccstat
bool confirmed;
};

#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 2))
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 2))
#define QT_SKIP Qt::SkipEmptyParts
#define QT_ENDL Qt::endl
#define QT_RETURNBYVALUE Qt::ReturnByValue
#else
#else
#define QT_SKIP QString::SkipEmptyParts
#define QT_ENDL endl
#define QT_RETURNBYVALUE
Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int main(int argc, char *argv[])
//qDebug() << "KLog Main: " << QSslSocket::supportsSsl() << QSslSocket::sslLibraryBuildVersionString() << QSslSocket::sslLibraryVersionString() << QT_ENDL;
QT_REQUIRE_VERSION(argc, argv, "5.9")
QDir d1 = QDir();
QString version = "1.8.3";
QString version = "1.8.4";
//qDebug() << "KLog Main STARTED: " << version << QT_ENDL;
Utilities util = Utilities();
QStringList arguments;
Expand Down
12 changes: 6 additions & 6 deletions src/src.pro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CONFIG += static
CONFIG -=depend_includepath
#CONFIG += release
TEMPLATE = app
VERSION = 1.8.3
VERSION = 1.8.4
DEFINES += APP_VERSION="$$VERSION"


Expand Down Expand Up @@ -356,9 +356,9 @@ win32: {
#LIBS += -L"$$PWD/../../libs/hamlib-w32-4.0rc2/bin"
#INCLUDEPATH += "$$PWD/../../libs/hamlib-w32-4.0rc2/include/"
}
else:
{
message(Uknown platform)
TARGET = klog
}
#else:
#{
# message(Uknown platform)
# TARGET = klog
#}

Loading

0 comments on commit 90537a6

Please sign in to comment.