mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 23:31:32 +02:00
59 lines
1.3 KiB
C++
59 lines
1.3 KiB
C++
// SPDX-License-Identifier: BSD-3-Clause
|
|
// SPDX-FileCopyrightText: 2020-2023 The Monero Project
|
|
|
|
#include "LocalMoneroPlugin.h"
|
|
|
|
LocalMoneroPlugin::LocalMoneroPlugin()
|
|
{
|
|
}
|
|
|
|
void LocalMoneroPlugin::initialize(Wallet *wallet, QObject *parent) {
|
|
this->setParent(parent);
|
|
m_tab = new LocalMoneroWidget(nullptr, wallet);
|
|
}
|
|
|
|
QString LocalMoneroPlugin::id() {
|
|
return "localmonero";
|
|
}
|
|
|
|
int LocalMoneroPlugin::idx() const {
|
|
return 0;
|
|
}
|
|
|
|
QString LocalMoneroPlugin::parent() {
|
|
return "exchange";
|
|
}
|
|
|
|
QString LocalMoneroPlugin::displayName() {
|
|
return "LocalMonero";
|
|
}
|
|
|
|
QString LocalMoneroPlugin::description() {
|
|
return {};
|
|
}
|
|
QString LocalMoneroPlugin::icon() {
|
|
return "localMonero_logo.png";
|
|
}
|
|
|
|
QStringList LocalMoneroPlugin::socketData() {
|
|
return {"localmonero_countries", "localmonero_currencies", "localmonero_payment_methods"};
|
|
}
|
|
|
|
Plugin::PluginType LocalMoneroPlugin::type() {
|
|
return Plugin::PluginType::TAB;
|
|
}
|
|
|
|
QWidget* LocalMoneroPlugin::tab() {
|
|
return m_tab;
|
|
}
|
|
|
|
void LocalMoneroPlugin::skinChanged() {
|
|
m_tab->skinChanged();
|
|
}
|
|
|
|
const bool LocalMoneroPlugin::registered = [] {
|
|
PluginRegistry::registerPlugin(LocalMoneroPlugin::create());
|
|
PluginRegistry::getInstance().registerPluginCreator(&LocalMoneroPlugin::create);
|
|
return true;
|
|
}();
|