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

akonadi

  • Akonadi
  • NoteUtils
  • Attachment
Public Member Functions | List of all members
Akonadi::NoteUtils::Attachment Class Reference

#include <noteutils.h>

Public Member Functions

 Attachment (const Attachment &)
 
 Attachment (const QByteArray &data, const QString &mimetype)
 
 Attachment (const QUrl &url, const QString &mimetype)
 
QByteArray data () const
 
QString label () const
 
QString mimetype () const
 
void operator= (const Attachment &)
 
bool operator== (const Attachment &) const
 
void setLabel (const QString &label)
 
QUrl url () const
 

Detailed Description

An attachment for a note.

Since
4.9

Definition at line 57 of file noteutils.h.

Constructor & Destructor Documentation

◆ Attachment() [1/3]

Akonadi::NoteUtils::Attachment::Attachment ( const QUrl &  url,
const QString &  mimetype 
)

Create an attachment referencing a url only.

Definition at line 76 of file noteutils.cpp.

◆ Attachment() [2/3]

Akonadi::NoteUtils::Attachment::Attachment ( const QByteArray &  data,
const QString &  mimetype 
)

Create an attachment with the content stored inline.

Definition at line 81 of file noteutils.cpp.

◆ Attachment() [3/3]

Akonadi::NoteUtils::Attachment::Attachment ( const Attachment &  other)

Definition at line 86 of file noteutils.cpp.

◆ ~Attachment()

Akonadi::NoteUtils::Attachment::~Attachment ( )

Definition at line 92 of file noteutils.cpp.

Member Function Documentation

◆ data()

QByteArray Akonadi::NoteUtils::Attachment::data ( ) const

Returns the date for inline attachments.

Definition at line 121 of file noteutils.cpp.

◆ label()

QString Akonadi::NoteUtils::Attachment::label ( ) const

Returns the label of the attachment.

Definition at line 139 of file noteutils.cpp.

◆ mimetype()

QString Akonadi::NoteUtils::Attachment::mimetype ( ) const

Returns the mimetype.

Definition at line 127 of file noteutils.cpp.

◆ operator=()

void Akonadi::NoteUtils::Attachment::operator= ( const Attachment &  a)

Definition at line 110 of file noteutils.cpp.

◆ operator==()

bool Akonadi::NoteUtils::Attachment::operator== ( const Attachment &  a) const

Definition at line 97 of file noteutils.cpp.

◆ setLabel()

void Akonadi::NoteUtils::Attachment::setLabel ( const QString &  label)

Sets the label to be presented to the user.

Definition at line 133 of file noteutils.cpp.

◆ url()

QUrl Akonadi::NoteUtils::Attachment::url ( ) const

Returns the url for url-only attachments.

Definition at line 115 of file noteutils.cpp.


The documentation for this class was generated from the following files:
  • noteutils.h
  • noteutils.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • 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