KMail::MessageCopyHelper Class Reference

#include <messagecopyhelper.h>

Inherits TQObject.

Public Member Functions

 MessageCopyHelper (const TQValueList< TQ_UINT32 > &msgs, KMFolder *dest, bool move, TQObject *parent=0)
 

Static Public Member Functions

static TQValueList< TQ_UINT32 > serNumListFromMailList (const KPIM::MailList &list)
 
static TQValueList< TQ_UINT32 > serNumListFromMsgList (TQPtrList< KMMsgBase > list)
 
static bool inReadOnlyFolder (const TQValueList< TQ_UINT32 > &sernums)
 

Detailed Description

Helper class to copy/move a set of messages defined by their serial numbers from arbitrary folders into a common destination folder.

Definition at line 39 of file messagecopyhelper.h.

Constructor & Destructor Documentation

◆ MessageCopyHelper()

MessageCopyHelper::MessageCopyHelper ( const TQValueList< TQ_UINT32 > &  msgs,
KMFolder dest,
bool  move,
TQObject *  parent = 0 
)

Creates new MessageCopyHelper object to copy the given messages to the specified destination folder.

Parameters
msgsList of serial numbers.
destDestination folder.
moveIf set to true, messages will be moved instead of copied
parentThe parent object.

Definition at line 29 of file messagecopyhelper.cpp.

Member Function Documentation

◆ inReadOnlyFolder()

bool MessageCopyHelper::inReadOnlyFolder ( const TQValueList< TQ_UINT32 > &  sernums)
static

Checks of any of the given messages comes from a read-only source.

Definition at line 101 of file messagecopyhelper.cpp.

◆ serNumListFromMailList()

TQValueList< TQ_UINT32 > MessageCopyHelper::serNumListFromMailList ( const KPIM::MailList &  list)
static

Converts a MailList into a serial number list.

Definition at line 82 of file messagecopyhelper.cpp.

◆ serNumListFromMsgList()

TQValueList< TQ_UINT32 > MessageCopyHelper::serNumListFromMsgList ( TQPtrList< KMMsgBase >  list)
static

Converts a KMMsgsBase* list into a serial number list.

Definition at line 90 of file messagecopyhelper.cpp.


The documentation for this class was generated from the following files: