Kstars

session.h
1/*
2 SPDX-FileCopyrightText: 2009 Prakash Mohan <prakash.mohan@kdemail.net>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6#pragma once
7
8#include "oal/oal.h"
9#include "kstarsdatetime.h"
10
11#include <QString>
12
13/**
14 * @class OAL::Session
15 *
16 * Information on session details.
17 */
19{
20 public:
21 Session(const QString &name, const QString &site, const KStarsDateTime &begin, const KStarsDateTime &end,
22 const QString &weather, const QString &equipment, const QString &comment, const QString &lang)
23 {
24 setSession(name, site, begin, end, weather, equipment, comment, lang);
25 }
26 QString id() const
27 {
28 return m_Id;
29 }
30 QString site() const
31 {
32 return m_Site;
33 }
34 KStarsDateTime begin() const
35 {
36 return m_Begin;
37 }
38 KStarsDateTime end() const
39 {
40 return m_End;
41 }
42 QString weather() const
43 {
44 return m_Weather;
45 }
46 QString equipment() const
47 {
48 return m_Equipment;
49 }
50 QString comments() const
51 {
52 return m_Comment;
53 }
54 QString lang() const
55 {
56 return m_Lang;
57 }
58 void setSession(const QString &_name, const QString &_site, const KStarsDateTime &_begin,
59 const KStarsDateTime &_end, const QString &_weather, const QString &_equipment,
60 const QString &_comment, const QString &_lang = "en");
61
62 private:
63 QString m_Site, m_Weather, m_Equipment, m_Comment, m_Lang, m_Id;
64 KStarsDateTime m_Begin, m_End;
65};
Extension of QDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day,...
Information on session details.
Definition session.h:19
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.