Happy 2021
This commit is contained in:
2
LICENSE
2
LICENSE
@@ -1,4 +1,4 @@
|
||||
Copyright 2019 The Hush developers
|
||||
Copyright 2019-2021 The Hush developers
|
||||
Copyright 2018 adityapk
|
||||
|
||||
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
[{"excluded":[],"includePaths":["/home/denio/silentdragon-lite/src/3rdparty","/home/denio/silentdragon-lite/src","/home/denio/silentdragon-lite/singleapplication","/home/denio/silentdragon-lite/res","/home/denio/Qt5.13.1/5.13.1/gcc_64/include","/home/denio/Qt5.13.1/5.13.1/gcc_64/include/QtWidgets","/home/denio/Qt5.13.1/5.13.1/gcc_64/include/QtGui","/home/denio/Qt5.13.1/5.13.1/gcc_64/include/QtWebSockets","/home/denio/Qt5.13.1/5.13.1/gcc_64/include/QtNetwork","/home/denio/Qt5.13.1/5.13.1/gcc_64/include/QtCore","/home/denio/silentdragon-lite/bin","/usr/include/libdrm","/home/denio/silentdragon-lite/src"],"projectFile":"/home/denio/silentdragon-lite/silentdragon-lite.pro","sources":["/home/denio/silentdragon-lite/lib/silentdragonlitelib.h","/home/denio/silentdragon-lite/singleapplication/singleapplication.cpp","/home/denio/silentdragon-lite/singleapplication/singleapplication.h","/home/denio/silentdragon-lite/singleapplication/singleapplication_p.cpp","/home/denio/silentdragon-lite/singleapplication/singleapplication_p.h","/home/denio/silentdragon-lite/src/3rdparty/json/json.hpp","/home/denio/silentdragon-lite/src/3rdparty/qrcode/BitBuffer.cpp","/home/denio/silentdragon-lite/src/3rdparty/qrcode/BitBuffer.hpp","/home/denio/silentdragon-lite/src/3rdparty/qrcode/QrCode.cpp","/home/denio/silentdragon-lite/src/3rdparty/qrcode/QrCode.hpp","/home/denio/silentdragon-lite/src/3rdparty/qrcode/QrSegment.cpp","/home/denio/silentdragon-lite/src/3rdparty/qrcode/QrSegment.hpp","/home/denio/silentdragon-lite/src/about.ui","/home/denio/silentdragon-lite/src/addressbook.cpp","/home/denio/silentdragon-lite/src/addressbook.h","/home/denio/silentdragon-lite/src/addressbook.ui","/home/denio/silentdragon-lite/src/addresscombo.cpp","/home/denio/silentdragon-lite/src/addresscombo.h","/home/denio/silentdragon-lite/src/balancestablemodel.cpp","/home/denio/silentdragon-lite/src/balancestablemodel.h","/home/denio/silentdragon-lite/src/confirm.ui","/home/denio/silentdragon-lite/src/connection.cpp","/home/denio/silentdragon-lite/src/connection.h","/home/denio/silentdragon-lite/src/connection.ui","/home/denio/silentdragon-lite/src/controller.cpp","/home/denio/silentdragon-lite/src/controller.h","/home/denio/silentdragon-lite/src/createhushconfdialog.ui","/home/denio/silentdragon-lite/src/datamodel.cpp","/home/denio/silentdragon-lite/src/datamodel.h","/home/denio/silentdragon-lite/src/fillediconlabel.cpp","/home/denio/silentdragon-lite/src/fillediconlabel.h","/home/denio/silentdragon-lite/src/liteinterface.cpp","/home/denio/silentdragon-lite/src/liteinterface.h","/home/denio/silentdragon-lite/src/logger.cpp","/home/denio/silentdragon-lite/src/logger.h","/home/denio/silentdragon-lite/src/main.cpp","/home/denio/silentdragon-lite/src/mainwindow.cpp","/home/denio/silentdragon-lite/src/mainwindow.h","/home/denio/silentdragon-lite/src/mainwindow.ui","/home/denio/silentdragon-lite/src/memodialog.ui","/home/denio/silentdragon-lite/src/memoedit.cpp","/home/denio/silentdragon-lite/src/memoedit.h","/home/denio/silentdragon-lite/src/migration.ui","/home/denio/silentdragon-lite/src/mobileappconnector.cpp","/home/denio/silentdragon-lite/src/mobileappconnector.h","/home/denio/silentdragon-lite/src/mobileappconnector.ui","/home/denio/silentdragon-lite/src/newrecurring.ui","/home/denio/silentdragon-lite/src/precompiled.h","/home/denio/silentdragon-lite/src/privkey.ui","/home/denio/silentdragon-lite/src/qrcodelabel.cpp","/home/denio/silentdragon-lite/src/qrcodelabel.h","/home/denio/silentdragon-lite/src/recurring.cpp","/home/denio/silentdragon-lite/src/recurring.h","/home/denio/silentdragon-lite/src/recurringdialog.ui","/home/denio/silentdragon-lite/src/recurringmultiple.ui","/home/denio/silentdragon-lite/src/recurringpayments.ui","/home/denio/silentdragon-lite/src/requestdialog.cpp","/home/denio/silentdragon-lite/src/requestdialog.h","/home/denio/silentdragon-lite/src/requestdialog.ui","/home/denio/silentdragon-lite/src/sendtab.cpp","/home/denio/silentdragon-lite/src/settings.cpp","/home/denio/silentdragon-lite/src/settings.h","/home/denio/silentdragon-lite/src/settings.ui","/home/denio/silentdragon-lite/src/txtablemodel.cpp","/home/denio/silentdragon-lite/src/txtablemodel.h","/home/denio/silentdragon-lite/src/viewalladdresses.cpp","/home/denio/silentdragon-lite/src/viewalladdresses.h","/home/denio/silentdragon-lite/src/viewalladdresses.ui","/home/denio/silentdragon-lite/src/websockets.cpp","/home/denio/silentdragon-lite/src/websockets.h"],"translations":["/home/denio/silentdragon-lite/res/silentdragonlite_es.ts","/home/denio/silentdragon-lite/res/silentdragonlite_fr.ts","/home/denio/silentdragon-lite/res/silentdragonlite_de.ts","/home/denio/silentdragon-lite/res/silentdragonlite_pt.ts","/home/denio/silentdragon-lite/res/silentdragonlite_it.ts","/home/denio/silentdragon-lite/res/silentdragonlite_zh.ts","/home/denio/silentdragon-lite/res/silentdragonlite_tr.ts","/home/denio/silentdragon-lite/res/silentdragonlite_template.ts"]}]
|
||||
2
build.sh
2
build.sh
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Copyright 2019 The Hush Developers
|
||||
# Copyright 2019-2021 The Hush Developers
|
||||
|
||||
UNAME=$(uname)
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
# Project created by QtCreator 2018-10-05T09:54:45
|
||||
#
|
||||
#-------------------------------------------------
|
||||
# Copyright 2019-2021 The Hush Developers
|
||||
|
||||
QT += core gui network
|
||||
|
||||
@@ -13,10 +14,7 @@ PRECOMPILED_HEADER = src/precompiled.h
|
||||
QT += widgets
|
||||
QT += websockets
|
||||
|
||||
|
||||
|
||||
TARGET = SilentDragonLite
|
||||
|
||||
TEMPLATE = app
|
||||
|
||||
# The following define makes your compiler emit warnings if you use
|
||||
|
||||
5
src/3rdparty/sodium.h
vendored
5
src/3rdparty/sodium.h
vendored
@@ -1,9 +1,12 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
|
||||
#ifndef sodium_H
|
||||
#define sodium_H
|
||||
|
||||
#include "sodium/version.h"
|
||||
// This is where SDL includes libsodium primitives to be used on our application
|
||||
|
||||
#include "sodium/version.h"
|
||||
#include "sodium/core.h"
|
||||
#include "sodium/crypto_aead_aes256gcm.h"
|
||||
#include "sodium/crypto_aead_chacha20poly1305.h"
|
||||
|
||||
@@ -140,4 +140,4 @@ void Chat::renderChatBox(Ui::MainWindow *ui, QListView *view, QLabel *label)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef CHAT_H
|
||||
#define CHAT_H
|
||||
|
||||
@@ -31,4 +33,4 @@ class Chat // Chat Controller
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "FileEncryption.h"
|
||||
|
||||
void FileEncryption::showConfig()
|
||||
@@ -111,4 +113,4 @@ ret:
|
||||
fclose(fp_t);
|
||||
fclose(fp_s);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef FILEENCRYPTION_H
|
||||
#define FILEENCRYPTION_H
|
||||
#include <stdio.h>
|
||||
@@ -21,4 +23,4 @@ class FileEncryption
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "passwd.h"
|
||||
|
||||
void PASSWD::show_hex_buff(unsigned char buf[])
|
||||
@@ -57,4 +59,4 @@ const unsigned char* PASSWD::key(QString password)
|
||||
qDebug()<<"secret key generated:\n";
|
||||
PASSWD::show_hex_buff(key);
|
||||
return key;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef PASSWD_H
|
||||
#define PASSWD_H
|
||||
#include <stdio.h>
|
||||
@@ -11,4 +13,4 @@ class PASSWD
|
||||
static const unsigned char* key(QString);
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
|
||||
#include "ChatDataStore.h"
|
||||
#include "addressbook.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef CHATDATASTORE_H
|
||||
#define CHATDATASTORE_H
|
||||
#include "../chatmodel.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef CONTACTDATASTORE_H
|
||||
#define CONTACTDATASTORE_H
|
||||
#include "../Model/ContactItem.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef DATASTORE_H
|
||||
#define DATASTORE_H
|
||||
|
||||
@@ -55,4 +57,4 @@ QString DataStore<T>::getData(QString key)
|
||||
{
|
||||
return this->data[key];
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "DataStore.h"
|
||||
|
||||
SietchDataStore* DataStore::getSietchDataStore()
|
||||
@@ -13,4 +15,4 @@ ChatDataStore* DataStore::getChatDataStore()
|
||||
ContactDataStore* DataStore::getContactDataStore()
|
||||
{
|
||||
return ContactDataStore::getInstance();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef DATASTORE_H
|
||||
#define DATASTORE_H
|
||||
|
||||
@@ -13,4 +15,4 @@ class DataStore
|
||||
static ContactDataStore* getContactDataStore();
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "SietchDataStore.h"
|
||||
|
||||
SietchDataStore* SietchDataStore::getInstance()
|
||||
@@ -32,4 +34,4 @@ QString SietchDataStore::dump()
|
||||
}
|
||||
|
||||
SietchDataStore* SietchDataStore::instance = nullptr;
|
||||
bool SietchDataStore::instanced = false;
|
||||
bool SietchDataStore::instanced = false;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef SIETCHDATASTORE_H
|
||||
#define SIETCHDATASTORE_H
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "FileSystem.h"
|
||||
|
||||
#include <QString>
|
||||
@@ -124,4 +126,4 @@ FileSystem::~FileSystem()
|
||||
}*/
|
||||
|
||||
FileSystem *FileSystem::instance = nullptr;
|
||||
bool FileSystem::instanced = false;
|
||||
bool FileSystem::instanced = false;
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGCONTEXT_H
|
||||
#define LOGCONTEXT_H
|
||||
|
||||
@@ -8,4 +10,4 @@ class LogContext
|
||||
virtual void log(std::string message) {};
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGCRITICAL_H
|
||||
#define LOGCRITICAL_H
|
||||
|
||||
@@ -15,4 +17,4 @@ class LogCritical : public LogStrategy
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGDEBUG_H
|
||||
#define LOGDEBUG_H
|
||||
|
||||
@@ -15,4 +17,4 @@ class LogDebug : public LogStrategy
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGERROR_H
|
||||
#define LOGERROR_H
|
||||
|
||||
@@ -15,4 +17,4 @@ class LogError : public LogStrategy
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGFATAL_H
|
||||
#define LOGFATAL_H
|
||||
|
||||
@@ -15,4 +17,4 @@ class LogFatal : public LogStrategy
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGINFO_H
|
||||
#define LOGINFO_H
|
||||
|
||||
@@ -15,4 +17,4 @@ class LogInfo : public LogStrategy
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGSTRATEGY_H
|
||||
#define LOGSTRATEGY_H
|
||||
|
||||
@@ -8,4 +10,4 @@ class LogStrategy
|
||||
virtual void log(std::string message) {};
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGSUCCESS_H
|
||||
#define LOGSUCCESS_H
|
||||
|
||||
@@ -15,4 +17,4 @@ class LogSuccess : public LogStrategy
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGTYPE_H
|
||||
#define LOGTYPE_H
|
||||
|
||||
@@ -44,4 +46,4 @@ class LogType
|
||||
}
|
||||
}
|
||||
};
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGWARNING_H
|
||||
#define LOGWARNING_H
|
||||
|
||||
@@ -15,4 +17,4 @@ class LogWarning : public LogStrategy
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "LogWriter.h"
|
||||
|
||||
LogWriter* LogWriter::getInstance()
|
||||
@@ -32,4 +34,4 @@ void LogWriter::write(LogType::TYPE type, std::string message)
|
||||
}
|
||||
|
||||
writer.close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGWRITER_H
|
||||
#define LOGWRITER_H
|
||||
|
||||
@@ -19,4 +21,4 @@ class LogWriter
|
||||
static LogWriter* instance;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGGER_H
|
||||
#define LOGGER_H
|
||||
|
||||
@@ -22,4 +24,4 @@ class Logger : LogContext
|
||||
}
|
||||
};
|
||||
LogWriter* LogWriter::instance = nullptr;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef SIMPLELOGGER_H
|
||||
#define SIMPLELOGGER_H
|
||||
|
||||
@@ -81,4 +83,4 @@ class SimpleLogger
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "SimpleLogger.h"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
@@ -11,4 +13,4 @@ int main(int argc, char** argv)
|
||||
sl.logFatal("test fatal");
|
||||
sl.logCritical("test critical");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
|
||||
#include "ChatItem.h"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
|
||||
#ifndef CHATITEM_H
|
||||
#define CHATITEM_H
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef CONTACTITEM_H
|
||||
#define CONTACTITEM_H
|
||||
|
||||
@@ -8,6 +8,8 @@
|
||||
#include "mainwindow.h"
|
||||
using json = nlohmann::json;
|
||||
|
||||
// This represents one HushContact in your ContactList of HushChat, which end users
|
||||
// see as an avatar and name. This data structure holds all the other data to make things work
|
||||
class ContactItem
|
||||
{
|
||||
private:
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef CONTACTREQUEST_H
|
||||
#define CONTACTREQUEST_H
|
||||
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
#include "ContactRequestChatItem.h"
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "ContactRequestChatItem.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifdef CONTACTREQUESTCHATITEM_H
|
||||
#define CONTACTREQUESTCHATITEM_H
|
||||
|
||||
@@ -8,4 +10,4 @@ class ContactRequestChatItem : ChatItem
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
|
||||
#include "addressbook.h"
|
||||
#include "ui_addressbook.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef ADDRESSBOOK_H
|
||||
#define ADDRESSBOOK_H
|
||||
|
||||
@@ -85,4 +87,4 @@ private:
|
||||
static AddressBook* instance;
|
||||
};
|
||||
|
||||
#endif // ADDRESSBOOK_H
|
||||
#endif // ADDRESSBOOK_H
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "addresscombo.h"
|
||||
#include "addressbook.h"
|
||||
#include "settings.h"
|
||||
@@ -39,4 +41,4 @@ void AddressCombo::insertItem(int index, const QString& text, CAmount bal)
|
||||
QString txt = AddressBook::addLabelToAddress(text) %
|
||||
"(" % bal.toDecimalhushString() % ")";
|
||||
QComboBox::insertItem(index, txt);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef ADDRESSCOMBO_H
|
||||
#define ADDRESSCOMBO_H
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "balancestablemodel.h"
|
||||
#include "addressbook.h"
|
||||
#include "settings.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef BALANCESTABLEMODEL_H
|
||||
#define BALANCESTABLEMODEL_H
|
||||
|
||||
@@ -26,4 +28,4 @@ private:
|
||||
bool loading = true;
|
||||
};
|
||||
|
||||
#endif // BALANCESTABLEMODEL_H
|
||||
#endif // BALANCESTABLEMODEL_H
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "camount.h"
|
||||
#include "settings.h"
|
||||
#include "precompiled.h"
|
||||
@@ -230,4 +232,4 @@ CAmount CAmount::fromDecimalString(QString decimalString)
|
||||
}
|
||||
|
||||
return CAmount(r);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef CAMOUNT_H
|
||||
#define CAMOUNT_H
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "chatbubbleme.h"
|
||||
#include "ui_chatbubbleme.h"
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef CHATBUBBLEME_H
|
||||
#define CHATBUBBLEME_H
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "chatbubblepartner.h"
|
||||
#include "ui_chatbubblepartner.h"
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef CHATBUBBLEPARTNER_H
|
||||
#define CHATBUBBLEPARTNER_H
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "chatmodel.h"
|
||||
#include "settings.h"
|
||||
#include "ui_confirm.h"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
|
||||
#ifndef CHATMODEL_H
|
||||
#define CHATMODEL_H
|
||||
@@ -73,4 +73,4 @@ class ChatModel
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "connection.h"
|
||||
#include "mainwindow.h"
|
||||
#include "settings.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef CONNECTION_H
|
||||
#define CONNECTION_H
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef CONTACTMODEL_H
|
||||
#define CONTACTMODEL_H
|
||||
|
||||
@@ -24,4 +24,4 @@ class ContactModel
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "datamodel.h"
|
||||
|
||||
DataModel::DataModel() {
|
||||
@@ -66,4 +68,4 @@ void DataModel::markAddressUsed(QString address) {
|
||||
QWriteLocker locker(lock);
|
||||
|
||||
usedAddresses->insert(address, true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef DATAMODEL_H
|
||||
#define DATAMODEL_H
|
||||
|
||||
@@ -80,4 +82,4 @@ private:
|
||||
QReadWriteLock* lock;
|
||||
};
|
||||
|
||||
#endif // DATAMODEL_H
|
||||
#endif // DATAMODEL_H
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "fillediconlabel.h"
|
||||
|
||||
FilledIconLabel::FilledIconLabel(QWidget* parent) :
|
||||
@@ -24,4 +26,4 @@ void FilledIconLabel::resizeEvent(QResizeEvent*) {
|
||||
painter.drawPixmap((sz.width() - scaled.width()) / 2, (sz.height() - scaled.height()) / 2, scaled);
|
||||
|
||||
QLabel::setPixmap(p);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef FILLEDICONLABEL_H
|
||||
#define FILLEDICONLABEL_H
|
||||
|
||||
@@ -18,4 +20,4 @@ private:
|
||||
};
|
||||
|
||||
|
||||
#endif // FILLEDICONLABEL_H
|
||||
#endif // FILLEDICONLABEL_H
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "firsttimewizard.h"
|
||||
|
||||
#include "ui_newseed.h"
|
||||
#include "ui_restoreseed.h"
|
||||
#include "ui_verifyseed.h"
|
||||
@@ -25,14 +26,8 @@ auto dirwalletencfirst = QDir(QStandardPaths::writableLocation(QStandardPaths::H
|
||||
auto dirwalletbackupfirst = QDir(QStandardPaths::writableLocation(QStandardPaths::HomeLocation)).filePath(".silentdragonlite/silentdragonlite-wallet.datBackup");
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
void FirstTimeWizard::slot_change_theme(const QString& theme_name)
|
||||
|
||||
{
|
||||
void FirstTimeWizard::slot_change_theme(const QString& theme_name) {
|
||||
Settings::getInstance()->set_theme_name(theme_name);
|
||||
|
||||
|
||||
// Include css
|
||||
QString saved_theme_name;
|
||||
|
||||
@@ -1,15 +1,14 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef FIRSTTIMEWIZARD_H
|
||||
#define FIRSTTIMEWIZARD_H
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "ui_newseed.h"
|
||||
#include "ui_restoreseed.h"
|
||||
#include "ui_newwallet.h"
|
||||
#include "mainwindow.h"
|
||||
|
||||
|
||||
|
||||
class FirstTimeWizard: public QWizard
|
||||
{
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "liteinterface.h"
|
||||
|
||||
LiteInterface::LiteInterface() {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef hushDRPC_H
|
||||
#define hushDRPC_H
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "logger.h"
|
||||
|
||||
Logger::Logger(QObject *parent, QString fileName) : QObject(parent) {
|
||||
@@ -28,4 +30,4 @@ void Logger::write(const QString &value) {
|
||||
Logger::~Logger() {
|
||||
if (file != 0)
|
||||
file->close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef LOGGER_H
|
||||
#define LOGGER_H
|
||||
|
||||
@@ -20,4 +22,4 @@ public slots:
|
||||
void write(const QString &value);
|
||||
};
|
||||
|
||||
#endif // LOGGER_H
|
||||
#endif // LOGGER_H
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include <singleapplication.h>
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
// Copyright 2019-2020 The Hush developers
|
||||
// GPLv3
|
||||
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "mainwindow.h"
|
||||
#include "addressbook.h"
|
||||
#include "viewalladdresses.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "memoedit.h"
|
||||
|
||||
MemoEdit::MemoEdit(QWidget* parent) : QPlainTextEdit(parent) {
|
||||
@@ -49,4 +51,4 @@ void MemoEdit::includeReplyTo(QString addr) {
|
||||
return;
|
||||
|
||||
this->setPlainText(curText + "\n" + tr("Reply to") + ":\n" + addr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef MEMOEDIT_H
|
||||
#define MEMOEDIT_H
|
||||
|
||||
@@ -20,4 +22,4 @@ private:
|
||||
QPushButton* acceptButton = nullptr;
|
||||
};
|
||||
|
||||
#endif // MEMOEDIT_H
|
||||
#endif // MEMOEDIT_H
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "mobileappconnector.h"
|
||||
#include "ui_mobileappconnector.h"
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef MOBILEAPPCONNECTOR_H
|
||||
#define MOBILEAPPCONNECTOR_H
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#if defined __cplusplus
|
||||
/* Add C++ includes here */
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "qrcodelabel.h"
|
||||
|
||||
QRCodeLabel::QRCodeLabel(QWidget *parent) :
|
||||
@@ -54,4 +56,4 @@ QPixmap QRCodeLabel::scaledPixmap() const {
|
||||
void QRCodeLabel::setQrcodeString(QString stra) {
|
||||
str = stra;
|
||||
QLabel::setPixmap(scaledPixmap());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef QRCODELABEL_H
|
||||
#define QRCODELABEL_H
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "recurring.h"
|
||||
|
||||
#include "mainwindow.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef RECURRING_H
|
||||
#define RECURRING_H
|
||||
|
||||
@@ -151,4 +153,4 @@ private:
|
||||
RecurringPaymentInfo rpi;
|
||||
};
|
||||
|
||||
#endif // RECURRING_H
|
||||
#endif // RECURRING_H
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "requestdialog.h"
|
||||
#include "ui_requestdialog.h"
|
||||
#include "settings.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef REQUESTDIALOG_H
|
||||
#define REQUESTDIALOG_H
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "addressbook.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "mainwindow.h"
|
||||
#include "settings.h"
|
||||
#include "camount.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef SETTINGS_H
|
||||
#define SETTINGS_H
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "txtablemodel.h"
|
||||
#include "settings.h"
|
||||
#include "controller.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef STRINGSTABLEMODEL_H
|
||||
#define STRINGSTABLEMODEL_H
|
||||
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#define APP_VERSION "1.3.11"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "viewalladdresses.h"
|
||||
#include "camount.h"
|
||||
#include "settings.h"
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef VIEWALLADDRESSES_H
|
||||
#define VIEWALLADDRESSES_H
|
||||
|
||||
@@ -21,4 +23,4 @@ private:
|
||||
Controller* rpc;
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#include "websockets.h"
|
||||
|
||||
#include "controller.h"
|
||||
#include "settings.h"
|
||||
#include "ui_mobileappconnector.h"
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
// Copyright 2019-2021 The Hush developers
|
||||
// Released under the GPLv3
|
||||
#ifndef WEBSOCKETS_H
|
||||
#define WEBSOCKETS_H
|
||||
|
||||
#include "precompiled.h"
|
||||
|
||||
#include "camount.h"
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mobileappconnector.h"
|
||||
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QWebSocketServer)
|
||||
QT_FORWARD_DECLARE_CLASS(QWebSocket)
|
||||
|
||||
@@ -176,5 +176,4 @@ private:
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif // WEBSOCKETS_H
|
||||
#endif // WEBSOCKETS_H
|
||||
|
||||
Reference in New Issue
Block a user