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

KTNEF Library

ktnefproperty.h

Go to the documentation of this file.
00001 /*
00002     ktnefproperty.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 KTNEFPROPERTY_H
00032 #define KTNEFPROPERTY_H
00033 
00034 #include <QtCore/QVariant>
00035 #include <QtCore/QString>
00036 #include "ktnef_export.h"
00037 
00038 namespace KTnef {
00039 
00044 class KTNEF_EXPORT KTNEFProperty
00045 {
00046   public:
00050     enum MAPIType {
00051       UInt16  = 0x0002, 
00052       ULong   = 0x0003, 
00053       Float   = 0x0004, 
00054       Double  = 0x0005, 
00055       Boolean = 0x000B, 
00056       Object  = 0x000D, 
00057       Time    = 0x0040, 
00058       String8 = 0x001E, 
00059       UString = 0x001F, 
00060       Binary  = 0x0102  
00061     };
00062 
00066     KTNEFProperty();
00067 
00076     KTNEFProperty( int key_, int type_, const QVariant &value_,
00077                    const QVariant &name_ = QVariant() );
00078 
00084     KTNEFProperty( const KTNEFProperty &p );
00085 
00089     ~KTNEFProperty();
00090 
00091     KTNEFProperty &operator=( const KTNEFProperty &other );
00092 
00098     QString keyString() const;
00099 
00105     QString valueString() const;
00106 
00115     static QString formatValue( const QVariant &v, bool beautify=true );
00116 
00122     int key() const;
00123 
00129     int type() const;
00130 
00136     QVariant value() const;
00137 
00143     QVariant name() const;
00144 
00150     bool isVector() const;
00151 
00152   private:
00153     //@cond PRIVATE
00154     class Private;
00155     Private *const d;
00156     //@endcond
00157 };
00158 
00159 }
00160 #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"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7.1
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