File indexing completed on 2025-01-05 03:53:35

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2011-03-22
0007  * Description : a Iface C++ interface
0008  *
0009  * SPDX-FileCopyrightText: 2011-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2011      by Manuel Campomanes <campomanes dot manuel at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_MEDIAWIKI_GENERALINFO_H
0017 #define DIGIKAM_MEDIAWIKI_GENERALINFO_H
0018 
0019 // Qt includes
0020 
0021 #include <QDateTime>
0022 #include <QString>
0023 #include <QUrl>
0024 
0025 namespace MediaWiki
0026 {
0027 
0028 /**
0029  * @brief A general info.
0030  */
0031 class Generalinfo
0032 {
0033 
0034 public:
0035 
0036     /**
0037      * @brief Constructs a general info.
0038      */
0039     Generalinfo();
0040 
0041     /**
0042      * @brief Constructs a generalinfo from an other generalinfo.
0043      * @param other an other generalinfo
0044      */
0045     Generalinfo(const Generalinfo& other);
0046 
0047     /**
0048      * @brief Destructs a general info.
0049      */
0050     ~Generalinfo();
0051 
0052     /**
0053      * @brief Assigning an image from an other image.
0054      * @param other an other image
0055      */
0056     Generalinfo& operator=(const Generalinfo& other);
0057 
0058     /**
0059      * @brief Returns true if this instance and other are equal, else false.
0060      * @param other instance to compare
0061      * @return true if there are equal, else false
0062      */
0063     bool operator==(const Generalinfo& other) const;
0064 
0065     /**
0066      * @brief Get the name of the main page.
0067      * @return the name of the main page
0068      */
0069     QString mainPage() const;
0070 
0071     /**
0072      * @brief Set the name of the main page.
0073      * @param mainPage the name of the main page
0074      */
0075     void setMainPage(const QString& mainPage);
0076 
0077     /**
0078      * @brief Get the url of the page.
0079      * @return the url of the page
0080      */
0081     QUrl url() const;
0082 
0083     /**
0084      * @brief Set the url of the page.
0085      * @param url the url of the page
0086      */
0087     void setUrl(const QUrl& url);
0088 
0089     /**
0090      * @brief Get the name of the web site.
0091      * @return the name of the web site
0092      */
0093     QString siteName() const;
0094 
0095     /**
0096      * @brief Set the name of the web site.
0097      * @param siteName the name of the web site
0098      */
0099     void setSiteName(const QString& siteName);
0100 
0101     /**
0102      * @brief Get the generator.
0103      * @return the generator
0104      */
0105     QString generator() const;
0106 
0107     /**
0108      * @brief Set the generator.
0109      * @param generator
0110      */
0111     void setGenerator(const QString& generator);
0112 
0113     /**
0114      * @brief Get the PHP version.
0115      * @return the PHP version
0116      */
0117     QString phpVersion() const;
0118 
0119     /**
0120      * @brief Set the PHP version.
0121      * @param phpVersion the PHP version
0122      */
0123     void setPhpVersion(const QString& phpVersion);
0124 
0125     /**
0126      * @brief Get the PHP API name.
0127      * @return the PHP API name
0128      */
0129     QString phpApi() const;
0130 
0131     /**
0132      * @brief Set the PHP API name.
0133      * @param phpApi the PHP API name
0134      */
0135     void setPhpApi(const QString& phpApi);
0136 
0137     /**
0138      * @brief Get the type of the database.
0139      * @return the type of the database
0140      */
0141     QString dataBaseType() const;
0142 
0143     /**
0144      * @brief Set the type of the database.
0145      * @param dataBaseType the type of the database
0146      */
0147     void setDataBaseType(const QString& dataBaseType);
0148 
0149     /**
0150      * @brief Get the version of the database.
0151      * @return the version of the database
0152      */
0153     QString dataBaseVersion() const;
0154 
0155     /**
0156      * @brief Set the version of the database.
0157      * @param dataBaseVersion the version of the database
0158      */
0159     void setDataBaseVersion(const QString& dataBaseVersion);
0160 
0161     /**
0162      * @brief Get the rev number.
0163      * @return the rev number
0164      */
0165     QString rev() const;
0166 
0167     /**
0168      * @brief Set the rev number.
0169      * @param rev the rev number
0170      */
0171     void setRev(const QString& rev);
0172 
0173     /**
0174      * @brief Get the case.
0175      * @return the case
0176      */
0177     QString cas() const;
0178 
0179     /**
0180      * @brief Set the case.
0181      * @param cas the case
0182      */
0183     void setCas(const QString& cas);
0184 
0185     /**
0186      * @brief Get the license.
0187      * @return the license
0188      */
0189     QString license() const;
0190 
0191     /**
0192      * @brief Set the license.
0193      * @param license the license
0194      */
0195     void setLicense(const QString& license);
0196 
0197     /**
0198      * @brief Get the language.
0199      * @return the language
0200      */
0201     QString language() const;
0202 
0203     /**
0204      * @brief Set the language.
0205      * @param language
0206      */
0207     void setLanguage(const QString& language);
0208 
0209     /**
0210      * @brief Get the fallBack8bitEncoding.
0211      * @return the fallBack8bitEncoding
0212      */
0213     QString fallBack8bitEncoding() const;
0214 
0215     /**
0216      * @brief Set the fallBack8bitEncoding.
0217      * @param fallBack8bitEncoding
0218      */
0219     void setFallBack8bitEncoding(const QString& fallBack8bitEncoding);
0220 
0221     /**
0222      * @brief Get the writeApi.
0223      * @return the writeApi
0224      */
0225     QString writeApi() const;
0226 
0227     /**
0228      * @brief Set the writeApi.
0229      * @param writeApi
0230      */
0231     void setWriteApi(const QString& writeApi);
0232 
0233     /**
0234      * @brief Get the timeZone.
0235      * @return the timeZone
0236      */
0237     QString timeZone() const;
0238 
0239     /**
0240      * @brief Set the timeZone.
0241      * @param timeZone
0242      */
0243     void setTimeZone(const QString& timeZone);
0244 
0245     /**
0246      * @brief Get the timeOffset.
0247      * @return the timeOffset
0248      */
0249     QString timeOffset() const;
0250 
0251     /**
0252      * @brief Set the timeOffset.
0253      * @param timeOffset
0254      */
0255     void setTimeOffset(const QString& timeOffset);
0256 
0257     /**
0258      * @brief Get the path of the article.
0259      * @return the path of the article
0260      */
0261     QString articlePath() const;
0262 
0263     /**
0264      * @brief Set the path of the article.
0265      * @param articlePath the path of the article
0266      */
0267     void setArticlePath(const QString& articlePath);
0268 
0269     /**
0270      * @brief Get the path of the script.
0271      * @return the path of the script
0272      */
0273     QString scriptPath() const;
0274 
0275     /**
0276      * @brief Set the path of the script.
0277      * @param scriptPath the path of the script
0278      */
0279     void setScriptPath(const QString& scriptPath);
0280 
0281     /**
0282      * @brief Get the path of the script file.
0283      * @return the path of the script file
0284      */
0285     QString script() const;
0286 
0287     /**
0288      * @brief Set the path of the script file.
0289      * @param script the path of the script file
0290      */
0291     void setScript(const QString& script);
0292 
0293     /**
0294      * @brief Get the path of the variant article.
0295      * @return the path of the variant article
0296      */
0297     QString variantArticlePath() const;
0298 
0299     /**
0300      * @brief Set the path of the variant article.
0301      * @param variantArticlePath the path of the variant article
0302      */
0303     void setVariantArticlePath(const QString& variantArticlePath);
0304 
0305     /**
0306      * @brief Get the url of the server.
0307      * @return the url of the server
0308      */
0309     QUrl serverUrl() const;
0310 
0311     /**
0312      * @brief Set the url of the server.
0313      * @param serverUrl the url of the server
0314      */
0315     void setServerUrl(const QUrl& serverUrl);
0316 
0317     /**
0318      * @brief Get the id of the wiki.
0319      * @return the id of the wiki
0320      */
0321     QString wikiId() const;
0322 
0323     /**
0324      * @brief Set the id of the wiki.
0325      * @param wikiId the id of the wiki
0326      */
0327     void setWikiId(const QString& wikiId);
0328 
0329     /**
0330      * @brief Get the time.
0331      * @return the time
0332      */
0333     QDateTime time() const;
0334 
0335     /**
0336      * @brief Set the time.
0337      * @param time
0338      */
0339     void setTime(const QDateTime& time);
0340 
0341 private:
0342 
0343     class Private;
0344     Private* const d;
0345 };
0346 
0347 } // namespace MediaWiki
0348 
0349 #endif // DIGIKAM_MEDIAWIKI_GENERALINFO_H