digiKam
inattaxon.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2021-03-20
7  * Description : a tool to export images to iNaturalist web service
8  *
9  * Copyright (C) 2021 by Joerg Lohse <joergmlpts at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_INAT_TAXON_H
24 #define DIGIKAM_INAT_TAXON_H
25 
26 // Qt includes
27 
28 #include <QString>
29 #include <QUrl>
30 #include <QList>
31 
33 {
34 
56 class Taxon
57 {
58 public:
59 
60  Taxon(int id,
61  int parentId,
62  const QString& name,
63  const QString& rank,
64  double rankLevel,
65  const QString& commonName,
66  const QString& matchedTerm,
67  const QUrl& squareUrl,
68  const QList<Taxon>& ancestors);
69  Taxon();
70  Taxon(const Taxon&);
71  ~Taxon();
72 
73  bool isValid() const;
74  int id() const;
75  int parentId() const;
76  const QString& name() const;
77  QString htmlName() const;
78  const QString& rank() const;
79  double rankLevel() const;
80  const QString& commonName() const;
81  const QList<Taxon>& ancestors() const;
82  const QUrl& squareUrl() const;
83  const QString& matchedTerm() const;
84 
85  Taxon& operator= (const Taxon&);
86  bool operator!=(const Taxon&) const;
87  bool operator==(const Taxon&) const;
88 
89 private:
90 
91  class Private;
92  Private* const d;
93 };
94 
95 } // namespace DigikamGenericINatPlugin
96 
97 #endif // DIGIKAM_INAT_TAXON_H
Definition: inattaxon.h:57
const QString & name() const
Definition: inattaxon.cpp:119
Taxon()
Definition: inattaxon.cpp:76
int parentId() const
Definition: inattaxon.cpp:114
double rankLevel() const
Definition: inattaxon.cpp:174
const QString & commonName() const
Definition: inattaxon.cpp:189
Taxon & operator=(const Taxon &)
Definition: inattaxon.cpp:92
bool operator==(const Taxon &) const
Definition: inattaxon.cpp:104
const QString & matchedTerm() const
Definition: inattaxon.cpp:179
int id() const
Definition: inattaxon.cpp:109
bool operator!=(const Taxon &) const
Definition: inattaxon.cpp:99
bool isValid() const
Definition: inattaxon.cpp:199
~Taxon()
Definition: inattaxon.cpp:87
const QString & rank() const
Definition: inattaxon.cpp:169
const QList< Taxon > & ancestors() const
Definition: inattaxon.cpp:194
QString htmlName() const
Definition: inattaxon.cpp:127
const QUrl & squareUrl() const
Definition: inattaxon.cpp:184
Definition: piwigotalker.h:48
Definition: inatbrowserdlg.cpp:64