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

KTNEF Library

  • 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 { class KTNEFProperty; }
42 
43 namespace KTnef {
44 
49 class KTNEF_EXPORT KTNEFAttach : public KTNEFPropertySet
50 {
51  public:
55  enum ParseState {
56  Unparsed = 0x0000,
57  TitleParsed = 0x0001,
58  DataParsed = 0x0002,
59  InfoParsed = 0x0004
60  };
61 
65  KTNEFAttach();
66 
70  ~KTNEFAttach();
71 
75  void setTitleParsed();
76 
80  void setDataParsed();
81 
85  void unsetDataParser();
86 
90  void setInfoParsed();
91 
95  bool titleParsed() const;
96 
100  bool dataParsed() const;
101 
105  bool infoParsed() const;
106 
114  bool checkState( int state ) const;
115 
121  void setOffset( int offset );
122 
126  int offset() const;
127 
133  void setSize( int size );
134 
138  int size() const;
139 
145  void setDisplaySize( int size );
146 
150  int displaySize() const;
151 
157  void setName( const QString &str );
158 
162  QString name() const;
163 
169  void setIndex( int indx );
170 
174  int index() const;
175 
181  void setFileName( const QString &str );
182 
186  QString fileName() const;
187 
193  void setDisplayName( const QString &str );
194 
198  QString displayName() const;
199 
205  void setMimeTag( const QString &str );
206 
210  QString mimeTag() const;
211 
217  void setExtension( const QString &str );
218 
222  QString extension() const;
223 
224  private:
225  //@cond PRIVATE
226  class AttachPrivate;
227  AttachPrivate *const d;
228  //@endcond
229 
230  Q_DISABLE_COPY( KTNEFAttach )
231 };
232 
233 }
234 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Sep 24 2012 09:10:25 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KTNEF Library

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

kdepimlibs-4.9.1 API Reference

Skip menu "kdepimlibs-4.9.1 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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