Files
pay/modules/send-sweep/SendSweepModuleInfo.cpp
T
tomFlowee 3aa28743f1 Start implementing the sweep module
This adds scanning of private key and processing the data.
2024-10-02 23:04:38 +02:00

39 lines
1.4 KiB
C++

/*
* This file is part of the Flowee project
* Copyright (C) 2023 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 "SendSweepModuleInfo.h"
#include "QMLSweepHandler.h"
#include <QQmlEngine> // for the qmlRegisterType
ModuleInfo * SendSweepModuleInfo::build()
{
ModuleInfo *info = new ModuleInfo();
info->setId("sendSweepModule");
info->setTitle(tr("Sweep & Send"));
info->setDescription(tr("Allows sweeping a paper-wallet, moving the contents to your own wallet"));
auto sendButton = new ModuleSection(ModuleSection::SendMethod, info);
sendButton->setText(tr("Sweep Paper Wallet"));
sendButton->setStartQMLFile("qrc:/send-sweep/SendPage.qml");
info->addSection(sendButton);
qmlRegisterType<QMLSweepHandler>("Flowee.org.pay.SendSweep", 1, 0, "SweepHandler");
return info;
}