imageinfo.h

Go to the documentation of this file.
00001 /* ============================================================
00002  * File  : imageinfo.h
00003  * Author: KIPI team developers (see AUTHORS files for details)
00004  * Date  : 2004-07-22
00005  * Description : 
00006  * 
00007  * Copyright 2004 by the KIPI team
00008  *
00009  * This program is free software; you can redistribute it
00010  * and/or modify it under the terms of the GNU Library General
00011  * Public License as published by the Free Software Foundation;
00012  * either version 2, or (at your option)
00013  * any later version.
00014  * 
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU Library General Public License for more details.
00019  * 
00020  * ============================================================ */
00021 
00024 #ifndef KIPI_IMAGEINFO_H
00025 #define KIPI_IMAGEINFO_H
00026 #include <kurl.h>
00027 #include <qstring.h>
00028 #include <qdatetime.h>
00029 #include <qmap.h>
00030 #include <qvariant.h>
00031 #include "libkipi/libkipi_export.h"
00032 
00033 namespace KIPI
00034 {
00035     class ImageInfoShared;
00036     enum TimeSpec { FromInfo, ToInfo };
00037 
00041     class LIBKIPI_EXPORT ImageInfo
00042     {
00043     public:
00044         QString title() const;
00045         void setTitle( const QString& name );
00046 
00047         QString description() const;
00048         void setDescription( const QString& description);
00049 
00050         QMap<QString,QVariant> attributes() const;
00051         void clearAttributes();
00052         void addAttributes( const QMap<QString,QVariant>& );
00053 
00054         KURL path() const;
00055         QDateTime time( TimeSpec spec = FromInfo ) const;
00056         void setTime( const QDateTime& time, TimeSpec spec = FromInfo );
00057         bool isTimeExact() const;
00058         int size() const;
00059 
00060         int angle() const;
00061         void setAngle( int );
00062 
00063         QString toString( const QVariant& ) const;
00064 
00065         void cloneData( const ImageInfo& other );
00066 
00070         ImageInfo( ImageInfoShared* );
00071         ImageInfo( const ImageInfo& );
00072         ~ImageInfo();
00073 
00074     private:
00075         ImageInfo() {} // Disabled
00076         ImageInfo& operator=( const ImageInfo& ) { return *this; } // Disabled
00077         mutable KIPI::ImageInfoShared* _data;
00078     };
00079 }
00080 
00081 #endif /* KIPI_IMAGEINFO_H */
00082 

Generated on Mon Nov 27 23:42:22 2006 for libKipi by  doxygen 1.5.0