/* * Copyright (c) 2025 Aldrik Ramaekers * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #pragma once #include "administration.hpp" #define ADMIN_FILE_INFO "info.xml" namespace administration_writer { // Setup functions. bool create(); void destroy(); bool start_new(); // Individual entity writing. bool delete_entry(char* id); bool save_project_blocking(project project); bool save_cost_center_blocking(cost_center cost); bool save_tax_rate_blocking(tax_rate rate); bool save_contact_blocking(contact c); bool save_invoice_blocking(invoice inv); // Archiving functions. bool save_all_administration_info_blocking(); bool save_all_tax_rates_blocking(); bool save_all_cost_centers_blocking(); bool save_all_async(); }