KTnef::KTNEFAttach

Search for usage in LXR

KTnef::KTNEFAttach Class Reference

#include <ktnefattach.h>

Inheritance diagram for KTnef::KTNEFAttach:

Public Types

enum  ParseState { Unparsed = 0x0000 , TitleParsed = 0x0001 , DataParsed = 0x0002 , InfoParsed = 0x0004 }
 

Public Member Functions

 KTNEFAttach ()
 
 ~KTNEFAttach ()
 
bool checkState (int state) const
 
bool dataParsed () const
 
QString displayName () const
 
int displaySize () const
 
QString extension () const
 
QString fileName () const
 
int index () const
 
bool infoParsed () const
 
QString mimeTag () const
 
QString name () const
 
int offset () const
 
void setDataParsed ()
 
void setDisplayName (const QString &str)
 
void setDisplaySize (int size)
 
void setExtension (const QString &str)
 
void setFileName (const QString &str)
 
void setIndex (int indx)
 
void setInfoParsed ()
 
void setMimeTag (const QString &str)
 
void setName (const QString &str)
 
void setOffset (int offset)
 
void setSize (int size)
 
void setTitleParsed ()
 
int size () const
 
bool titleParsed () const
 
void unsetDataParser ()
 
- Public Member Functions inherited from KTnef::KTNEFPropertySet
 KTNEFPropertySet ()
 
 ~KTNEFPropertySet ()
 
void addAttribute (int key, int type, const QVariant &value, bool overwrite=false)
 
void addProperty (int key, int type, const QVariant &value, const QVariant &name=QVariant(), bool overwrite=false)
 
QVariant attribute (int key) const
 
QMap< int, KTNEFProperty * > & attributes ()
 
const QMap< int, KTNEFProperty * > & attributes () const
 
void clear (bool deleteAll=false)
 
QString findNamedProp (const QString &name, const QString &fallback=QString(), bool convertToUpper=false) const
 
QString findProp (int key, const QString &fallback=QString(), bool convertToUpper=false) const
 
QMap< int, KTNEFProperty * > & properties ()
 
const QMap< int, KTNEFProperty * > & properties () const
 
QVariant property (int key) const
 

Detailed Description

Represents a TNEF attachment.

Definition at line 37 of file ktnefattach.h.

Member Enumeration Documentation

◆ ParseState

The different attachment parsed states.

Enumerator
Unparsed 

Unparsed.

TitleParsed 

The title is parsed.

DataParsed 

The data is parsed.

InfoParsed 

The info is parsed.

Definition at line 43 of file ktnefattach.h.

Constructor & Destructor Documentation

◆ KTNEFAttach()

KTNEFAttach::KTNEFAttach ( )

Constructs a TNEF attachment.

Private class that helps to provide binary compatibility between releases.

Definition at line 43 of file ktnefattach.cpp.

◆ ~KTNEFAttach()

KTNEFAttach::~KTNEFAttach ( )
default

Destroys the TNEF attachment.

Member Function Documentation

◆ checkState()

bool KTNEFAttach::checkState ( int state) const
nodiscard

Sets/Unsets the attachment state according to the state flag must be a ParseState type.

Parameters
statea ParseState type.
Returns
true if the state is turned-on; else returns false.

Definition at line 90 of file ktnefattach.cpp.

◆ dataParsed()

bool KTNEFAttach::dataParsed ( ) const
nodiscard

Returns true if the ParseState::DataParsed flag is set; else returns false.

Definition at line 80 of file ktnefattach.cpp.

◆ displayName()

QString KTNEFAttach::displayName ( ) const
nodiscard

Returns the display name of the attachment.

Definition at line 158 of file ktnefattach.cpp.

◆ displaySize()

int KTNEFAttach::displaySize ( ) const
nodiscard

Returns the display size of the attachment.

Definition at line 116 of file ktnefattach.cpp.

◆ extension()

QString KTNEFAttach::extension ( ) const
nodiscard

Returns the filename extension of the attachment.

Definition at line 178 of file ktnefattach.cpp.

◆ fileName()

QString KTNEFAttach::fileName ( ) const
nodiscard

Returns the filename of the attachment.

Definition at line 148 of file ktnefattach.cpp.

◆ index()

int KTNEFAttach::index ( ) const
nodiscard

Returns the index of the attachment.

Definition at line 137 of file ktnefattach.cpp.

◆ infoParsed()

bool KTNEFAttach::infoParsed ( ) const
nodiscard

Returns true if the InfoParsed flag is set; else returns false.

Definition at line 85 of file ktnefattach.cpp.

◆ mimeTag()

QString KTNEFAttach::mimeTag ( ) const
nodiscard

Returns the MIME tag of the attachment.

Definition at line 168 of file ktnefattach.cpp.

◆ name()

QString KTNEFAttach::name ( ) const
nodiscard

Returns the name of the attachment.

Definition at line 126 of file ktnefattach.cpp.

◆ offset()

int KTNEFAttach::offset ( ) const
nodiscard

Returns the offset value of the attachment.

Definition at line 95 of file ktnefattach.cpp.

◆ setDataParsed()

void KTNEFAttach::setDataParsed ( )

Sets the DataParsed flag for this attachment.

Definition at line 60 of file ktnefattach.cpp.

◆ setDisplayName()

void KTNEFAttach::setDisplayName ( const QString & str)

Sets the display name of this attachment to str.

Parameters
stris the attachment display name to set.

Definition at line 163 of file ktnefattach.cpp.

◆ setDisplaySize()

void KTNEFAttach::setDisplaySize ( int size)

Sets the display size of the attachment to size.

Parameters
sizeis the attachment display size to set.

Definition at line 121 of file ktnefattach.cpp.

◆ setExtension()

void KTNEFAttach::setExtension ( const QString & str)

Sets the filename extension of this attachment to str.

Parameters
stris the attachment filename extension to set.

Definition at line 183 of file ktnefattach.cpp.

◆ setFileName()

void KTNEFAttach::setFileName ( const QString & str)

Sets the filename of this attachment to str.

Parameters
stris the attachment filename to set.

Definition at line 153 of file ktnefattach.cpp.

◆ setIndex()

void KTNEFAttach::setIndex ( int indx)

Sets the index of this attachment to indx.

Parameters
indxis the attachment index to set.

Definition at line 142 of file ktnefattach.cpp.

◆ setInfoParsed()

void KTNEFAttach::setInfoParsed ( )

Sets the InfoParsed flag for this attachment.

Definition at line 70 of file ktnefattach.cpp.

◆ setMimeTag()

void KTNEFAttach::setMimeTag ( const QString & str)

Sets the MIME tag of this attachment to str.

Parameters
stris the attachment MIME tag to set.

Definition at line 173 of file ktnefattach.cpp.

◆ setName()

void KTNEFAttach::setName ( const QString & str)

Sets the name of this attachment to str.

Parameters
stris attachment name to set.

Definition at line 131 of file ktnefattach.cpp.

◆ setOffset()

void KTNEFAttach::setOffset ( int offset)

Sets the offset value of this attachment to offset.

Parameters
offsetis the attachment offset to set.

Definition at line 100 of file ktnefattach.cpp.

◆ setSize()

void KTNEFAttach::setSize ( int size)

Sets the size of the attachment to size.

Parameters
sizeis the attachment size to set.

Definition at line 111 of file ktnefattach.cpp.

◆ setTitleParsed()

void KTNEFAttach::setTitleParsed ( )

Sets the TitleParsed flag for this attachment.

Definition at line 55 of file ktnefattach.cpp.

◆ size()

int KTNEFAttach::size ( ) const
nodiscard

Returns the size of the attachment.

Definition at line 106 of file ktnefattach.cpp.

◆ titleParsed()

bool KTNEFAttach::titleParsed ( ) const
nodiscard

Returns true if the TitleParsed flag is set; else returns false.

Definition at line 75 of file ktnefattach.cpp.

◆ unsetDataParser()

void KTNEFAttach::unsetDataParser ( )

Unsets the DataParsed flag for this attachment.

Definition at line 65 of file ktnefattach.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.