koPictureKey.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __koPictureKey_h__
00021 #define __koPictureKey_h__
00022
00023 #include <qstring.h>
00024 #include <qdatetime.h>
00025
00026 class QDomElement;
00027
00028 namespace KoPictureType
00029 {
00030
00031
00032
00033
00034 const int formatVersionQPicture=-1;
00035
00036 enum Type
00037 {
00038 TypeUnknown = 0,
00039 TypeImage,
00040 TypeEps,
00041 TypeClipart,
00042 TypeWmf
00043 };
00044 }
00045
00046
00047
00055 class KoPictureKey
00056 {
00057 public:
00061 KoPictureKey();
00062
00069 KoPictureKey( const QString &fn, const QDateTime &mod );
00070
00074 KoPictureKey( const QString &fn );
00075
00079 KoPictureKey( const KoPictureKey &key );
00080
00084 KoPictureKey &operator=( const KoPictureKey &key );
00085
00089 bool operator==( const KoPictureKey &key ) const;
00090
00094 bool operator<( const KoPictureKey &key ) const;
00095
00099 QString toString() const;
00100
00104 void saveAttributes( QDomElement &elem ) const;
00105
00109 void loadAttributes( const QDomElement &elem );
00110
00114 QString filename() const { return m_filename; }
00115
00119 QDateTime lastModified() const { return m_lastModified; }
00120
00124 void setKeyFromFile (const QString& filename);
00125
00126 protected:
00127 QString m_filename;
00128 QDateTime m_lastModified;
00129 };
00130
00131 #endif
This file is part of the documentation for lib Library Version 1.3.5.