ORE Studio 0.0.4
Loading...
Searching...
No Matches
CounterpartyDetailOperations.hpp
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * Copyright (C) 2026 Marco Craveiro <marco.craveiro@gmail.com>
4 *
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License as published by the Free Software
7 * Foundation; either version 3 of the License, or (at your option) any later
8 * version.
9 *
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
13 * details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 51
17 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 *
19 */
20#ifndef ORES_QT_COUNTERPARTY_DETAIL_OPERATIONS_HPP
21#define ORES_QT_COUNTERPARTY_DETAIL_OPERATIONS_HPP
22
23#include "ores.qt/EntityDetailOperations.hpp"
24
25namespace ores::qt {
26
33public:
34 [[nodiscard]] std::string entity_type_name() const override;
35 [[nodiscard]] bool has_party_category() const override;
36
37 [[nodiscard]] operation_result save_entity(
38 ClientManager* cm, const entity_data& data) const override;
39 [[nodiscard]] operation_result delete_entity(
40 ClientManager* cm, const boost::uuids::uuid& id) const override;
42 ClientManager* cm) const override;
43
45 ClientManager* cm, const boost::uuids::uuid& entity_id) const override;
47 ClientManager* cm, const identifier_entry& entry) const override;
49 ClientManager* cm, const boost::uuids::uuid& id) const override;
50
52 ClientManager* cm, const boost::uuids::uuid& entity_id) const override;
53 [[nodiscard]] operation_result save_contact(
54 ClientManager* cm, const contact_entry& entry) const override;
55 [[nodiscard]] operation_result delete_contact(
56 ClientManager* cm, const boost::uuids::uuid& id) const override;
57};
58
59}
60
61#endif
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:29
Manages the lifecycle of the NATS client and login state.
Definition ClientManager.hpp:109
Counterparty-specific operations for the entity detail dialog.
Definition CounterpartyDetailOperations.hpp:32
load_all_entities_result load_all_entities(ClientManager *cm) const override
Load all entities for parent combo and hierarchy tree.
Definition CounterpartyDetailOperations.cpp:81
operation_result save_identifier(ClientManager *cm, const identifier_entry &entry) const override
Save an identifier.
Definition CounterpartyDetailOperations.cpp:123
operation_result delete_identifier(ClientManager *cm, const boost::uuids::uuid &id) const override
Delete an identifier.
Definition CounterpartyDetailOperations.cpp:144
operation_result delete_contact(ClientManager *cm, const boost::uuids::uuid &id) const override
Delete a contact.
Definition CounterpartyDetailOperations.cpp:206
load_identifiers_result load_identifiers(ClientManager *cm, const boost::uuids::uuid &entity_id) const override
Load identifiers for a specific entity.
Definition CounterpartyDetailOperations.cpp:102
load_contacts_result load_contacts(ClientManager *cm, const boost::uuids::uuid &entity_id) const override
Load contacts for a specific entity.
Definition CounterpartyDetailOperations.cpp:156
operation_result save_entity(ClientManager *cm, const entity_data &data) const override
Save the entity via protocol messages.
Definition CounterpartyDetailOperations.cpp:41
operation_result save_contact(ClientManager *cm, const contact_entry &entry) const override
Save a contact.
Definition CounterpartyDetailOperations.cpp:178
bool has_party_category() const override
Whether this entity type has a party_category field.
Definition CounterpartyDetailOperations.cpp:37
operation_result delete_entity(ClientManager *cm, const boost::uuids::uuid &id) const override
Delete the entity via protocol messages.
Definition CounterpartyDetailOperations.cpp:69
std::string entity_type_name() const override
Display name for the entity type (e.g. "Party", "Counterparty").
Definition CounterpartyDetailOperations.cpp:33
Common result type for save and delete operations.
Definition EntityDetailOperations.hpp:35
Lightweight struct for populating identifier tables.
Definition EntityDetailOperations.hpp:54
Lightweight struct for populating contact tables.
Definition EntityDetailOperations.hpp:67
Common entity data extracted from party or counterparty types.
Definition EntityDetailOperations.hpp:90
Result of loading all entities for hierarchy/parent combo.
Definition EntityDetailOperations.hpp:113
Result of loading identifiers for an entity.
Definition EntityDetailOperations.hpp:121
Result of loading contacts for an entity.
Definition EntityDetailOperations.hpp:129
Interface for entity-specific operations in the detail dialog.
Definition EntityDetailOperations.hpp:142