KTnef

ktnefattach.h
Go to the documentation of this file.
1 /*
2  ktnefattach.h
3 
4  SPDX-FileCopyrightText: 2002 Michael Goffioul <[email protected]>
5 
6  This file is part of KTNEF, the KDE TNEF support library/program.
7 
8  SPDX-License-Identifier: LGPL-2.0-or-later
9  */
18 #ifndef KTNEFATTACH_H
19 #define KTNEFATTACH_H
20 
21 #include <QString>
22 
23 #include "ktnefpropertyset.h"
24 #include "ktnef_export.h"
25 
26 namespace KTnef
27 {
28 class KTNEFProperty;
29 }
30 
31 namespace KTnef
32 {
33 
38 class KTNEF_EXPORT KTNEFAttach : public KTNEFPropertySet
39 {
40 public:
44  enum ParseState {
45  Unparsed = 0x0000,
46  TitleParsed = 0x0001,
47  DataParsed = 0x0002,
48  InfoParsed = 0x0004
49  };
50 
54  KTNEFAttach();
55 
59  ~KTNEFAttach();
60 
64  void setTitleParsed();
65 
69  void setDataParsed();
70 
74  void unsetDataParser();
75 
79  void setInfoParsed();
80 
84  Q_REQUIRED_RESULT bool titleParsed() const;
85 
89  Q_REQUIRED_RESULT bool dataParsed() const;
90 
94  Q_REQUIRED_RESULT bool infoParsed() const;
95 
103  Q_REQUIRED_RESULT bool checkState(int state) const;
104 
110  void setOffset(int offset);
111 
115  Q_REQUIRED_RESULT int offset() const;
116 
122  void setSize(int size);
123 
127  Q_REQUIRED_RESULT int size() const;
128 
134  void setDisplaySize(int size);
135 
139  Q_REQUIRED_RESULT int displaySize() const;
140 
146  void setName(const QString &str);
147 
151  Q_REQUIRED_RESULT QString name() const;
152 
158  void setIndex(int indx);
159 
163  Q_REQUIRED_RESULT int index() const;
164 
170  void setFileName(const QString &str);
171 
175  Q_REQUIRED_RESULT QString fileName() const;
176 
182  void setDisplayName(const QString &str);
183 
187  Q_REQUIRED_RESULT QString displayName() const;
188 
194  void setMimeTag(const QString &str);
195 
199  Q_REQUIRED_RESULT QString mimeTag() const;
200 
206  void setExtension(const QString &str);
207 
211  Q_REQUIRED_RESULT QString extension() const;
212 
213 private:
214  //@cond PRIVATE
215  class AttachPrivate;
216  AttachPrivate *const d;
217  //@endcond
218 
219  Q_DISABLE_COPY(KTNEFAttach)
220 };
221 
222 }
223 #endif
Interface for setting MAPI properties and TNEF attributes.
Represents a TNEF attachment.
Definition: ktnefattach.h:38
ParseState
The different attachment parsed states.
Definition: ktnefattach.h:44
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-2021 The KDE developers.
Generated on Tue Jan 19 2021 23:21:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.