kmail

KMail Namespace Reference

Namespaces

namespace  ACLJobs
 
namespace  AnnotationJobs
 
namespace  Interface
 
namespace  QuotaJobs
 
namespace  StringUtil
 
namespace  Util
 

Classes

class  AccountComboBox
 
class  AccountManager
 
class  ACLEntryDialog
 
struct  ACLListEntry
 
struct  AnnotationAttribute
 
class  AntiSpamConfig
 
class  AntiSpamWizard
 
class  BackupJob
 
class  Callback
 
class  CopyFolderJob
 
class  DictionaryComboBox
 
class  EditorWatcher
 
class  FilterImporterExporter
 
class  FilterLog
 
class  FilterLogDialog
 
class  FolderDiaACLTab
 
class  FolderDiaGeneralTab
 
class  FolderDiaQuotaTab
 
class  FolderDiaTab
 
class  FolderDiaTemplatesTab
 
class  FolderRequester
 
class  HeaderItem
 
class  HeaderStyle
 
class  HtmlStatusBar
 
class  HtmlWriter
 
class  IdentityDrag
 
class  IdentityListView
 
class  IdentityListViewItem
 
class  ImportJob
 
class  JobScheduler
 
class  ListJob
 
class  MaildirCompactionJob
 
class  MailingList
 
class  MboxCompactionJob
 
class  MessageActions
 
class  MessageCopyHelper
 
class  PartNodeBodyPart
 
class  PopAccount
 
class  RedirectDialog
 
class  RenameJob
 
class  RuleWidgetHandler
 
class  RuleWidgetHandlerManager
 
class  ScheduledCompactionTask
 
class  ScheduledExpireTask
 
class  ScheduledJob
 
class  ScheduledTask
 
class  SearchJob
 
class  SearchWindow
 
class  SecondaryWindow
 
class  SieveDebugDialog
 
class  SortCacheItem
 
class  SpamHeaderAnalyzer
 
class  SpamScore
 
class  TeeHtmlWriter
 
class  TransportManager
 
class  UndoInfo
 
class  URLHandler
 
class  URLHandlerManager
 

Typedefs

typedef TQValueVector< ACLListEntryACLList
 
typedef TQValueVector< AnnotationAttributeAnnotationList
 
typedef TQValueList< SpamAgent > SpamAgents
 
typedef TQValueListIterator< SpamAgent > SpamAgentsIterator
 
typedef TQValueVector< QuotaInfo > QuotaInfoList
 
typedef SimpleFolderTreeBase< TDEListViewItem > SimpleFolderTree
 
typedef TQValueList< SpamScoreSpamScores
 
typedef TQValueListIterator< SpamScoreSpamScoresIterator
 

Enumerations

enum  SpamAgentTypes {
  SpamAgentNone , SpamAgentBool , SpamAgentFloat , SpamAgentFloatLarge ,
  SpamAgentAdjustedFloat
}
 
enum  IMAPUserIdFormat { FullEmail , UserName }
 
enum  FolderContentsType {
  ContentsTypeMail = 0 , ContentsTypeCalendar , ContentsTypeContact , ContentsTypeNote ,
  ContentsTypeTask , ContentsTypeJournal , ContentsTypeLast = ContentsTypeJournal
}
 
enum  { num_primes = 29 }
 
enum  ReplyStrategy {
  ReplySmart = 0 , ReplyAuthor , ReplyList , ReplyAll ,
  ReplyNone
}
 
enum  StatusValueTypes {
  StatusImportant = 0 , StatusNew = 1 , StatusUnread = 2 , StatusRead = 3 ,
  StatusOld = 4 , StatusDeleted = 5 , StatusReplied = 6 , StatusForwarded = 7 ,
  StatusQueued = 8 , StatusSent = 9 , StatusWatched = 10 , StatusIgnored = 11 ,
  StatusSpam = 12 , StatusHam = 13 , StatusToDo = 14 , StatusInvitation = 15 ,
  StatusHasAttachment = 16
}
 

Functions

static AttachmentStrategy::Display smartDisplay (const partNode *node)
 
static void renameChildFolders (KMFolderDir *dir, const TQString &oldPath, const TQString &newPath)
 
Composer * makeComposer (KMMessage *msg=0, uint identity=0)
 
static TQStringList stringList (const char *headers[], int numHeaders)
 
static TQString directionOf (const TQString &str)
 
static TQString strToHtml (const TQString &str, int flags=LinkLocator::PreserveSpaces)
 
unsigned long nextPrime (unsigned long n)
 
void checkConfigUpdates ()
 
void lockOrDie ()
 
void insertLibraryCataloguesAndIcons ()
 
void cleanup ()
 
static int signatureToStatus (const GpgME::Signature &sig)
 
static TQString writeSimpleSigstatHeader (const PartMetaData &block)
 
static TQString beginVerboseSigstatHeader ()
 
static TQString makeShowAuditLogLink (const GpgME::Error &err, const TQString &auditLog)
 
static TQString endVerboseSigstatHeader (const PartMetaData &pmd)
 
static KURL urlFromAccount (const KMail::ImapAccountBase *a)
 
static int recurseFilter (TQListViewItem *item, const TQString &filter, int column)
 
static TQString dotstuff (TQString s)
 
static KURL findUrlForAccount (const KMail::ImapAccountBase *a)
 

Variables

static const about_data authors []
 
static const about_data credits []
 
static const AttachmentStrategy * iconicStrategy = 0
 
static const AttachmentStrategy * smartStrategy = 0
 
static const AttachmentStrategy * inlinedStrategy = 0
 
static const AttachmentStrategy * hiddenStrategy = 0
 
static const AttachmentStrategy * headerOnlyStrategy = 0
 
static const char * briefHeaders []
 
static const int numBriefHeaders = sizeof briefHeaders / sizeof *briefHeaders
 
static const char * standardHeaders []
 
static const int numStandardHeaders = sizeof standardHeaders / sizeof *standardHeaders
 
static const char * richHeaders []
 
static const int numRichHeaders = sizeof richHeaders / sizeof *richHeaders
 
static const HeaderStrategy * allStrategy = 0
 
static const HeaderStrategy * richStrategy = 0
 
static const HeaderStrategy * standardStrategy = 0
 
static const HeaderStrategy * briefStrategy = 0
 
static const HeaderStrategy * customStrategy = 0
 
static const HeaderStylebriefStyle = 0
 
static const HeaderStyleplainStyle = 0
 
static const HeaderStylefancyStyle = 0
 
static const HeaderStyleenterpriseStyle = 0
 
static const char kmailIdentityMimeType [] = "application/x-kmail-identity-drag"
 
static const unsigned short int imapDefaultPort = 143
 
static const unsigned long prime_list [num_primes]
 
static const MessageStatus StatusValues []
 
static const int StatusValueCount
 
static const int StatusValueCountWithoutHidden = StatusValueCount - 1
 
static TQMap< TQString, int > s_serverConnections
 

Detailed Description

folderdiaquotatab.h

quotajobs.h

The namespace where all classes of KMail can be found in.

A tiny little class to use for displaying raw messages, textual attachments etc.

The KMail namespace contains classes used for KMail.

Copyright (c) 2006 Till Adam adam@.nosp@m.kde..nosp@m.org

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

In addition, as a special exception, the copyright holders give permission to link the code of this program with any edition of the TQt library by Trolltech AS, Norway (or with modified versions of TQt that use the same license as TQt), and distribute linked combinations including the two. You must obey the GNU General Public License in all respects for all of the code used other than TQt. If you modify this file, you may extend this exception to your version of the file, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.

This is to keep them out of the way from all the other un-namespaced classes in libs and the rest of PIM.

Auto-deletes itself when closed.

Author
Carsten Pfeiffer pfeif.nosp@m.fer@.nosp@m.kde.o.nosp@m.rg

Typedef Documentation

◆ ACLList

typedef TQValueVector< KMail::ACLListEntry > KMail::ACLList

Definition at line 51 of file acljobs.h.

◆ AnnotationList

typedef TQValueVector<AnnotationAttribute> KMail::AnnotationList

Definition at line 50 of file annotationjobs.h.

◆ QuotaInfoList

typedef TQValueVector<QuotaInfo> KMail::QuotaInfoList

Definition at line 109 of file quotajobs.h.

◆ SimpleFolderTree

typedef SimpleFolderTreeBase<TDEListViewItem> KMail::SimpleFolderTree

Definition at line 245 of file simplefoldertree.h.

◆ SpamAgents

typedef TQValueList<SpamAgent> KMail::SpamAgents

Definition at line 75 of file antispamconfig.h.

◆ SpamAgentsIterator

typedef TQValueListIterator<SpamAgent> KMail::SpamAgentsIterator

Definition at line 76 of file antispamconfig.h.

◆ SpamScores

typedef TQValueList<SpamScore> KMail::SpamScores

Definition at line 70 of file spamheaderanalyzer.h.

◆ SpamScoresIterator

typedef TQValueListIterator<SpamScore> KMail::SpamScoresIterator

Definition at line 71 of file spamheaderanalyzer.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Definition at line 68 of file kmglobal.h.

◆ FolderContentsType

enum KMail::FolderContentsType

Definition at line 24 of file kmfoldertype.h.

◆ IMAPUserIdFormat

enum KMail::IMAPUserIdFormat

Definition at line 48 of file folderdiaacltab.h.

◆ ReplyStrategy

enum KMail::ReplyStrategy

Definition at line 59 of file kmmessage.h.

◆ SpamAgentTypes

Valid types of SpamAgent.

Enumerator
SpamAgentNone 

Invalid SpamAgent, skip this agent.

SpamAgentBool 

Simple Yes or No (Razor)

SpamAgentFloat 

For straight percentages between 0.0 and 1.0 (BogoFilter)

SpamAgentFloatLarge 

For straight percentages between 0.0 and 100.0.

SpamAgentAdjustedFloat 

Use this when we need to compare against a threshold (SpamAssasssin)

Definition at line 46 of file antispamconfig.h.

◆ StatusValueTypes

enum KMail::StatusValueTypes

Definition at line 236 of file kmsearchpattern.h.

Function Documentation

◆ beginVerboseSigstatHeader()

static TQString KMail::beginVerboseSigstatHeader ( )
static

Definition at line 2296 of file objecttreeparser.cpp.

◆ checkConfigUpdates()

TDE_EXPORT void KMail::checkConfigUpdates ( )

Definition at line 97 of file kmstartup.cpp.

◆ cleanup()

TDE_EXPORT void KMail::cleanup ( )

Definition at line 262 of file kmstartup.cpp.

◆ directionOf()

static TQString KMail::directionOf ( const TQString &  str)
inlinestatic

Definition at line 74 of file headerstyle.cpp.

◆ dotstuff()

static TQString KMail::dotstuff ( TQString  s)
inlinestatic

Definition at line 449 of file vacation.cpp.

◆ endVerboseSigstatHeader()

static TQString KMail::endVerboseSigstatHeader ( const PartMetaData &  pmd)
static

Definition at line 2326 of file objecttreeparser.cpp.

◆ findUrlForAccount()

static KURL KMail::findUrlForAccount ( const KMail::ImapAccountBase *  a)
static

Definition at line 490 of file vacation.cpp.

◆ insertLibraryCataloguesAndIcons()

TDE_EXPORT void KMail::insertLibraryCataloguesAndIcons ( )

Definition at line 245 of file kmstartup.cpp.

◆ lockOrDie()

TDE_EXPORT void KMail::lockOrDie ( )

Definition at line 138 of file kmstartup.cpp.

◆ makeComposer()

KMail::Composer * KMail::makeComposer ( KMMessage msg = 0,
uint  identity = 0 
)

Definition at line 145 of file kmcomposewin.cpp.

◆ makeShowAuditLogLink()

static TQString KMail::makeShowAuditLogLink ( const GpgME::Error &  err,
const TQString &  auditLog 
)
static

Definition at line 2301 of file objecttreeparser.cpp.

◆ nextPrime()

unsigned long KMail::nextPrime ( unsigned long  n)
inline

Definition at line 80 of file kmglobal.h.

◆ recurseFilter()

static int KMail::recurseFilter ( TQListViewItem *  item,
const TQString &  filter,
int  column 
)
static

Definition at line 38 of file simplefoldertree.h.

◆ renameChildFolders()

static void KMail::renameChildFolders ( KMFolderDir dir,
const TQString &  oldPath,
const TQString &  newPath 
)
static

Definition at line 759 of file cachedimapjob.cpp.

◆ signatureToStatus()

static int KMail::signatureToStatus ( const GpgME::Signature &  sig)
static

Definition at line 394 of file objecttreeparser.cpp.

◆ smartDisplay()

static AttachmentStrategy::Display KMail::smartDisplay ( const partNode *  node)
static

Definition at line 48 of file attachmentstrategy.cpp.

◆ stringList()

static TQStringList KMail::stringList ( const char *  headers[],
int  numHeaders 
)
static

Definition at line 72 of file headerstrategy.cpp.

◆ strToHtml()

static TQString KMail::strToHtml ( const TQString &  str,
int  flags = LinkLocator::PreserveSpaces 
)
static

Definition at line 93 of file headerstyle.cpp.

◆ urlFromAccount()

static KURL KMail::urlFromAccount ( const KMail::ImapAccountBase *  a)
static

Definition at line 222 of file sievedebugdialog.cpp.

◆ writeSimpleSigstatHeader()

static TQString KMail::writeSimpleSigstatHeader ( const PartMetaData &  block)
static

Definition at line 2264 of file objecttreeparser.cpp.

Variable Documentation

◆ allStrategy

const HeaderStrategy* KMail::allStrategy = 0
static

Definition at line 276 of file headerstrategy.cpp.

◆ authors

const about_data KMail::authors[]
static

Definition at line 52 of file aboutdata.cpp.

◆ briefHeaders

const char* KMail::briefHeaders[]
static
Initial value:
= {
"subject", "from", "cc", "bcc", "date"
}

Definition at line 49 of file headerstrategy.cpp.

◆ briefStrategy

const HeaderStrategy* KMail::briefStrategy = 0
static

Definition at line 279 of file headerstrategy.cpp.

◆ briefStyle

const HeaderStyle* KMail::briefStyle = 0
static

Definition at line 1091 of file headerstyle.cpp.

◆ credits

const about_data KMail::credits[]
static

Definition at line 158 of file aboutdata.cpp.

◆ customStrategy

const HeaderStrategy* KMail::customStrategy = 0
static

Definition at line 280 of file headerstrategy.cpp.

◆ enterpriseStyle

const HeaderStyle* KMail::enterpriseStyle = 0
static

Definition at line 1094 of file headerstyle.cpp.

◆ fancyStyle

const HeaderStyle* KMail::fancyStyle = 0
static

Definition at line 1093 of file headerstyle.cpp.

◆ headerOnlyStrategy

const AttachmentStrategy* KMail::headerOnlyStrategy = 0
static

Definition at line 222 of file attachmentstrategy.cpp.

◆ hiddenStrategy

const AttachmentStrategy* KMail::hiddenStrategy = 0
static

Definition at line 221 of file attachmentstrategy.cpp.

◆ iconicStrategy

const AttachmentStrategy* KMail::iconicStrategy = 0
static

Definition at line 218 of file attachmentstrategy.cpp.

◆ imapDefaultPort

const unsigned short int KMail::imapDefaultPort = 143
static

Definition at line 74 of file imapaccountbase.cpp.

◆ inlinedStrategy

const AttachmentStrategy* KMail::inlinedStrategy = 0
static

Definition at line 220 of file attachmentstrategy.cpp.

◆ kmailIdentityMimeType

const char KMail::kmailIdentityMimeType[] = "application/x-kmail-identity-drag"
static

Definition at line 41 of file identitydrag.cpp.

◆ numBriefHeaders

const int KMail::numBriefHeaders = sizeof briefHeaders / sizeof *briefHeaders
static

Definition at line 52 of file headerstrategy.cpp.

◆ numRichHeaders

const int KMail::numRichHeaders = sizeof richHeaders / sizeof *richHeaders
static

Definition at line 66 of file headerstrategy.cpp.

◆ numStandardHeaders

const int KMail::numStandardHeaders = sizeof standardHeaders / sizeof *standardHeaders
static

Definition at line 58 of file headerstrategy.cpp.

◆ plainStyle

const HeaderStyle* KMail::plainStyle = 0
static

Definition at line 1092 of file headerstyle.cpp.

◆ prime_list

const unsigned long KMail::prime_list[num_primes]
static
Initial value:
=
{
31ul, 53ul, 97ul, 193ul, 389ul,
769ul, 1543ul, 3079ul, 6151ul, 12289ul,
24593ul, 49157ul, 98317ul, 196613ul, 393241ul,
786433ul, 1572869ul, 3145739ul, 6291469ul, 12582917ul,
25165843ul, 50331653ul, 100663319ul, 201326611ul, 402653189ul,
805306457ul, 1610612741ul, 3221225473ul, 4294967291ul
}

Definition at line 70 of file kmglobal.h.

◆ richHeaders

const char* KMail::richHeaders[]
static
Initial value:
= {
"subject", "date", "from", "cc", "bcc", "to",
"organization", "organisation", "reply-to",
"user-agent", "x-mailer"
}

Definition at line 61 of file headerstrategy.cpp.

◆ richStrategy

const HeaderStrategy* KMail::richStrategy = 0
static

Definition at line 277 of file headerstrategy.cpp.

◆ s_serverConnections

TQMap<TQString, int> KMail::s_serverConnections
static

Definition at line 50 of file networkaccount.cpp.

◆ smartStrategy

const AttachmentStrategy* KMail::smartStrategy = 0
static

Definition at line 219 of file attachmentstrategy.cpp.

◆ standardHeaders

const char* KMail::standardHeaders[]
static
Initial value:
= {
"subject", "from", "cc", "bcc", "to"
}

Definition at line 55 of file headerstrategy.cpp.

◆ standardStrategy

const HeaderStrategy* KMail::standardStrategy = 0
static

Definition at line 278 of file headerstrategy.cpp.

◆ StatusValueCount

const int KMail::StatusValueCount
static
Initial value:
=
sizeof( StatusValues ) / sizeof( MessageStatus )

Definition at line 256 of file kmsearchpattern.h.

◆ StatusValueCountWithoutHidden

const int KMail::StatusValueCountWithoutHidden = StatusValueCount - 1
static

Definition at line 261 of file kmsearchpattern.h.

◆ StatusValues

const MessageStatus KMail::StatusValues[]
static
Initial value:
= {
{ I18N_NOOP( "Important" ), "kmmsgflag" },
{ I18N_NOOP( "New" ), "kmmsgnew" },
{ I18N_NOOP( "Unread" ), "kmmsgunseen" },
{ I18N_NOOP( "Read" ), "kmmsgread" },
{ I18N_NOOP( "Old" ), 0 },
{ I18N_NOOP( "Deleted" ), "kmmsgdel" },
{ I18N_NOOP( "Replied" ), "kmmsgreplied" },
{ I18N_NOOP( "Forwarded" ), "kmmsgforwarded" },
{ I18N_NOOP( "Queued" ), "kmmsgqueued" },
{ I18N_NOOP( "Sent" ), "kmmsgsent" },
{ I18N_NOOP( "Watched" ), "kmmsgwatched" },
{ I18N_NOOP( "Ignored" ), "kmmsgignored" },
{ I18N_NOOP( "Spam" ), "kmmsgspam" },
{ I18N_NOOP( "Ham" ), "kmmsgham" },
{ I18N_NOOP( "To Do" ), "kmmsgtodo" },
{ I18N_NOOP( "Invitation" ), "kmmsginvitation" },
{ I18N_NOOP( "Has Attachment"), "kmmsgattachment" }
}

Definition at line 216 of file kmsearchpattern.h.