libschauer  0.0.1
Qt based library to access the Docker HTTP API.
Public Types | Public Member Functions | List of all members
Schauer::VersionListModel Class Reference

List model providing version information. More...

#include <Schauer/VersionListModel>

Inheritance diagram for Schauer::VersionListModel:
Inheritance graph
[legend]

Public Types

enum  Roles : int {
  NameRole = Qt::UserRole + 1, VersionRole, ApiVersionRole, ArchRole,
  BuildTimeRole, ExperimentalRole, GitCommitRole, GoVersionRole,
  KernelVersionRole, MinAPIVersionRole, OsRole
}
 Roles used to access the model data. More...
 
- Public Types inherited from Schauer::AbstractBaseModel
enum  LoadMode : int { LoadAsync, LoadSync }
 Load mode for model. More...
 

Public Member Functions

 VersionListModel (QObject *parent=nullptr)
 Constructs a new VersionListModel with the given parent. More...
 
 ~VersionListModel () override
 Destroys the VersionListModel. More...
 
- Public Member Functions inherited from Schauer::AbstractVersionModel
 AbstractVersionModel (QObject *parent=nullptr)
 Constructs a new AbstractVersionModel with the given parent. More...
 
 ~AbstractVersionModel () override
 Destroys the AbstractVersionModel object. More...
 
QString apiVersion () const
 Returns the API version of the Docker daemon. More...
 
QString arch () const
 Returns the architecture the Docker daemon runs on. More...
 
QDateTime buildTime () const
 Returns the build time of the Docker daemon. More...
 
QString gitCommit () const
 Returns the Git commit of the Docker daemon. More...
 
QString goVersion () const
 Returns the Go version the Docker daemon has been built with. More...
 
QString kernelVersion () const
 Returns the kernel version of the host system the Docker daemon runs on. More...
 
QString minApiVersion () const
 Returns the minimum API version supported by this Docker daemon. More...
 
QString os () const
 Returns the host operating systemd the Docker daemon runs on. More...
 
QString platformName () const
 Returns the name of the platform the Docker daemon runs on. More...
 
QString version () const
 Returns the version of the Docker daemon. More...
 
- Public Member Functions inherited from Schauer::AbstractBaseModel
 AbstractBaseModel (QObject *parent=nullptr)
 Constructs a new AbstractBaseModel class with the given parent. More...
 
 ~AbstractBaseModel () override
 Destroys the AbstractBaseModel object. More...
 
AbstractConfigurationconfiguration () const
 Getter function for the configuraion property. More...
 
int error () const
 Returns the error code, if there has been an error. More...
 
QString errorString () const
 Returns the human-readable error message. More...
 
bool isLoading () const
 Returns true while the model is loading, otherwise returns false. More...
 
void setConfiguration (AbstractConfiguration *configuration)
 Setter function for the configuraion property. More...
 

Additional Inherited Members

- Properties inherited from Schauer::AbstractVersionModel
QString apiVersion
 API version of the Docker daemon. More...
 
QString arch
 Architecture the Docker daemon runs on. More...
 
QDateTime buildTime
 Build time of the Docker daemon. More...
 
QString gitCommit
 Git commit hash of the Docker daemon. More...
 
QString goVersion
 Go version the Docker daemon has been built with. More...
 
QString kernelVersion
 Kernel version of the host system the Docker daemon runs on. More...
 
QString minApiVersion
 The minimum API version supported by this Docker daemon. More...
 
QString os
 The host operating system the Docker daemon runs on. More...
 
QString platformName
 Name of the platform the Docker daemon runs on. More...
 
QString version
 Version of the Docker daemon. More...
 
- Properties inherited from Schauer::AbstractBaseModel
Schauer::AbstractConfiguration configuration
 Pointer to an object providing configuration data. More...
 
int error
 Error code. More...
 
QString errorString
 Human-readable error message. More...
 
bool isLoading
 Indicates loading state. More...
 
- Public Slots inherited from Schauer::AbstractBaseModel
bool load (Schauer::AbstractBaseModel::LoadMode mode=LoadAsync)
 Loads the model data. More...
 
- Signals inherited from Schauer::AbstractBaseModel
void configurationChanged (Schauer::AbstractConfiguration *configuration)
 Notifier signal for the configuration property. More...
 
void errorChanged (int error)
 Notifier signal for the error property. More...
 
void isLoadingChanged (bool isLoading)
 Notifier signal for the isLoading property. More...
 
void loaded ()
 Emitted to indicate model data loading has been finished. More...
 
- Protected Member Functions inherited from Schauer::AbstractVersionModel
void clear () override
 Clears the model data. More...
 

Detailed Description

List model providing version information.

Member Enumeration Documentation

◆ Roles

Roles used to access the model data.

Mainly used to access the model data from QML.

Enumerator
NameRole 

The name of the component. Accessor: name

VersionRole 

The version of the component. Accessor: version

ApiVersionRole 

The default (and highest) API version supported by the component. Accessor: apiVersion

ArchRole 

The architectur the component is running on. Accessor: arch

BuildTimeRole 

The date and time the component was compiled. Accessor: buildTime

ExperimentalRole 

Indicates if the component is started with experimental features enapled. Accessor: experimental

GitCommitRole 

The Git commit of the source code that was used to build the component. Accessor: gitCommit

GoVersionRole 

The version of Go used to compile the component, and the version of the Go runtime in use. Accessor: goVersion

KernelVersionRole 

The kernel version the component is running on. Accessor: kernelVersion

MinAPIVersionRole 

The minimum API version that is supported by this component. Accessor: minApiVersion

OsRole 

The operating system the component is running on. Accessor: os

Constructor & Destructor Documentation

◆ VersionListModel()

VersionListModel::VersionListModel ( QObject parent = nullptr)
explicit

Constructs a new VersionListModel with the given parent.

◆ ~VersionListModel()

VersionListModel::~VersionListModel ( )
overridedefault

Destroys the VersionListModel.


The documentation for this class was generated from the following files: