• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

kabc

  • kabc
distributionlist.h
1/*
2 This file is part of libkabc.
3 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KABC_DISTRIBUTIONLIST_H
22#define KABC_DISTRIBUTIONLIST_H
23
24#include "kabc_export.h"
25#ifndef KDEPIM_NO_KRESOURCES
26#include "addressbook.h"
27#else
28#include "addressee.h"
29#include <QtCore/QMap>
30#endif
31#include <QtCore/QList>
32
33namespace KABC {
34
35//class DistributionListManager;
36class Resource;
37
45class KABC_DEPRECATED_EXPORT DistributionList
46{
47 public:
55 class KABC_EXPORT Entry
56 {
57 public:
61 typedef QList<Entry> List;
62
66 Entry();
67
73 Entry( const Entry &other );
74
82 Entry( const Addressee &addressee, const QString &email );
83
87 ~Entry();
88
94 Entry &operator=( const Entry &other );
95
99 Addressee addressee() const;
100
106 QString email() const;
107
108 private:
109 class Private;
110 Private *const d;
111 };
112
119 DistributionList( Resource *resource, const QString &name );
120
128 DistributionList( Resource *resource, const QString &identifier,
129 const QString &name );
130
134 ~DistributionList();
135
141 void setIdentifier( const QString &identifier );
142
146 QString identifier() const;
147
153 void setName( const QString & );
154
158 QString name() const;
159
169 void insertEntry( const Addressee &, const QString &email=QString() );
170
179 void removeEntry( const Addressee &, const QString &email=QString() );
180
185 QStringList emails() const;
186
191 Entry::List entries() const;
192
193 Resource *resource() const;
194
195 private:
196 class Private;
197 Private *const d;
198
199 Q_DISABLE_COPY( DistributionList )
200};
201
205typedef QMap<QString, DistributionList*> DistributionListMap;
206
207}
208#endif
KABC::Addressee
address book entry
Definition: addressee.h:79
KABC::DistributionList::Entry
Distribution List Entry.
Definition: distributionlist.h:56
KABC::DistributionList::Entry::List
QList< Entry > List
A list of Entry instances.
Definition: distributionlist.h:61
KABC::DistributionList
Distribution list of email addresses.
Definition: distributionlist.h:46
KABC::Resource
Definition: resource.h:65
KABC
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
Definition: address.h:29
KABC::DistributionListMap
QMap< QString, DistributionList * > DistributionListMap
Typedef for map from IDs to respective DistribtionList.
Definition: distributionlist.h:205
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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