Files
qt5-legatus-legacy/Lts/Services/ParticipantManagement/PartyHandling/party.h
T
2026-08-13 18:33:10 +02:00

37 lines
832 B
C++
Executable File

/**
* The Party class represents a party. It holds the data and offers some conversion methods.
* $Id$
* $HeadURL$
* $Author$
* Created by Hannes Baeuerle, SLSE, 2016-05-12
*/
#pragma once
#include <ParticipantManagement/ppm_db.h>
#include <ParticipantManagement/ppm_dtc.h>
namespace ParticipantManagement
{
namespace PartyHandling
{
class Party
{
public:
explicit Party(const Database::PpmParty &data)
: m_data(data)
{}
int32_t id() const { return m_data.id; }
Database::PpmParty toDbParty() const;
ParticipantManagement::Party toDdsParty() const;
bool hasChanges(const ParticipantManagement::Party &request, const bool bIgnoreIsUsedBy);
bool isUsedBy() const { return m_data.isUsedBy; }
private:
Database::PpmParty m_data;
};
} // namespace PartyHandling
} // namespace ParticipantManagement