• Skip to content
  • Skip to link menu
KDE 4.0 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   {
00052     UInt16  = 0x0002, 
00053     ULong   = 0x0003, 
00054     Float   = 0x0004, 
00055     Double  = 0x0005, 
00056     Boolean = 0x000B, 
00057     Object  = 0x000D, 
00058     Time    = 0x0040, 
00059     String8 = 0x001E, 
00060     UString = 0x001F, 
00061     Binary  = 0x0102  
00062   };
00063 
00067   KTNEFProperty();
00068 
00077   KTNEFProperty( int key_, int type_, const QVariant &value_,
00078                  const QVariant &name_ = QVariant() );
00079 
00085   KTNEFProperty( const KTNEFProperty &p );
00086 
00090   ~KTNEFProperty();
00091 
00092   KTNEFProperty& operator=( const KTNEFProperty &other );
00093 
00099   QString keyString() const;
00100 
00106   QString valueString() const;
00107 
00116   static QString formatValue( const QVariant &v, bool beautify=true );
00117 
00123   int key() const;
00124 
00130   int type() const;
00131 
00137   QVariant value() const;
00138 
00144   QVariant name() const;
00145 
00151   bool isVector() const;
00152 
00153 private:
00154   //@cond PRIVATE
00155   class Private;
00156   Private* const d;
00157   //@endcond
00158 };
00159 
00160 }
00161 #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