Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QCalendar::SystemId Class Reference

\inmodule QtCore More...

#include <qcalendar.h>

+ Collaboration diagram for QCalendar::SystemId:

Public Member Functions

constexpr SystemId ()
 
constexpr size_t index () const noexcept
 
constexpr bool isValid () const noexcept
 Returns true if this is a valid calendar implementation identifier, false otherwise.
 

Friends

class QCalendarBackend
 

Detailed Description

\inmodule QtCore

Since
6.2

This is an opaque type used to identify custom calendar implementations. The only supported source for values of this type is the backend's calendarId() method. A value of this type whose isValid() is false does not identify a successfully-registered backend. The only valid consumer of values of this type is a QCalendar constructor, which will only produce a valid QCalendar instance if the ID passed to it is valid.

See also
QCalendar, QCalendar::System

Definition at line 97 of file qcalendar.h.

Constructor & Destructor Documentation

◆ SystemId()

QCalendar::SystemId::SystemId ( )
inlineconstexpr

Constructs an invalid calendar system identifier.

Definition at line 106 of file qcalendar.h.

Member Function Documentation

◆ index()

QCalendar::SystemId::index ( ) const
inlineconstexprnoexcept

Returns the internal representation of the identifier.

Definition at line 107 of file qcalendar.h.

Referenced by QCalendar::QCalendar(), QCalendar::QCalendar(), and QCalendarBackend::calendarSystem().

+ Here is the caller graph for this function:

◆ isValid()

QCalendar::SystemId::isValid ( ) const
inlineconstexprnoexcept

Returns true if this is a valid calendar implementation identifier, false otherwise.

See also
QCalendar

Definition at line 108 of file qcalendar.h.

Referenced by QCalendar::QCalendar(), QCalendar::QCalendar(), QCalendarBackend::~QCalendarBackend(), QCalendarBackend::registerCustomBackend(), and QtPrivate::QCalendarRegistry::registerCustomBackend().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QCalendarBackend

friend class QCalendarBackend
friend

Definition at line 100 of file qcalendar.h.


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