• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

libs/libkipi/libkipi

  • sources
  • kde-4.14
  • kdegraphics
  • libs
  • libkipi
  • libkipi
imageinfo.cpp
Go to the documentation of this file.
1 
32 // Local includes
33 
34 #include "imageinfo.h"
35 #include "imageinfoshared.h"
36 
37 namespace KIPI
38 {
39 
40 ImageInfo::ImageInfo(ImageInfoShared* const shared)
41  : d(shared)
42 {
43 }
44 
45 ImageInfo::ImageInfo(const ImageInfo& rhs)
46 {
47  d = rhs.d;
48  d->addRef();
49 }
50 
51 ImageInfo::ImageInfo()
52 {
53  d = 0;
54 }
55 
56 ImageInfo::~ImageInfo()
57 {
58  d->removeRef();
59 }
60 
61 ImageInfo& ImageInfo::operator=(const ImageInfo&)
62 {
63  return *this;
64 }
65 
66 QMap<QString,QVariant> ImageInfo::attributes() const
67 {
68  return d->attributes();
69 }
70 
71 void ImageInfo::addAttributes(const QMap<QString,QVariant>& attributes)
72 {
73  d->addAttributes( attributes );
74 }
75 
76 void ImageInfo::delAttributes(const QStringList& attributes)
77 {
78  d->delAttributes(attributes);
79 }
80 
81 void ImageInfo::clearAttributes()
82 {
83  d->clearAttributes();
84 }
85 
86 void ImageInfo::cloneData(const ImageInfo& other)
87 {
88  d->cloneData(other.d);
89 }
90 
91 KUrl ImageInfo::url() const
92 {
93  return d->url();
94 }
95 
96 } // namespace KIPI
KIPI::ImageInfo::delAttributes
void delAttributes(const QStringList &)
Remove attributes listed from the image.
Definition: imageinfo.cpp:76
KIPI::ImageInfoShared::addAttributes
virtual void addAttributes(const QMap< QString, QVariant > &)=0
KIPI::ImageInfo::cloneData
void cloneData(const ImageInfo &other)
Copies all the attributes from the other imageinfo.
Definition: imageinfo.cpp:86
KIPI::ImageInfo::~ImageInfo
~ImageInfo()
Definition: imageinfo.cpp:56
QMap
imageinfo.h
===========================================================This file is a part of digiKam project htt...
KIPI::ImageInfoShared::delAttributes
virtual void delAttributes(const QStringList &)=0
KIPI::ImageInfo
Holds info about an image from KIPI host application.
Definition: imageinfo.h:63
imageinfoshared.h
===========================================================This file is a part of digiKam project htt...
KIPI::ImageInfoShared::attributes
virtual QMap< QString, QVariant > attributes()=0
These methods must be re-implemented in your KIPI host application to manage image attributes with pl...
KIPI::ImageInfo::addAttributes
void addAttributes(const QMap< QString, QVariant > &)
Set the attributes defined from the map to the image.
Definition: imageinfo.cpp:71
KIPI::ImageInfoShared::url
KUrl url() const
Definition: imageinfoshared.cpp:96
KIPI::ImageInfoShared::cloneData
virtual void cloneData(ImageInfoShared *const other)
Definition: imageinfoshared.cpp:101
KIPI::ImageInfo::attributes
QMap< QString, QVariant > attributes() const
Returns a Map of attributes of the image.
Definition: imageinfo.cpp:66
QStringList
KIPI::ImageInfoShared
See ImageInfo documentation for details.
Definition: imageinfoshared.h:62
KIPI::ImageInfo::clearAttributes
void clearAttributes()
Remove all attribute from the image.
Definition: imageinfo.cpp:81
KIPI::ImageInfoShared::clearAttributes
virtual void clearAttributes()=0
KIPI::ImageInfo::url
KUrl url() const
Return item url.
Definition: imageinfo.cpp:91
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:19:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libs/libkipi/libkipi

Skip menu "libs/libkipi/libkipi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal