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

kabc

  • kabc
addresseehelper.h
1/*
2 This file is part of the KDE libraries
3 Copyright (C) 2003 Carsten Pfeiffer <pfeiffer@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, version 2.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
18*/
19
20#ifndef KABC_ADDRESSEEHELPER_H
21#define KABC_ADDRESSEEHELPER_H
22
23#include "kabc_export.h"
24
25#include <QtCore/QObject>
26#include <QtCore/QStringList>
27#include <QtCore/QSet>
28
29namespace KABC {
30
54class KABC_EXPORT AddresseeHelper : public QObject
55{
56 Q_OBJECT
57
58 public:
64 static AddresseeHelper *self();
65
73 bool containsTitle( const QString &title ) const;
74
82 bool containsPrefix( const QString &prefix ) const;
83
91 bool containsSuffix( const QString &suffix ) const;
92
100 bool tradeAsFamilyName() const;
101
102 public Q_SLOTS:
106 void initSettings();
107
108 private:
109 AddresseeHelper();
110
111 static void addToSet( const QStringList &list, QSet<QString> &container );
112 QSet<QString> mTitles;
113 QSet<QString> mPrefixes;
114 QSet<QString> mSuffixes;
115 bool mTradeAsFamilyName;
116
117 static AddresseeHelper *s_self;
118};
119
120}
121
122#endif
KABC::AddresseeHelper
This singleton class stores static data, which is shared by all Addressee objects.
Definition addresseehelper.h:55
KABC
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
Definition address.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 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