KContacts

addresseehelper.h
1 /*
2  This file is part of the KDE libraries
3  SPDX-FileCopyrightText: 2003 Carsten Pfeiffer <[email protected]>
4 
5  This SPDX-License-Identifier: LGPL-2.0-only
6 */
7 
8 #ifndef KCONTACTS_ADDRESSEEHELPER_H
9 #define KCONTACTS_ADDRESSEEHELPER_H
10 
11 #include "kcontacts_export.h"
12 
13 #include <QObject>
14 
15 namespace KContacts {
16 class AddresseeHelperPrivate;
17 
41 class KCONTACTS_EXPORT AddresseeHelper : public QObject
42 {
43  Q_OBJECT
44 
45 public:
51  static AddresseeHelper *self();
52 
60  Q_REQUIRED_RESULT bool containsTitle(const QString &title) const;
61 
69  Q_REQUIRED_RESULT bool containsPrefix(const QString &prefix) const;
70 
78  Q_REQUIRED_RESULT bool containsSuffix(const QString &suffix) const;
79 
87  Q_REQUIRED_RESULT bool treatAsFamilyName() const;
88 
91 
92  ~AddresseeHelper();
93 
94 public Q_SLOTS:
98  void initSettings();
99 
100 private:
102 };
103 }
104 
105 #endif
This singleton class stores static data, which is shared by all Addressee objects.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jul 6 2020 22:54:16 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.