libKipi
imageinfo.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of kipi-plugins project
4  * http://www.kipi-plugins.org
5  *
6  * Date : 2004-07-22
7  * Description : image info.
8  *
9  * Copyright (C) 2004-2007 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  * Copyright (C) 2004-2005 by Renchi Raju <renchi.raju at kdemail.net>
11  * Copyright (C) 2004-2005 by Jesper K. Pedersen <blackie at kde.org>
12  * Copyright (C) 2004-2005 by Aurelien Gateau <aurelien dot gateau at free.fr>
13  *
14  * This program is free software; you can redistribute it
15  * and/or modify it under the terms of the GNU General
16  * Public License as published by the Free Software Foundation;
17  * either version 2, or (at your option) any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
28 #ifndef KIPI_IMAGEINFO_H
29 #define KIPI_IMAGEINFO_H
30 
31 // Qt includes.
32 
33 #include <qstring.h>
34 #include <qdatetime.h>
35 #include <qmap.h>
36 #include <qvariant.h>
37 
38 // KDE includes.
39 
40 #include <kurl.h>
41 
42 // Local includes.
43 
44 #include "libkipi/libkipi_export.h"
45 
46 namespace KIPI
47 {
48  class ImageInfoShared;
50 
55  {
56 
57  public:
58 
59  QString title() const;
60  void setTitle( const QString& name );
61 
62  QString description() const;
63  void setDescription( const QString& description);
64 
65  QMap<QString,QVariant> attributes() const;
66  void clearAttributes();
67  void addAttributes( const QMap<QString,QVariant>& );
68 
69  KURL path() const;
70  QDateTime time( TimeSpec spec = FromInfo ) const;
71  void setTime( const QDateTime& time, TimeSpec spec = FromInfo );
72  bool isTimeExact() const;
73  int size() const;
74 
75  int angle() const;
76  void setAngle( int );
77 
78  QString toString( const QVariant& ) const;
79 
80  void cloneData( const ImageInfo& other );
81 
86  ImageInfo( const ImageInfo& );
87  ~ImageInfo();
88 
89  private:
90 
91  ImageInfo() {} // Disabled
92  ImageInfo& operator=( const ImageInfo& ) { return *this; } // Disabled
93  mutable KIPI::ImageInfoShared* _data;
94  };
95 }
96 
97 #endif /* KIPI_IMAGEINFO_H */
98 
Definition: batchprogressdialog.cpp:69
#define LIBKIPI_EXPORT
Definition: libkipi_export.h:35
Definition: imageinfo.h:54
TimeSpec
Definition: imageinfo.h:49
Definition: imageinfo.h:49
Definition: imageinfoshared.h:49
Definition: imageinfo.h:49