Kstars

observer.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
10#include <QString>
11
12/// FIXME: why not just use a QHash?
13
14/**
15 * @class OAL::Observer
16 *
17 * Information on user who created or contributed to the observation.
18 */
20{
21 public:
22 QString id() const
23 {
24 return m_Id;
25 }
26 QString name() const
27 {
28 return m_Name;
29 }
30 QString surname() const
31 {
32 return m_Surname;
33 }
34 QString contact() const
35 {
36 return m_Contact;
37 }
38 Observer(QString _id, QString _name = "", QString _surname = "", QString _contact = "")
39 {
40 setObserver(_id, _name, _surname, _contact);
41 }
42 void setObserver(QString _id, QString _name = "", QString _surname = "", QString _contact = "");
43
44 private:
45 QString m_Name, m_Surname, m_Contact, m_Id;
46};
FIXME: why not just use a QHash?
Definition observer.h:20
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.