KIMAP2::FetchJob

Search for usage in LXR

#include <fetchjob.h>

Classes

class  FetchScope
 

Signals

void resultReceived (const Result &)
 

Public Member Functions

 FetchJob (Session *session)
 
bool isUidBased () const
 
FetchScope scope () const
 
ImapSet sequenceSet () const
 
void setAvoidParsing (bool)
 
void setScope (const FetchScope &scope)
 
void setSequenceSet (const ImapSet &set)
 
void setUidBased (bool uidBased)
 

Protected Member Functions

void doStart () override
 
void handleResponse (const Message &response) override
 

Detailed Description

Fetch message data from the server.

All data is returned using the signals, so you need to connect to the relevant signal (or all of them) before starting the job.

This job will always use BODY.PEEK rather than BODY to fetch message content, so it will not set the \Seen flag.

This job can only be run when the session is in the selected state.

Definition at line 59 of file fetchjob.h.

Constructor & Destructor Documentation

◆ FetchJob()

FetchJob::FetchJob ( Session * session)
explicit

Definition at line 70 of file fetchjob.cpp.

◆ ~FetchJob()

FetchJob::~FetchJob ( )
virtual

Definition at line 75 of file fetchjob.cpp.

Member Function Documentation

◆ doStart()

void FetchJob::doStart ( )
overrideprotected

Definition at line 122 of file fetchjob.cpp.

◆ handleResponse()

void FetchJob::handleResponse ( const Message & response)
overrideprotected

Definition at line 196 of file fetchjob.cpp.

◆ isUidBased()

bool FetchJob::isUidBased ( ) const

How to interpret the sequence set.

Returns
if true the result of sequenceSet() should be interpreted as UIDs, if false it should be interpreted as sequence numbers

Definition at line 104 of file fetchjob.cpp.

◆ scope()

FetchJob::FetchScope FetchJob::scope ( ) const

Specifies what data will be fetched.

Definition at line 116 of file fetchjob.cpp.

◆ sequenceSet()

ImapSet FetchJob::sequenceSet ( ) const

The messages that will be fetched.

Definition at line 92 of file fetchjob.cpp.

◆ setAvoidParsing()

void FetchJob::setAvoidParsing ( bool avoid)

Avoid calling parse() on returned KMime::Messages.

Definition at line 79 of file fetchjob.cpp.

◆ setScope()

void FetchJob::setScope ( const FetchScope & scope)

Sets what data should be fetched.

The default scope is FetchScope::Content (all content parts).

Parameters
scopea FetchScope object describing what data should be fetched

Definition at line 110 of file fetchjob.cpp.

◆ setSequenceSet()

void FetchJob::setSequenceSet ( const ImapSet & set)

Set which messages to fetch data for.

If sequence numbers are given, isUidBased() should be false. If UIDs are given, isUidBased() should be true.

Parameters
setthe sequence numbers or UIDs of the messages to fetch data for

Definition at line 85 of file fetchjob.cpp.

◆ setUidBased()

void FetchJob::setUidBased ( bool uidBased)

Set how the sequence set should be interpreted.

Parameters
uidBasedif true the argument to setSequenceSet will be interpreted as UIDs, if false it will be interpreted as sequence numbers

Definition at line 98 of file fetchjob.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 Fri Nov 22 2024 12:09:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.