KWeatherCore::Sunrise

Search for usage in LXR

#include <sunrise.h>

Properties

qreal highMoon
 
QDateTime highMoonTime
 
qreal lowMoon
 
QDateTime lowMoonTime
 
qreal moonPhase
 
QDateTime moonRise
 
QDateTime moonSet
 
qreal solarMidnight
 
QDateTime solarMidnightTime
 
qreal solarNoon
 
QDateTime solarNoonTime
 
QDateTime sunRise
 
QDateTime sunSet
 

Public Member Functions

 Sunrise (const Sunrise &other)
 
 Sunrise (Sunrise &&other)
 
double highMoon () const
 
QDateTime highMoonTime () const
 
double lowMoon () const
 
QDateTime lowMoonTime () const
 
double moonPhase () const
 
const QDateTimemoonRise () const
 
const QDateTimemoonSet () const
 
Sunriseoperator= (const Sunrise &other)
 
Sunriseoperator= (Sunrise &&other)
 
void setHighMoon (const QPair< QDateTime, double > &highMoon)
 
void setLowMoon (const QPair< QDateTime, double > &lowMoon)
 
void setMoonPhase (double moonPhase)
 
void setMoonRise (const QDateTime &moonRise)
 
void setMoonSet (const QDateTime &moonSet)
 
void setSolarMidnight (const QPair< QDateTime, double > &solarMidnight)
 
void setSolarNoon (const QPair< QDateTime, double > &solarNoon)
 
void setSunRise (const QDateTime &sunRise)
 
void setSunSet (const QDateTime &sunSet)
 
double solarMidnight () const
 
QDateTime solarMidnightTime () const
 
double solarNoon () const
 
QDateTime solarNoonTime () const
 
const QDateTimesunRise () const
 
const QDateTimesunSet () const
 
QJsonObject toJson () const
 

Static Public Member Functions

static Sunrise fromJson (QJsonObject obj)
 

Detailed Description

The Sunrise class contains the information of sunrise/set on a day and more.

See also
SunriseSource
Author
Han Young hanyo[email protected][email protected][email protected]proto[email protected]nmai[email protected]l.com

Definition at line 24 of file sunrise.h.

Member Function Documentation

Sunrise KWeatherCore::Sunrise::fromJson ( QJsonObject  obj)
static

construct from json

Definition at line 40 of file sunrise.cpp.

void KWeatherCore::Sunrise::setHighMoon ( const QPair< QDateTime, double > &  highMoon)

set high moon time and elevation

Definition at line 142 of file sunrise.cpp.

void KWeatherCore::Sunrise::setLowMoon ( const QPair< QDateTime, double > &  lowMoon)

set low moon time time and elevation

Definition at line 154 of file sunrise.cpp.

void KWeatherCore::Sunrise::setMoonPhase ( double  moonPhase)

set moon phase

Parameters
moonPhase0..25: "waxing crescent"; 25..50: "waxing gibbous"; 50..75: "waning gibbous"; 75..100: "waning crescent";

Definition at line 174 of file sunrise.cpp.

void KWeatherCore::Sunrise::setMoonRise ( const QDateTime moonRise)

set moon rise time

Definition at line 166 of file sunrise.cpp.

void KWeatherCore::Sunrise::setMoonSet ( const QDateTime moonSet)

set moon set time

Definition at line 170 of file sunrise.cpp.

void KWeatherCore::Sunrise::setSolarMidnight ( const QPair< QDateTime, double > &  solarMidnight)

set solar midnight time and elevation

Definition at line 146 of file sunrise.cpp.

void KWeatherCore::Sunrise::setSolarNoon ( const QPair< QDateTime, double > &  solarNoon)

set solar noon time and elevation

Definition at line 150 of file sunrise.cpp.

void KWeatherCore::Sunrise::setSunRise ( const QDateTime sunRise)

sun rise time

Definition at line 158 of file sunrise.cpp.

void KWeatherCore::Sunrise::setSunSet ( const QDateTime sunSet)

set sun set time

Definition at line 162 of file sunrise.cpp.

QJsonObject KWeatherCore::Sunrise::toJson ( ) const

convert to json

Definition at line 70 of file sunrise.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Jul 29 2021 23:03:42 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.