kmail

KMail::MessageCopyHelper Class Reference

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

#include <messagecopyhelper.h>

Inheritance diagram for KMail::MessageCopyHelper:

List of all members.


Public Member Functions

 MessageCopyHelper (const QValueList< Q_UINT32 > &msgs, KMFolder *dest, bool move, QObject *parent=0)

Static Public Member Functions

static bool inReadOnlyFolder (const QValueList< Q_UINT32 > &sernums)
static QValueList< Q_UINT32 > serNumListFromMailList (const KPIM::MailList &list)
static QValueList< Q_UINT32 > serNumListFromMsgList (QPtrList< KMMsgBase > list)

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 ( const QValueList< Q_UINT32 > &  msgs,
KMFolder dest,
bool  move,
QObject parent = 0 
)

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

Parameters:
msgs List of serial numbers.
dest Destination folder.
move If set to true, messages will be moved instead of copied
parent The parent object.

Definition at line 29 of file messagecopyhelper.cpp.


Member Function Documentation

bool MessageCopyHelper::inReadOnlyFolder ( const QValueList< Q_UINT32 > &  sernums  )  [static]

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

Definition at line 101 of file messagecopyhelper.cpp.

QValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMailList ( const KPIM::MailList &  list  )  [static]

Converts a MailList into a serial number list.

Definition at line 82 of file messagecopyhelper.cpp.

QValueList< Q_UINT32 > MessageCopyHelper::serNumListFromMsgList ( QPtrList< 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: