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 Ludovic Delfau <ludovicdelfau at gmail dot com>
0011  * SPDX-FileCopyrightText: 2011      by Paolo de Vathaire <paolo dot devathaire at gmail dot com>
0012  *
0013  * SPDX-License-Identifier: GPL-2.0-or-later
0014  *
0015  * ============================================================ */
0016 
0017 #ifndef DIGIKAM_MEDIAWIKI_IMAGE_H
0018 #define DIGIKAM_MEDIAWIKI_IMAGE_H
0019 
0020 // Qt includes
0021 
0022 #include <QString>
0023 
0024 namespace MediaWiki
0025 {
0026 
0027 /**
0028  * @brief A image.
0029  */
0030 class Image
0031 {
0032 public:
0033 
0034     /**
0035      * @brief Constructs a image.
0036      */
0037     Image();
0038 
0039     /**
0040      * @brief Constructs an image from an other image.
0041      * @param other an other image
0042      */
0043     Image(const Image& other);
0044 
0045     /**
0046      * @brief Destructs an image.
0047      */
0048     ~Image();
0049 
0050     /**
0051      * @brief Assigning an image from an other image.
0052      * @param other an other image
0053      */
0054     Image& operator=(const Image& other);
0055 
0056     /**
0057      * @brief Returns true if this instance and other are equal, else false.
0058      * @param other instance to compare
0059      * @return true if there are equal, else false
0060      */
0061     bool operator==(const Image& other)     const;
0062 
0063     /**
0064      * @brief Returns the namespace id of the image.
0065      * @return the namespace id of the image
0066      */
0067     qint64 namespaceId()                    const;
0068 
0069     /**
0070      * @brief Set the namespace id.
0071      * @param namespaceId the namespace id of the image
0072      */
0073     void setNamespaceId(qint64 namespaceId);
0074 
0075     /**
0076      * @brief Returns the title of the image.
0077      * @return the title of the image
0078      */
0079     QString title()                         const;
0080 
0081     /**
0082      * @brief Set the title.
0083      * @param title the title of the image
0084      */
0085     void setTitle(const QString& title);
0086 
0087 private:
0088 
0089     class Private;
0090     Private* const d;
0091 };
0092 
0093 } // namespace MediaWiki
0094 
0095 #endif // DIGIKAM_MEDIAWIKI_IMAGE_H