diff --git a/LICENSE b/LICENSE index 262f6fb..063aad1 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ - Copyright 2019 The Hush developers + Copyright 2019-2021 The Hush developers Copyright 2018 adityapk diff --git a/OKtadP.json b/OKtadP.json deleted file mode 100644 index 7b214fc..0000000 --- a/OKtadP.json +++ /dev/null @@ -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"]}] diff --git a/build.sh b/build.sh index deaf8b2..de066b6 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 2019 The Hush Developers +# Copyright 2019-2021 The Hush Developers UNAME=$(uname) diff --git a/silentdragon-lite.pro b/silentdragon-lite.pro index 37af90d..8c23c4f 100644 --- a/silentdragon-lite.pro +++ b/silentdragon-lite.pro @@ -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 diff --git a/src/3rdparty/sodium.h b/src/3rdparty/sodium.h index e7b1af4..fb71bd6 100644 --- a/src/3rdparty/sodium.h +++ b/src/3rdparty/sodium.h @@ -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" diff --git a/src/Chat/Chat.cpp b/src/Chat/Chat.cpp index a4f8549..56bb5dc 100644 --- a/src/Chat/Chat.cpp +++ b/src/Chat/Chat.cpp @@ -140,4 +140,4 @@ void Chat::renderChatBox(Ui::MainWindow *ui, QListView *view, QLabel *label) } } - \ No newline at end of file + diff --git a/src/Chat/Chat.h b/src/Chat/Chat.h index 6d8b01a..cd63563 100644 --- a/src/Chat/Chat.h +++ b/src/Chat/Chat.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Crypto/FileEncryption.cpp b/src/Crypto/FileEncryption.cpp index fae9bbc..2a8f066 100644 --- a/src/Crypto/FileEncryption.cpp +++ b/src/Crypto/FileEncryption.cpp @@ -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; -} \ No newline at end of file +} diff --git a/src/Crypto/FileEncryption.h b/src/Crypto/FileEncryption.h index c7a09d5..3893ee0 100644 --- a/src/Crypto/FileEncryption.h +++ b/src/Crypto/FileEncryption.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef FILEENCRYPTION_H #define FILEENCRYPTION_H #include @@ -21,4 +23,4 @@ class FileEncryption }; -#endif \ No newline at end of file +#endif diff --git a/src/Crypto/passwd.cpp b/src/Crypto/passwd.cpp index 98996b0..143821b 100644 --- a/src/Crypto/passwd.cpp +++ b/src/Crypto/passwd.cpp @@ -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; -} \ No newline at end of file +} diff --git a/src/Crypto/passwd.h b/src/Crypto/passwd.h index 1a24615..c50dabb 100644 --- a/src/Crypto/passwd.h +++ b/src/Crypto/passwd.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef PASSWD_H #define PASSWD_H #include @@ -11,4 +13,4 @@ class PASSWD static const unsigned char* key(QString); }; -#endif \ No newline at end of file +#endif diff --git a/src/DataStore/ChatDataStore.cpp b/src/DataStore/ChatDataStore.cpp index 4e54e1e..dbea024 100644 --- a/src/DataStore/ChatDataStore.cpp +++ b/src/DataStore/ChatDataStore.cpp @@ -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" diff --git a/src/DataStore/ChatDataStore.h b/src/DataStore/ChatDataStore.h index 350ac91..ba4f32f 100644 --- a/src/DataStore/ChatDataStore.h +++ b/src/DataStore/ChatDataStore.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef CHATDATASTORE_H #define CHATDATASTORE_H #include "../chatmodel.h" diff --git a/src/DataStore/ContactDataStore.h b/src/DataStore/ContactDataStore.h index 5abfe00..4171043 100644 --- a/src/DataStore/ContactDataStore.h +++ b/src/DataStore/ContactDataStore.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" diff --git a/src/DataStore/DataStore-deprecated.h b/src/DataStore/DataStore-deprecated.h index 19daa1b..39bc31f 100644 --- a/src/DataStore/DataStore-deprecated.h +++ b/src/DataStore/DataStore-deprecated.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::getData(QString key) { return this->data[key]; } -#endif \ No newline at end of file +#endif diff --git a/src/DataStore/DataStore.cpp b/src/DataStore/DataStore.cpp index ae85ed6..5f2ffdd 100644 --- a/src/DataStore/DataStore.cpp +++ b/src/DataStore/DataStore.cpp @@ -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(); -} \ No newline at end of file +} diff --git a/src/DataStore/DataStore.h b/src/DataStore/DataStore.h index 9fa42d3..530c6b9 100644 --- a/src/DataStore/DataStore.h +++ b/src/DataStore/DataStore.h @@ -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 \ No newline at end of file +#endif diff --git a/src/DataStore/SietchDataStore.cpp b/src/DataStore/SietchDataStore.cpp index 140ab3f..35808fe 100644 --- a/src/DataStore/SietchDataStore.cpp +++ b/src/DataStore/SietchDataStore.cpp @@ -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; \ No newline at end of file +bool SietchDataStore::instanced = false; diff --git a/src/DataStore/SietchDataStore.h b/src/DataStore/SietchDataStore.h index b69e0ca..d1e1efc 100644 --- a/src/DataStore/SietchDataStore.h +++ b/src/DataStore/SietchDataStore.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef SIETCHDATASTORE_H #define SIETCHDATASTORE_H diff --git a/src/FileSystem/FileSystem.cpp b/src/FileSystem/FileSystem.cpp index 055ca88..6cb2cea 100644 --- a/src/FileSystem/FileSystem.cpp +++ b/src/FileSystem/FileSystem.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "FileSystem.h" #include @@ -124,4 +126,4 @@ FileSystem::~FileSystem() }*/ FileSystem *FileSystem::instance = nullptr; -bool FileSystem::instanced = false; \ No newline at end of file +bool FileSystem::instanced = false; diff --git a/src/Logger/LogContext.h b/src/Logger/LogContext.h index bd8e988..c34e717 100644 --- a/src/Logger/LogContext.h +++ b/src/Logger/LogContext.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/LogCrtitical.h b/src/Logger/LogCrtitical.h index cf08849..d5091de 100644 --- a/src/Logger/LogCrtitical.h +++ b/src/Logger/LogCrtitical.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/LogDebug.h b/src/Logger/LogDebug.h index e1dd644..fb7d782 100644 --- a/src/Logger/LogDebug.h +++ b/src/Logger/LogDebug.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/LogError.h b/src/Logger/LogError.h index 34399c8..0ebfb1f 100644 --- a/src/Logger/LogError.h +++ b/src/Logger/LogError.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/LogFatal.h b/src/Logger/LogFatal.h index 4b376d3..cda7874 100644 --- a/src/Logger/LogFatal.h +++ b/src/Logger/LogFatal.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/LogInfo.h b/src/Logger/LogInfo.h index 2a876a1..df02790 100644 --- a/src/Logger/LogInfo.h +++ b/src/Logger/LogInfo.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/LogStrategy.h b/src/Logger/LogStrategy.h index d619ae0..3cb1c82 100644 --- a/src/Logger/LogStrategy.h +++ b/src/Logger/LogStrategy.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/LogSuccess.h b/src/Logger/LogSuccess.h index 8dae948..d17f28d 100644 --- a/src/Logger/LogSuccess.h +++ b/src/Logger/LogSuccess.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/LogType.h b/src/Logger/LogType.h index 3cb006a..5a67f36 100644 --- a/src/Logger/LogType.h +++ b/src/Logger/LogType.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/LogWarning.h b/src/Logger/LogWarning.h index 58d6222..3dc3d18 100644 --- a/src/Logger/LogWarning.h +++ b/src/Logger/LogWarning.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/LogWriter.cpp b/src/Logger/LogWriter.cpp index 622de6a..4743bfa 100644 --- a/src/Logger/LogWriter.cpp +++ b/src/Logger/LogWriter.cpp @@ -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(); -} \ No newline at end of file +} diff --git a/src/Logger/LogWriter.h b/src/Logger/LogWriter.h index f4e9776..b2215c6 100644 --- a/src/Logger/LogWriter.h +++ b/src/Logger/LogWriter.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/Logger.h b/src/Logger/Logger.h index 4a307c8..8e747d0 100644 --- a/src/Logger/Logger.h +++ b/src/Logger/Logger.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/SimpleLogger.h b/src/Logger/SimpleLogger.h index 7d18dc3..93857f6 100644 --- a/src/Logger/SimpleLogger.h +++ b/src/Logger/SimpleLogger.h @@ -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 \ No newline at end of file +#endif diff --git a/src/Logger/test.cpp b/src/Logger/test.cpp index a717d18..ea79fe2 100644 --- a/src/Logger/test.cpp +++ b/src/Logger/test.cpp @@ -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; -} \ No newline at end of file +} diff --git a/src/Model/ChatItem.cpp b/src/Model/ChatItem.cpp index 06d3ef7..6f219c7 100644 --- a/src/Model/ChatItem.cpp +++ b/src/Model/ChatItem.cpp @@ -1,5 +1,5 @@ -// Copyright 2019-2020 The Hush developers -// GPLv3 +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "ChatItem.h" diff --git a/src/Model/ChatItem.h b/src/Model/ChatItem.h index 991868a..1ba1d98 100644 --- a/src/Model/ChatItem.h +++ b/src/Model/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 diff --git a/src/Model/ContactItem.h b/src/Model/ContactItem.h index 9fdd7a4..2f91ff0 100644 --- a/src/Model/ContactItem.h +++ b/src/Model/ContactItem.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: diff --git a/src/Model/ContactRequest.h b/src/Model/ContactRequest.h index 5fe5fa3..75f2a06 100644 --- a/src/Model/ContactRequest.h +++ b/src/Model/ContactRequest.h @@ -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 diff --git a/src/Model/ContactRequestChatItem.cpp b/src/Model/ContactRequestChatItem.cpp index d6cd443..1674467 100644 --- a/src/Model/ContactRequestChatItem.cpp +++ b/src/Model/ContactRequestChatItem.cpp @@ -1 +1,3 @@ -#include "ContactRequestChatItem.h" \ No newline at end of file +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 +#include "ContactRequestChatItem.h" diff --git a/src/Model/ContactRequestChatItem.h b/src/Model/ContactRequestChatItem.h index d1720de..1f9e9e2 100644 --- a/src/Model/ContactRequestChatItem.h +++ b/src/Model/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 \ No newline at end of file +#endif diff --git a/src/addressbook.cpp b/src/addressbook.cpp index 6e99e23..2a80795 100644 --- a/src/addressbook.cpp +++ b/src/addressbook.cpp @@ -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" diff --git a/src/addressbook.h b/src/addressbook.h index b4fe7a8..dc52801 100644 --- a/src/addressbook.h +++ b/src/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 \ No newline at end of file +#endif // ADDRESSBOOK_H diff --git a/src/addresscombo.cpp b/src/addresscombo.cpp index 8f9b0b4..2a5db38 100644 --- a/src/addresscombo.cpp +++ b/src/addresscombo.cpp @@ -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); -} \ No newline at end of file +} diff --git a/src/addresscombo.h b/src/addresscombo.h index ee1c8ed..9b8412e 100644 --- a/src/addresscombo.h +++ b/src/addresscombo.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef ADDRESSCOMBO_H #define ADDRESSCOMBO_H diff --git a/src/balancestablemodel.cpp b/src/balancestablemodel.cpp index 7843d10..747b7dd 100644 --- a/src/balancestablemodel.cpp +++ b/src/balancestablemodel.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "balancestablemodel.h" #include "addressbook.h" #include "settings.h" diff --git a/src/balancestablemodel.h b/src/balancestablemodel.h index f46e5fe..a1bbb4b 100644 --- a/src/balancestablemodel.h +++ b/src/balancestablemodel.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 \ No newline at end of file +#endif // BALANCESTABLEMODEL_H diff --git a/src/camount.cpp b/src/camount.cpp index 28823e4..116973d 100644 --- a/src/camount.cpp +++ b/src/camount.cpp @@ -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); -} \ No newline at end of file +} diff --git a/src/camount.h b/src/camount.h index 7319849..4940ae7 100644 --- a/src/camount.h +++ b/src/camount.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef CAMOUNT_H #define CAMOUNT_H diff --git a/src/chatbubbleme.cpp b/src/chatbubbleme.cpp index 1f17250..5762aec 100644 --- a/src/chatbubbleme.cpp +++ b/src/chatbubbleme.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "chatbubbleme.h" #include "ui_chatbubbleme.h" diff --git a/src/chatbubbleme.h b/src/chatbubbleme.h index 86e9c6f..e08ae2e 100644 --- a/src/chatbubbleme.h +++ b/src/chatbubbleme.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef CHATBUBBLEME_H #define CHATBUBBLEME_H diff --git a/src/chatbubblepartner.cpp b/src/chatbubblepartner.cpp index 690f608..e0b49a8 100644 --- a/src/chatbubblepartner.cpp +++ b/src/chatbubblepartner.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "chatbubblepartner.h" #include "ui_chatbubblepartner.h" diff --git a/src/chatbubblepartner.h b/src/chatbubblepartner.h index feb950b..13ea740 100644 --- a/src/chatbubblepartner.h +++ b/src/chatbubblepartner.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef CHATBUBBLEPARTNER_H #define CHATBUBBLEPARTNER_H diff --git a/src/chatmodel.cpp b/src/chatmodel.cpp index c21b512..c6b5663 100644 --- a/src/chatmodel.cpp +++ b/src/chatmodel.cpp @@ -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" diff --git a/src/chatmodel.h b/src/chatmodel.h index 1676993..585d081 100644 --- a/src/chatmodel.h +++ b/src/chatmodel.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 \ No newline at end of file +#endif diff --git a/src/connection.cpp b/src/connection.cpp index e9ab300..2157a61 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "connection.h" #include "mainwindow.h" #include "settings.h" diff --git a/src/connection.h b/src/connection.h index f8b47dc..2b5aa27 100644 --- a/src/connection.h +++ b/src/connection.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef CONNECTION_H #define CONNECTION_H diff --git a/src/contactmodel.h b/src/contactmodel.h index 584b5f9..11e783f 100644 --- a/src/contactmodel.h +++ b/src/contactmodel.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 \ No newline at end of file +#endif diff --git a/src/datamodel.cpp b/src/datamodel.cpp index c1c4d66..4b65bdf 100644 --- a/src/datamodel.cpp +++ b/src/datamodel.cpp @@ -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); -} \ No newline at end of file +} diff --git a/src/datamodel.h b/src/datamodel.h index afcaf59..b903ee3 100644 --- a/src/datamodel.h +++ b/src/datamodel.h @@ -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 \ No newline at end of file +#endif // DATAMODEL_H diff --git a/src/fillediconlabel.cpp b/src/fillediconlabel.cpp index 0982cab..6f06138 100644 --- a/src/fillediconlabel.cpp +++ b/src/fillediconlabel.cpp @@ -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); -} \ No newline at end of file +} diff --git a/src/fillediconlabel.h b/src/fillediconlabel.h index d5de800..6211028 100644 --- a/src/fillediconlabel.h +++ b/src/fillediconlabel.h @@ -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 \ No newline at end of file +#endif // FILLEDICONLABEL_H diff --git a/src/firsttimewizard.cpp b/src/firsttimewizard.cpp index 7c5e82d..b8bfffc 100644 --- a/src/firsttimewizard.cpp +++ b/src/firsttimewizard.cpp @@ -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; diff --git a/src/firsttimewizard.h b/src/firsttimewizard.h index 924f78e..71eac11 100644 --- a/src/firsttimewizard.h +++ b/src/firsttimewizard.h @@ -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 { diff --git a/src/liteinterface.cpp b/src/liteinterface.cpp index 7e60222..de56956 100644 --- a/src/liteinterface.cpp +++ b/src/liteinterface.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "liteinterface.h" LiteInterface::LiteInterface() { diff --git a/src/liteinterface.h b/src/liteinterface.h index 3d44d2a..1e61d45 100644 --- a/src/liteinterface.h +++ b/src/liteinterface.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef hushDRPC_H #define hushDRPC_H diff --git a/src/logger.cpp b/src/logger.cpp index 589b877..ca7d30a 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -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(); -} \ No newline at end of file +} diff --git a/src/logger.h b/src/logger.h index 495e1d4..1e7f13f 100644 --- a/src/logger.h +++ b/src/logger.h @@ -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 \ No newline at end of file +#endif // LOGGER_H diff --git a/src/main.cpp b/src/main.cpp index c9760fa..720d7be 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include #include "precompiled.h" diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 4002b30..33276df 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -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" diff --git a/src/mainwindow.h b/src/mainwindow.h index e592c18..cd29b27 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef MAINWINDOW_H #define MAINWINDOW_H diff --git a/src/memoedit.cpp b/src/memoedit.cpp index 79589e2..a32baac 100644 --- a/src/memoedit.cpp +++ b/src/memoedit.cpp @@ -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); -} \ No newline at end of file +} diff --git a/src/memoedit.h b/src/memoedit.h index f1b2f5c..1db0510 100644 --- a/src/memoedit.h +++ b/src/memoedit.h @@ -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 \ No newline at end of file +#endif // MEMOEDIT_H diff --git a/src/mobileappconnector.cpp b/src/mobileappconnector.cpp index 67f4486..b06590e 100644 --- a/src/mobileappconnector.cpp +++ b/src/mobileappconnector.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "mobileappconnector.h" #include "ui_mobileappconnector.h" diff --git a/src/mobileappconnector.h b/src/mobileappconnector.h index e740ae9..fb5efcc 100644 --- a/src/mobileappconnector.h +++ b/src/mobileappconnector.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef MOBILEAPPCONNECTOR_H #define MOBILEAPPCONNECTOR_H diff --git a/src/precompiled.h b/src/precompiled.h index 80905dc..cacfc7c 100644 --- a/src/precompiled.h +++ b/src/precompiled.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #if defined __cplusplus /* Add C++ includes here */ diff --git a/src/qrcodelabel.cpp b/src/qrcodelabel.cpp index 97f34c0..2283785 100644 --- a/src/qrcodelabel.cpp +++ b/src/qrcodelabel.cpp @@ -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()); -} \ No newline at end of file +} diff --git a/src/qrcodelabel.h b/src/qrcodelabel.h index 461b238..af20559 100644 --- a/src/qrcodelabel.h +++ b/src/qrcodelabel.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef QRCODELABEL_H #define QRCODELABEL_H diff --git a/src/recurring.cpp b/src/recurring.cpp index dd10f70..a961c14 100644 --- a/src/recurring.cpp +++ b/src/recurring.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "recurring.h" #include "mainwindow.h" diff --git a/src/recurring.h b/src/recurring.h index 80442ae..9ab317f 100644 --- a/src/recurring.h +++ b/src/recurring.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 \ No newline at end of file +#endif // RECURRING_H diff --git a/src/requestdialog.cpp b/src/requestdialog.cpp index 203ab2b..dee5959 100644 --- a/src/requestdialog.cpp +++ b/src/requestdialog.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "requestdialog.h" #include "ui_requestdialog.h" #include "settings.h" diff --git a/src/requestdialog.h b/src/requestdialog.h index 6ed5404..ed2b227 100644 --- a/src/requestdialog.h +++ b/src/requestdialog.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef REQUESTDIALOG_H #define REQUESTDIALOG_H diff --git a/src/sendtab.cpp b/src/sendtab.cpp index 4d125dd..da30d5a 100644 --- a/src/sendtab.cpp +++ b/src/sendtab.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "mainwindow.h" #include "ui_mainwindow.h" #include "addressbook.h" diff --git a/src/settings.cpp b/src/settings.cpp index fd47f76..f5f56c2 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "mainwindow.h" #include "settings.h" #include "camount.h" diff --git a/src/settings.h b/src/settings.h index a917d67..26f6f07 100644 --- a/src/settings.h +++ b/src/settings.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef SETTINGS_H #define SETTINGS_H diff --git a/src/txtablemodel.cpp b/src/txtablemodel.cpp index 03cd468..b106a1a 100644 --- a/src/txtablemodel.cpp +++ b/src/txtablemodel.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "txtablemodel.h" #include "settings.h" #include "controller.h" diff --git a/src/txtablemodel.h b/src/txtablemodel.h index b07b914..f5a7449 100644 --- a/src/txtablemodel.h +++ b/src/txtablemodel.h @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #ifndef STRINGSTABLEMODEL_H #define STRINGSTABLEMODEL_H diff --git a/src/version.h b/src/version.h index 69ca9b6..8853b66 100644 --- a/src/version.h +++ b/src/version.h @@ -1 +1,3 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #define APP_VERSION "1.3.11" diff --git a/src/viewalladdresses.cpp b/src/viewalladdresses.cpp index bd2ce3e..9c246cf 100644 --- a/src/viewalladdresses.cpp +++ b/src/viewalladdresses.cpp @@ -1,3 +1,5 @@ +// Copyright 2019-2021 The Hush developers +// Released under the GPLv3 #include "viewalladdresses.h" #include "camount.h" #include "settings.h" diff --git a/src/viewalladdresses.h b/src/viewalladdresses.h index 20b7094..56c6906 100644 --- a/src/viewalladdresses.h +++ b/src/viewalladdresses.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 \ No newline at end of file +#endif diff --git a/src/websockets.cpp b/src/websockets.cpp index 3f75e59..747932a 100644 --- a/src/websockets.cpp +++ b/src/websockets.cpp @@ -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" diff --git a/src/websockets.h b/src/websockets.h index ec63502..1d03fe3 100644 --- a/src/websockets.h +++ b/src/websockets.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 \ No newline at end of file +#endif // WEBSOCKETS_H