Files
pay/src/AddressInfo.cpp
T
tomFlowee 163e615613 Move sources into the src subdir
Slowly the amount of cpp sources has been growing to the point
where its just too much to store in the root of the project.
I think they are more happy in a subdir as well, getting an elevated
position for themselves.
2022-12-13 11:54:03 +01:00

81 lines
1.7 KiB
C++

/*
* This file is part of the Flowee project
* Copyright (C) 2022 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 "AddressInfo.h"
#include "AccountInfo.h"
AddressInfo::AddressInfo(const QString &address, QObject *parent)
: QObject{parent},
m_address(address)
{
}
const QString &AddressInfo::address() const
{
return m_address;
}
const QString &AddressInfo::accountName() const
{
return m_accountName;
}
void AddressInfo::setAccountName(const QString &name)
{
m_accountName = name;
}
double AddressInfo::saldo() const
{
return m_saldo;
}
void AddressInfo::setSaldo(double newSaldo)
{
m_saldo = newSaldo;
}
int AddressInfo::coins() const
{
return m_coins;
}
void AddressInfo::setCoins(int newCoins)
{
m_coins = newCoins;
}
int AddressInfo::historicalCoins() const
{
return m_historicalCoins;
}
void AddressInfo::setHistoricalCoins(int newHistoricalCoins)
{
m_historicalCoins = newHistoricalCoins;
}
int AddressInfo::accountId() const
{
return m_accountId;
}
void AddressInfo::setAccountId(int id)
{
m_accountId = id;
}