• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

libkdepim

  • KPIM
  • RecentAddresses
Public Member Functions | Static Public Member Functions | List of all members
KPIM::RecentAddresses Class Reference

#include <recentaddresses.h>

Public Member Functions

 ~RecentAddresses ()
 
void add (const QString &entry)
 
QStringList addresses () const
 
void clear ()
 
const KABC::Addressee::List & kabcAddresses () const
 
void load (KConfig *)
 
uint maxCount () const
 
void save (KConfig *)
 
void setMaxCount (int count)
 

Static Public Member Functions

static bool exists ()
 
static RecentAddresses * self (KConfig *config=0)
 

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 80 of file recentaddresses.h.

Constructor & Destructor Documentation

RecentAddresses::~RecentAddresses ( )

Definition at line 80 of file recentaddresses.cpp.

Member Function Documentation

void RecentAddresses::add ( const QString &  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 116 of file recentaddresses.cpp.

QStringList 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 170 of file recentaddresses.cpp.

void RecentAddresses::clear ( )

Removes all entries from the history.

Definition at line 164 of file recentaddresses.cpp.

bool RecentAddresses::exists ( )
static

Definition at line 66 of file recentaddresses.cpp.

const KABC::Addressee::List& KPIM::RecentAddresses::kabcAddresses ( ) const
inline

Definition at line 100 of file recentaddresses.h.

void RecentAddresses::load ( KConfig *  config)

Loads the list of recently used addresses from the configfile.

Automatically done on startup.

Definition at line 86 of file recentaddresses.cpp.

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

Definition at line 119 of file recentaddresses.h.

void RecentAddresses::save ( KConfig *  config)

Saves the list of recently used addresses to the configfile.

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

Definition at line 110 of file recentaddresses.cpp.

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

Definition at line 57 of file recentaddresses.cpp.

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 149 of file recentaddresses.cpp.


The documentation for this class was generated from the following files:
  • recentaddresses.h
  • recentaddresses.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkdepim

Skip menu "libkdepim"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal