Browse Source

Happy 2021

pull/2/head
Duke Leto 3 years ago
parent
commit
0cee4989c0
  1. 2
      LICENSE
  2. 1
      OKtadP.json
  3. 2
      build.sh
  4. 4
      silentdragon-lite.pro
  5. 5
      src/3rdparty/sodium.h
  6. 2
      src/Chat/Chat.cpp
  7. 4
      src/Chat/Chat.h
  8. 4
      src/Crypto/FileEncryption.cpp
  9. 4
      src/Crypto/FileEncryption.h
  10. 4
      src/Crypto/passwd.cpp
  11. 4
      src/Crypto/passwd.h
  12. 4
      src/DataStore/ChatDataStore.cpp
  13. 2
      src/DataStore/ChatDataStore.h
  14. 2
      src/DataStore/ContactDataStore.h
  15. 4
      src/DataStore/DataStore-deprecated.h
  16. 4
      src/DataStore/DataStore.cpp
  17. 4
      src/DataStore/DataStore.h
  18. 4
      src/DataStore/SietchDataStore.cpp
  19. 2
      src/DataStore/SietchDataStore.h
  20. 4
      src/FileSystem/FileSystem.cpp
  21. 4
      src/Logger/LogContext.h
  22. 4
      src/Logger/LogCrtitical.h
  23. 4
      src/Logger/LogDebug.h
  24. 4
      src/Logger/LogError.h
  25. 4
      src/Logger/LogFatal.h
  26. 4
      src/Logger/LogInfo.h
  27. 4
      src/Logger/LogStrategy.h
  28. 4
      src/Logger/LogSuccess.h
  29. 4
      src/Logger/LogType.h
  30. 4
      src/Logger/LogWarning.h
  31. 4
      src/Logger/LogWriter.cpp
  32. 4
      src/Logger/LogWriter.h
  33. 4
      src/Logger/Logger.h
  34. 4
      src/Logger/SimpleLogger.h
  35. 4
      src/Logger/test.cpp
  36. 4
      src/Model/ChatItem.cpp
  37. 4
      src/Model/ChatItem.h
  38. 6
      src/Model/ContactItem.h
  39. 5
      src/Model/ContactRequest.h
  40. 4
      src/Model/ContactRequestChatItem.cpp
  41. 4
      src/Model/ContactRequestChatItem.h
  42. 4
      src/addressbook.cpp
  43. 4
      src/addressbook.h
  44. 4
      src/addresscombo.cpp
  45. 2
      src/addresscombo.h
  46. 2
      src/balancestablemodel.cpp
  47. 4
      src/balancestablemodel.h
  48. 4
      src/camount.cpp
  49. 2
      src/camount.h
  50. 2
      src/chatbubbleme.cpp
  51. 2
      src/chatbubbleme.h
  52. 2
      src/chatbubblepartner.cpp
  53. 2
      src/chatbubblepartner.h
  54. 4
      src/chatmodel.cpp
  55. 6
      src/chatmodel.h
  56. 2
      src/connection.cpp
  57. 2
      src/connection.h
  58. 6
      src/contactmodel.h
  59. 4
      src/datamodel.cpp
  60. 4
      src/datamodel.h
  61. 4
      src/fillediconlabel.cpp
  62. 4
      src/fillediconlabel.h
  63. 11
      src/firsttimewizard.cpp
  64. 5
      src/firsttimewizard.h
  65. 2
      src/liteinterface.cpp
  66. 2
      src/liteinterface.h
  67. 4
      src/logger.cpp
  68. 4
      src/logger.h
  69. 2
      src/main.cpp
  70. 5
      src/mainwindow.cpp
  71. 2
      src/mainwindow.h
  72. 4
      src/memoedit.cpp
  73. 4
      src/memoedit.h
  74. 2
      src/mobileappconnector.cpp
  75. 2
      src/mobileappconnector.h
  76. 2
      src/precompiled.h
  77. 4
      src/qrcodelabel.cpp
  78. 2
      src/qrcodelabel.h
  79. 2
      src/recurring.cpp
  80. 4
      src/recurring.h
  81. 2
      src/requestdialog.cpp
  82. 2
      src/requestdialog.h
  83. 2
      src/sendtab.cpp
  84. 2
      src/settings.cpp
  85. 2
      src/settings.h
  86. 2
      src/txtablemodel.cpp
  87. 2
      src/txtablemodel.h
  88. 2
      src/version.h
  89. 2
      src/viewalladdresses.cpp
  90. 4
      src/viewalladdresses.h
  91. 3
      src/websockets.cpp
  92. 7
      src/websockets.h

2
LICENSE

@ -1,4 +1,4 @@
Copyright 2019 The Hush developers
Copyright 2019-2021 The Hush developers
Copyright 2018 adityapk

1
OKtadP.json

@ -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

@ -1,5 +1,5 @@
#!/bin/bash
# Copyright 2019 The Hush Developers
# Copyright 2019-2021 The Hush Developers
UNAME=$(uname)

4
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

5
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"

2
src/Chat/Chat.cpp

@ -140,4 +140,4 @@ void Chat::renderChatBox(Ui::MainWindow *ui, QListView *view, QLabel *label)
}
}

4
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
#endif

4
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;
}
}

4
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 <stdio.h>
@ -21,4 +23,4 @@ class FileEncryption
};
#endif
#endif

4
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;
}
}

4
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 <stdio.h>
@ -11,4 +13,4 @@ class PASSWD
static const unsigned char* key(QString);
};
#endif
#endif

4
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"

2
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"

2
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"

4
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<T>::getData(QString key)
{
return this->data[key];
}
#endif
#endif

4
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();
}
}

4
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
#endif

4
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;
bool SietchDataStore::instanced = false;

2
src/DataStore/SietchDataStore.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef SIETCHDATASTORE_H
#define SIETCHDATASTORE_H

4
src/FileSystem/FileSystem.cpp

@ -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;

4
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
#endif

4
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
#endif

4
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
#endif

4
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
#endif

4
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
#endif

4
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
#endif

4
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
#endif

4
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
#endif

4
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
#endif

4
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
#endif

4
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();
}
}

4
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
#endif

4
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
#endif

4
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
#endif

4
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;
}
}

4
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"

4
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

6
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:

5
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

4
src/Model/ContactRequestChatItem.cpp

@ -1 +1,3 @@
#include "ContactRequestChatItem.h"
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#include "ContactRequestChatItem.h"

4
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
#endif

4
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"

4
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
#endif // ADDRESSBOOK_H

4
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);
}
}

2
src/addresscombo.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef ADDRESSCOMBO_H
#define ADDRESSCOMBO_H

2
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"

4
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
#endif // BALANCESTABLEMODEL_H

4
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);
}
}

2
src/camount.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef CAMOUNT_H
#define CAMOUNT_H

2
src/chatbubbleme.cpp

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#include "chatbubbleme.h"
#include "ui_chatbubbleme.h"

2
src/chatbubbleme.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef CHATBUBBLEME_H
#define CHATBUBBLEME_H

2
src/chatbubblepartner.cpp

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#include "chatbubblepartner.h"
#include "ui_chatbubblepartner.h"

2
src/chatbubblepartner.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef CHATBUBBLEPARTNER_H
#define CHATBUBBLEPARTNER_H

4
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"

6
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
#endif

2
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"

2
src/connection.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef CONNECTION_H
#define CONNECTION_H

6
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
#endif

4
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);
}
}

4
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
#endif // DATAMODEL_H

4
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);
}
}

4
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
#endif // FILLEDICONLABEL_H

11
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;

5
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
{

2
src/liteinterface.cpp

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#include "liteinterface.h"
LiteInterface::LiteInterface() {

2
src/liteinterface.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef hushDRPC_H
#define hushDRPC_H

4
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();
}
}

4
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
#endif // LOGGER_H

2
src/main.cpp

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#include <singleapplication.h>
#include "precompiled.h"

5
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"

2
src/mainwindow.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef MAINWINDOW_H
#define MAINWINDOW_H

4
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);
}
}

4
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
#endif // MEMOEDIT_H

2
src/mobileappconnector.cpp

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#include "mobileappconnector.h"
#include "ui_mobileappconnector.h"

2
src/mobileappconnector.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef MOBILEAPPCONNECTOR_H
#define MOBILEAPPCONNECTOR_H

2
src/precompiled.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#if defined __cplusplus
/* Add C++ includes here */

4
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());
}
}

2
src/qrcodelabel.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef QRCODELABEL_H
#define QRCODELABEL_H

2
src/recurring.cpp

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#include "recurring.h"
#include "mainwindow.h"

4
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
#endif // RECURRING_H

2
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"

2
src/requestdialog.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef REQUESTDIALOG_H
#define REQUESTDIALOG_H

2
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"

2
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"

2
src/settings.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef SETTINGS_H
#define SETTINGS_H

2
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"

2
src/txtablemodel.h

@ -1,3 +1,5 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#ifndef STRINGSTABLEMODEL_H
#define STRINGSTABLEMODEL_H

2
src/version.h

@ -1 +1,3 @@
// Copyright 2019-2021 The Hush developers
// Released under the GPLv3
#define APP_VERSION "1.3.11"

2
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"

4
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
#endif

3
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"

7
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
#endif // WEBSOCKETS_H

Loading…
Cancel
Save