• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

KTNEF Library

  • sources
  • kde-4.12
  • kdepimlibs
  • ktnef
ktnefattach.h
Go to the documentation of this file.
1 /*
2  ktnefattach.h
3 
4  Copyright (C) 2002 Michael Goffioul <kdeprint@swing.be>
5 
6  This file is part of KTNEF, the KDE TNEF support library/program.
7 
8  This library is free software; you can redistribute it and/or
9  modify it under the terms of the GNU Library General Public
10  License as published by the Free Software Foundation; either
11  version 2 of the License, or (at your option) any later version.
12 
13  This library is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  Library General Public License for more details.
17 
18  You should have received a copy of the GNU Library General Public License
19  along with this library; see the file COPYING.LIB. If not, write to
20  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21  Boston, MA 02110-1301, USA.
22  */
31 #ifndef KTNEFATTACH_H
32 #define KTNEFATTACH_H
33 
34 #include <QtCore/QMap>
35 #include <QtCore/QString>
36 #include <QtCore/QVariant>
37 
38 #include "ktnefpropertyset.h"
39 #include "ktnef_export.h"
40 
41 namespace KTnef {
42  class KTNEFProperty;
43 }
44 
45 namespace KTnef {
46 
51 class KTNEF_EXPORT KTNEFAttach : public KTNEFPropertySet
52 {
53  public:
57  enum ParseState {
58  Unparsed = 0x0000,
59  TitleParsed = 0x0001,
60  DataParsed = 0x0002,
61  InfoParsed = 0x0004
62  };
63 
67  KTNEFAttach();
68 
72  ~KTNEFAttach();
73 
77  void setTitleParsed();
78 
82  void setDataParsed();
83 
87  void unsetDataParser();
88 
92  void setInfoParsed();
93 
97  bool titleParsed() const;
98 
102  bool dataParsed() const;
103 
107  bool infoParsed() const;
108 
116  bool checkState( int state ) const;
117 
123  void setOffset( int offset );
124 
128  int offset() const;
129 
135  void setSize( int size );
136 
140  int size() const;
141 
147  void setDisplaySize( int size );
148 
152  int displaySize() const;
153 
159  void setName( const QString &str );
160 
164  QString name() const;
165 
171  void setIndex( int indx );
172 
176  int index() const;
177 
183  void setFileName( const QString &str );
184 
188  QString fileName() const;
189 
195  void setDisplayName( const QString &str );
196 
200  QString displayName() const;
201 
207  void setMimeTag( const QString &str );
208 
212  QString mimeTag() const;
213 
219  void setExtension( const QString &str );
220 
224  QString extension() const;
225 
226  private:
227  //@cond PRIVATE
228  class AttachPrivate;
229  AttachPrivate *const d;
230  //@endcond
231 
232  Q_DISABLE_COPY( KTNEFAttach )
233 };
234 
235 }
236 #endif
KTnef::KTNEFPropertySet
Interface for setting MAPI properties and TNEF attributes.
Definition: ktnefpropertyset.h:48
KTnef::KTNEFAttach
Represents a TNEF attachment.
Definition: ktnefattach.h:51
KTnef::KTNEFAttach::ParseState
ParseState
The different attachment parsed states.
Definition: ktnefattach.h:57
ktnefpropertyset.h
This file is part of the API for handling TNEF data and defines the KTNEFPropertySet class...
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTNEF Library

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal