You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.8 KiB
71 lines
1.8 KiB
/*
|
|
ktnefattach.h
|
|
|
|
Copyright (C) 2002 Michael Goffioul <tdeprint@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 <kdemacros.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
|