2024-12-24 15:09:20 +01:00
/*
* This file is part of the Flowee project
* Copyright (C) 2024 Tom Zander <tom@flowee.org>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
# include "BigTransferModuleInfo.h"
# include "QMLTransferManager.h"
# include <QQmlEngine> // for the qmlRegisterType
ModuleInfo * BigTransferModuleInfo : : build ( )
{
2025-01-27 13:19:54 +01:00
std : : srand ( time ( nullptr ) ) ;
2024-12-24 15:09:20 +01:00
qmlRegisterType < QMLTransferManager > ( " Flowee.org.pay.bigtransfer " , 1 , 0 , " TransferManager " ) ;
return new BigTransferModuleInfo ( ) ;
}
BigTransferModuleInfo : : BigTransferModuleInfo ( )
{
setId ( " bigTransfer " ) ;
2025-01-09 20:06:18 +01:00
setTitle ( tr ( " Wallet to Wallet " ) ) ;
2025-06-17 22:42:54 +02:00
setDescription ( tr ( " Move many coins between wallets, optimize for anonymity by offering one transaction per address while allowing it to split over various addresses. " ) ) ;
2025-02-25 17:04:13 +01:00
setPriority ( 5 ) ;
2024-12-24 15:09:20 +01:00
ModuleSection * sendTab = new ModuleSection ( ModuleSection : : SendMethod , this ) ;
2025-01-09 20:06:18 +01:00
sendTab - > setText ( tr ( " Wallet to Wallet " ) ) ;
sendTab - > setSubtext ( tr ( " Move funds to another wallet " ) ) ;
2024-12-24 15:09:20 +01:00
sendTab - > setStartQMLFile ( " qrc:/bigtransfer/Main.qml " ) ;
addSection ( sendTab ) ;
ModuleSection * app = new ModuleSection ( ModuleSection : : OtherSectionType , this ) ;
2025-01-09 20:06:18 +01:00
app - > setText ( tr ( " Wallet to Wallet " ) ) ;
2024-12-24 15:09:20 +01:00
app - > setSubtext ( sendTab - > subtext ( ) ) ;
app - > setStartQMLFile ( sendTab - > startQMLFile ( ) ) ;
addSection ( app ) ;
}