|
swift
|
What and state of reading from web services. More...
#include <entityflags.h>
Public Types | |
| enum | EntityFlag { NoEntity = 0 , DbInfoObjectEntity = 1 << 0 , SharedInfoObjectEntity = 1 << 1 , AircraftIcaoEntity = 1 << 2 , AirlineIcaoEntity = 1 << 3 , CountryEntity = 1 << 4 , DistributorEntity = 1 << 5 , LiveryEntity = 1 << 6 , ModelEntity = 1 << 7 , MetarEntity = 1 << 8 , VatsimDataFile = 1 << 9 , VatsimStatusFile = 1 << 10 , AirportEntity = 1 << 11 , AircraftCategoryEntity = 1 << 12 , AllEntities = ((1 << 13) - 1) , AllIcaoEntities = AircraftIcaoEntity | AirlineIcaoEntity , AllIcaoAndCountries , AllIcaoCountriesCategory = AllIcaoAndCountries | AircraftCategoryEntity , DistributorLiveryModel = DistributorEntity | LiveryEntity | ModelEntity , ModelMatchingEntities = AllIcaoEntities | LiveryEntity | ModelEntity , AllDbEntitiesNoInfoObjects , AllDbEntities = AllDbEntitiesNoInfoObjects | DbInfoObjectEntity , AllDbEntitiesNoInfoObjectsNoAirportsAndCategories } |
| Which data to read, requires corresponding readers. More... | |
| enum | ReadState { ReadStarted , ReadParsing , ReadFinished , ReadFinishedRestricted , ReadFailed , ReadSkipped } |
| State of operation. More... | |
| using | EntitySet = QSet<CEntityFlags::Entity> |
| Set of CEntityFlags::Entity. | |
Static Public Member Functions | |
| static QString | flagToString (CEntityFlags::EntityFlag flag) |
| Convert to string. | |
| static QStringList | entitiesToStringList (CEntityFlags::Entity entities) |
| Entities to string list. | |
| static QString | entitiesToString (CEntityFlags::Entity entities, const QString &separator=", ") |
| Entities to string list. | |
| static bool | isSingleEntity (CEntityFlags::Entity flag) |
| Representing single entity? | |
| static bool | isFinishedReadState (ReadState state) |
| Any finished state. | |
| static bool | isFinishedReadStateOrFailure (ReadState state) |
| Any finished state. | |
| static int | numberOfEntities (CEntityFlags::Entity entities) |
| Represented number of entities. | |
| static const QString & | stateToString (ReadState flag) |
| Convert to string. | |
| static CStatusMessage::StatusSeverity | flagToSeverity (ReadState state) |
| Flag to severity. | |
| static Entity | entityFlagToEntity (EntityFlag entityFlag) |
| To entity (when explicit conversion is needed). | |
| static EntityFlag | entityToEntityFlag (Entity entity) |
| To flag (when explicit conversion is needed). | |
| static Entity | iterateDbEntities (Entity &entities) |
| Return single entity and remove it from entities. | |
| static bool | isWarningOrAbove (ReadState state) |
| Read state representing warning or above? | |
| static bool | anySwiftDbEntity (Entity entities) |
| Representing at least one DB entity. | |
| static Entity | singleEntityByName (const QString &name) |
| Get by name. | |
| static Entity | multipleEntitiesByNames (const QStringList &names) |
| Get by multiple names. | |
| static EntitySet | asSingleEntities (Entity entities) |
| As set of single entities. | |
| static void | registerMetadata () |
| Register metadata. | |
What and state of reading from web services.
Definition at line 21 of file entityflags.h.
| using swift::misc::network::CEntityFlags::EntitySet = QSet<CEntityFlags::Entity> |
Set of CEntityFlags::Entity.
Definition at line 57 of file entityflags.h.
Which data to read, requires corresponding readers.
Definition at line 25 of file entityflags.h.
State of operation.
Definition at line 60 of file entityflags.h.
|
static |
Representing at least one DB entity.
Definition at line 195 of file entityflags.cpp.
|
static |
As set of single entities.
Definition at line 254 of file entityflags.cpp.
|
static |
Entities to string list.
Definition at line 59 of file entityflags.cpp.
|
static |
Entities to string list.
Definition at line 40 of file entityflags.cpp.
|
static |
To entity (when explicit conversion is needed).
Definition at line 125 of file entityflags.cpp.
|
static |
To flag (when explicit conversion is needed).
Definition at line 130 of file entityflags.cpp.
|
static |
Flag to severity.
Definition at line 111 of file entityflags.cpp.
|
static |
Convert to string.
Definition at line 16 of file entityflags.cpp.
|
static |
Any finished state.
Definition at line 69 of file entityflags.cpp.
|
static |
Any finished state.
Definition at line 74 of file entityflags.cpp.
|
static |
Representing single entity?
Definition at line 64 of file entityflags.cpp.
|
static |
Read state representing warning or above?
Definition at line 184 of file entityflags.cpp.
|
static |
Return single entity and remove it from entities.
Definition at line 135 of file entityflags.cpp.
|
static |
Get by multiple names.
Definition at line 239 of file entityflags.cpp.
|
static |
Represented number of entities.
Definition at line 83 of file entityflags.cpp.
|
static |
Register metadata.
Definition at line 266 of file entityflags.cpp.
|
static |
Get by name.
Definition at line 201 of file entityflags.cpp.
|
static |
Convert to string.
Definition at line 89 of file entityflags.cpp.