# openPilotLog: src/classes/aflightentry.h Source File

aflightentry.h
/*
*openPilotLog - A FOSS Pilot Logbook Application
*Copyright (C) 2020-2021 Felix Turowsky
*
*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 <https://www.gnu.org/licenses/>.
*/
#ifndef AFLIGHTENTRY_H
#define AFLIGHTENTRY_H
#include "src/classes/aentry.h"
class AFlightEntry : public AEntry {
public:
AFlightEntry();
AFlightEntry(RowId_T row_id);
AFlightEntry(RowData_T table_data);
AFlightEntry(const AFlightEntry& pe) = default;
AFlightEntry& operator=(const AFlightEntry& pe) = default;
enum class pilotPosition { pic, secondPilot, thirdPilot };
const QString summary();
const QString getRegistration();
const QString getPilotName(pilotPosition);
};
#endif // AFLIGHTENTRY_H
AFlightEntry::summary
const QString summary()
Returs a summary of the flight data, if struct holds data.
Definition: aflightentry.cpp:36
AFlightEntry::getRegistration
const QString getRegistration()
Returns the tails' registration from the database.
Definition: aflightentry.cpp:54
AFlightEntry
Definition: aflightentry.h:23
AFlightEntry::getPilotName
const QString getPilotName(pilotPosition)
Returns the pilots name from the Database.
Definition: aflightentry.cpp:60
AEntry
The Entry class encapsulates table metadata(table name, row id) and data for new and existing entries...
Definition: aentry.h:40