lib Library API Documentation

koPictureKey.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002    Copyright (c) 2001 Simon Hausmann <hausmann@kde.org>
00003    Copyright (C) 2002, 2004 Nicolas GOUTTE <goutte@kde.org>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Library General Public License for more details.
00014 
00015    You should have received a copy of the GNU Library General Public License
00016    along with this library; see the file COPYING.LIB.  If not, write to
00017    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00018    Boston, MA 02111-1307, USA.
00019 */
00020 #ifndef __koPictureKey_h__
00021 #define __koPictureKey_h__
00022 
00023 #include <qstring.h>
00024 #include <qdatetime.h>
00025 #include <koffice_export.h>
00031 class QDomElement;
00032 
00033 namespace KoPictureType
00034 {
00044     const int formatVersionQPicture=-1;
00045 
00046     enum Type
00047     {
00048         TypeUnknown = 0,    
00049         TypeImage,          
00050         TypeEps,            
00051         TypeClipart,        
00052         TypeWmf             
00053     };
00054 }
00055 
00075 class KOFFICEUI_EXPORT KoPictureKey
00076 {
00077 public:
00081     KoPictureKey();
00082 
00090     KoPictureKey( const QString &fn, const QDateTime &mod );
00091 
00096     KoPictureKey( const QString &fn );
00097 
00101     KoPictureKey( const KoPictureKey &key );
00102 
00106     KoPictureKey &operator=( const KoPictureKey &key );
00107 
00111     bool operator==( const KoPictureKey &key ) const;
00112 
00117     bool operator<( const KoPictureKey &key ) const;
00118 
00122     QString toString() const;
00123 
00127     void saveAttributes( QDomElement &elem ) const;
00128 
00132     void loadAttributes( const QDomElement &elem );
00133 
00137     QString filename() const { return m_filename; }
00138 
00142     QDateTime lastModified() const { return m_lastModified; }
00143 
00147     void setKeyFromFile (const QString& filename);
00148 
00149 protected:
00150     QString m_filename;
00151     QDateTime m_lastModified;
00152 };
00153 
00154 #endif /* __koPictureKey_h__ */
KDE Logo
This file is part of the documentation for lib Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:40:04 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003