libtdepim

TDERecentAddress::RecentAddresses Class Reference

#include <recentaddresses.h>

Public Member Functions

TQStringList addresses () const
 
const TDEABC::Addressee::List & tdeabcAddresses () const
 
void add (const TQString &entry)
 
void setMaxCount (int count)
 
uint maxCount () const
 
void load (TDEConfig *)
 
void save (TDEConfig *)
 
void clear ()
 

Static Public Member Functions

static RecentAddressesself (TDEConfig *config=0L)
 
static bool exists ()
 

Detailed Description

Handles a list of "recent email-addresses".

Simply set a max-count and call add() to add entries.

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

Definition at line 61 of file recentaddresses.h.

Member Function Documentation

◆ add()

void RecentAddresses::add ( const TQString &  entry)

Adds an entry to the list.

Note: an entry doesn't have to be one email address, it can be multiple, like "Foo <foo@bar.org>, Bar Baz <bar@baz.org>".

Definition at line 100 of file recentaddresses.cpp.

◆ addresses()

TQStringList RecentAddresses::addresses ( ) const
Returns
the list of recent addresses. Note: an entry doesn't have to be one email address, it can be multiple, like "Foo <foo@bar.org>, Bar Baz <bar@baz.org>".

Definition at line 149 of file recentaddresses.cpp.

◆ clear()

void RecentAddresses::clear ( )

Removes all entries from the history.

Definition at line 143 of file recentaddresses.cpp.

◆ load()

void RecentAddresses::load ( TDEConfig *  config)

Loads the list of recently used addresses from the configfile.

Automatically done on startup.

Definition at line 71 of file recentaddresses.cpp.

◆ maxCount()

uint TDERecentAddress::RecentAddresses::maxCount ( ) const
inline
Returns
the current maximum number of entries.

Definition at line 99 of file recentaddresses.h.

◆ save()

void RecentAddresses::save ( TDEConfig *  config)

Saves the list of recently used addresses to the configfile.

Make sure to call TDEGlobal::config()->sync() afterwards, to really save.

Definition at line 94 of file recentaddresses.cpp.

◆ self()

RecentAddresses * RecentAddresses::self ( TDEConfig *  config = 0L)
static
Returns
the only possible instance of this class.

Definition at line 50 of file recentaddresses.cpp.

◆ setMaxCount()

void RecentAddresses::setMaxCount ( int  count)

Sets the maximum number, the list can hold.

The list adjusts to this size if necessary. Default maximum is 40.

Definition at line 131 of file recentaddresses.cpp.


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