blob: f7f9f0862122cfdf4c5a9b357ddd4903cd7f5bfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
/*
ktnefattach.h
Copyright (C) 2002 Michael Goffioul <kdeprint@swing.be>
This file is part of KTNEF, the KDE TNEF support library/program.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef KTNEFATTACH_H
#define KTNEFATTACH_H
#include <tqstring.h>
#include <tqmap.h>
#include <tqvariant.h>
#include <ktnef/ktnefpropertyset.h>
#include <kdepimmacros.h>
class KTNEFProperty;
class KDE_EXPORT KTNEFAttach : public KTNEFPropertySet
{
public:
enum ParseState { Unparsed = 0x0000, TitleParsed = 0x0001, DataParsed = 0x0002, InfoParsed = 0x0004};
KTNEFAttach();
~KTNEFAttach();
void setTitleParsed();
void setDataParsed();
void unsetDataParser();
void setInfoParsed();
bool titleParsed() const;
bool dataParsed() const;
bool infoParsed() const;
bool checkState(int state) const;
int offset() const;
void setOffset(int n);
int size() const;
void setSize(int s);
int displaySize() const;
void setDisplaySize(int s);
TQString name() const;
void setName(const TQString& str);
int index() const;
void setIndex(int i);
TQString fileName() const;
void setFileName(const TQString& str);
TQString displayName() const;
void setDisplayName(const TQString& str);
TQString mimeTag() const;
void setMimeTag(const TQString& str);
TQString extension() const;
void setExtension(const TQString& str);
private:
class AttachPrivate;
AttachPrivate *d;
};
#endif
|