• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KTNEF Library

ktnefattach.h

Go to the documentation of this file.
00001 /*
00002     ktnefattach.h
00003 
00004     Copyright (C) 2002 Michael Goffioul <kdeprint@swing.be>
00005 
00006     This file is part of KTNEF, the KDE TNEF support library/program.
00007 
00008     This library is free software; you can redistribute it and/or
00009     modify it under the terms of the GNU Library General Public
00010     License as published by the Free Software Foundation; either
00011     version 2 of the License, or (at your option) any later version.
00012 
00013     This library is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016     Library General Public License for more details.
00017 
00018     You should have received a copy of the GNU Library General Public License
00019     along with this library; see the file COPYING.LIB.  If not, write to
00020     the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00021     Boston, MA 02110-1301, USA.
00022  */
00031 #ifndef KTNEFATTACH_H
00032 #define KTNEFATTACH_H
00033 
00034 #include <QtCore/QMap>
00035 #include <QtCore/QString>
00036 #include <QtCore/QVariant>
00037 
00038 #include "ktnefpropertyset.h"
00039 #include "ktnef_export.h"
00040 
00041 namespace KTnef { class KTNEFProperty; }
00042 
00043 namespace KTnef {
00044 
00049 class KTNEF_EXPORT KTNEFAttach : public KTNEFPropertySet
00050 {
00051 public:
00055   enum ParseState {
00056     Unparsed = 0x0000,    
00057     TitleParsed = 0x0001, 
00058     DataParsed = 0x0002,  
00059     InfoParsed = 0x0004   
00060   };
00061 
00065   KTNEFAttach();
00066 
00070   ~KTNEFAttach();
00071 
00075   void setTitleParsed();
00076 
00080   void setDataParsed();
00081 
00085   void unsetDataParser();
00086 
00090   void setInfoParsed();
00091 
00095   bool titleParsed() const;
00096 
00100   bool dataParsed() const;
00101 
00105   bool infoParsed() const;
00106 
00114   bool checkState( int state ) const;
00115 
00121   void setOffset( int offset );
00122 
00126   int offset() const;
00127 
00133   void setSize( int size );
00134 
00138   int size() const;
00139 
00145   void setDisplaySize( int size );
00146 
00150   int displaySize() const;
00151 
00157   void setName( const QString &str );
00158 
00162   QString name() const;
00163 
00169   void setIndex( int indx );
00170 
00174   int index() const;
00175 
00181   void setFileName( const QString &str );
00182 
00186   QString fileName() const;
00187 
00193   void setDisplayName( const QString &str );
00194 
00198   QString displayName() const;
00199 
00205   void setMimeTag( const QString &str );
00206 
00210   QString mimeTag() const;
00211 
00217   void setExtension( const QString &str );
00218 
00222   QString extension() const;
00223 
00224 private:
00225   //@cond PRIVATE
00226   class AttachPrivate;
00227   AttachPrivate *const d;
00228   //@endcond
00229 
00230   Q_DISABLE_COPY( KTNEFAttach )
00231 };
00232 
00233 }
00234 #endif

KTNEF Library

Skip menu "KTNEF Library"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal