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

kaddressbook

  • sources
  • kde-4.14
  • kdepim
  • kaddressbook
  • printing
  • grantlee
contactgrantleeprintobject.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2013-2015 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef CONTACTGRANTLEEPRINTOBJECT_H
19 #define CONTACTGRANTLEEPRINTOBJECT_H
20 #include <QObject>
21 #include <KABC/Addressee>
22 
23 
24 namespace KABPrinting {
25 class ContactGrantleePrintAddressObject;
26 class ContactGrantleePrintPhoneObject;
27 class ContactGrantleePrintImObject;
28 class ContactGrantleePrintGeoObject;
29 class ContactGrantleePrintCryptoObject;
30 class ContactGrantleePrintObject : public QObject
31 {
32  Q_OBJECT
33  Q_PROPERTY(QString name READ name)
34  Q_PROPERTY(QString realName READ realName)
35  Q_PROPERTY(QString formattedName READ formattedName)
36  Q_PROPERTY(QString prefix READ prefix)
37  Q_PROPERTY(QString givenName READ givenName)
38  Q_PROPERTY(QString additionalName READ additionalName)
39  Q_PROPERTY(QString familyName READ familyName)
40  Q_PROPERTY(QString suffix READ suffix)
41  Q_PROPERTY(QString nickName READ nickName)
42  Q_PROPERTY(QStringList emails READ emails)
43  Q_PROPERTY(QString organization READ organization)
44  Q_PROPERTY(QString note READ note)
45  Q_PROPERTY(QString webPage READ webPage)
46  Q_PROPERTY(QString title READ title)
47  Q_PROPERTY(QString preferredEmail READ preferredEmail)
48  Q_PROPERTY(QString role READ role)
49  Q_PROPERTY(QString birthday READ birthday)
50  Q_PROPERTY(QString department READ department)
51  Q_PROPERTY(QVariant addresses READ addresses)
52  Q_PROPERTY(QVariant phones READ phones)
53  Q_PROPERTY(QVariant instantManging READ instantManging)
54  Q_PROPERTY(QString addressBookName READ addressBookName)
55  Q_PROPERTY(QString photo READ photo)
56  Q_PROPERTY(QString logo READ logo)
57  Q_PROPERTY(QVariant crypto READ crypto)
58  Q_PROPERTY(QString anniversary READ anniversary)
59  Q_PROPERTY(QString profession READ profession)
60  Q_PROPERTY(QString office READ office)
61  Q_PROPERTY(QString manager READ manager)
62  Q_PROPERTY(QString assistant READ assistant)
63  Q_PROPERTY(QString spouse READ spouse)
64  Q_PROPERTY(QString languages READ languages)
65 
66  //Add more functions
67 public:
68  explicit ContactGrantleePrintObject(const KABC::Addressee &address, QObject *parent=0);
69  ~ContactGrantleePrintObject();
70 
71  QString name() const;
72  QString realName() const;
73  QString formattedName() const;
74  QString prefix() const;
75  QString givenName() const;
76  QString additionalName() const;
77  QString familyName() const;
78  QString suffix() const;
79  QString nickName() const;
80  QStringList emails() const;
81  QString organization() const;
82  QString note() const;
83  QString webPage() const;
84  QString title() const;
85  QString preferredEmail() const;
86  QString role() const;
87  QString birthday() const;
88  QString department() const;
89  QVariant addresses() const;
90  QVariant phones() const;
91  QString addressBookName() const;
92  QVariant instantManging() const;
93  QVariant geo() const;
94  QString photo() const;
95  QString logo() const;
96  QVariant crypto() const;
97  QString anniversary() const;
98  QString profession() const;
99  QString office() const;
100  QString manager() const;
101  QString assistant() const;
102  QString spouse() const;
103  QString languages() const;
104 private:
105  QString imgToDataUrl( const QImage &image ) const;
106  QList<QObject*> mListAddress;
107  QList<QObject*> mListPhones;
108  QList<QObject*> mListIm;
109  ContactGrantleePrintGeoObject *mGeoObject;
110  ContactGrantleePrintCryptoObject *mCryptoObject;
111  KABC::Addressee mAddress;
112 };
113 }
114 Q_DECLARE_METATYPE(KABPrinting::ContactGrantleePrintObject*)
115 Q_DECLARE_METATYPE(KABPrinting::ContactGrantleePrintAddressObject*)
116 Q_DECLARE_METATYPE(KABPrinting::ContactGrantleePrintPhoneObject*)
117 Q_DECLARE_METATYPE(KABPrinting::ContactGrantleePrintImObject*)
118 Q_DECLARE_METATYPE(KABPrinting::ContactGrantleePrintGeoObject*)
119 Q_DECLARE_METATYPE(KABPrinting::ContactGrantleePrintCryptoObject*)
120 Q_DECLARE_METATYPE(QList<QObject*>)
121 #endif // CONTACTGRANTLEEPRINTOBJECT_H
KABPrinting::ContactGrantleePrintObject::birthday
QString birthday() const
KABPrinting::ContactGrantleePrintObject::anniversary
QString anniversary() const
KABPrinting::ContactGrantleePrintObject::instantManging
QVariant instantManging() const
KABPrinting::ContactGrantleePrintObject::manager
QString manager() const
KABPrinting::ContactGrantleePrintObject::preferredEmail
QString preferredEmail() const
KABPrinting::ContactGrantleePrintObject::profession
QString profession() const
KABPrinting::ContactGrantleePrintObject::spouse
QString spouse() const
KABPrinting::ContactGrantleePrintCryptoObject
Definition: contactgrantleeprintcryptoobject.h:23
KABPrinting::ContactGrantleePrintObject::phones
QVariant phones() const
KABPrinting::ContactGrantleePrintObject::realName
QString realName() const
KABPrinting::ContactGrantleePrintObject::familyName
QString familyName() const
KABPrinting::ContactGrantleePrintObject::prefix
QString prefix() const
KABPrinting::ContactGrantleePrintObject::assistant
QString assistant() const
KABPrinting::ContactGrantleePrintObject::name
QString name() const
KABPrinting::ContactGrantleePrintObject
Definition: contactgrantleeprintobject.h:30
KABPrinting::ContactGrantleePrintObject::languages
QString languages() const
KABPrinting::ContactGrantleePrintObject::title
QString title() const
QObject
KABPrinting::ContactGrantleePrintObject::role
QString role() const
KABPrinting::ContactGrantleePrintObject::nickName
QString nickName() const
KABPrinting::ContactGrantleePrintImObject
Definition: contactgrantleeprintimobject.h:22
KABPrinting::ContactGrantleePrintObject::formattedName
QString formattedName() const
QString
QList
QStringList
KABPrinting::ContactGrantleePrintObject::organization
QString organization() const
KABPrinting::ContactGrantleePrintObject::logo
QString logo() const
QImage
KABPrinting::ContactGrantleePrintObject::addresses
QVariant addresses() const
KABPrinting::ContactGrantleePrintObject::office
QString office() const
KABPrinting::ContactGrantleePrintObject::suffix
QString suffix() const
KABPrinting::ContactGrantleePrintObject::additionalName
QString additionalName() const
KABPrinting::ContactGrantleePrintGeoObject
Definition: contactgrantleeprintgeoobject.h:27
KABPrinting::ContactGrantleePrintObject::geo
QVariant geo() const
Definition: contactgrantleeprintobject.cpp:202
KABPrinting::ContactGrantleePrintObject::note
QString note() const
KABPrinting::ContactGrantleePrintAddressObject
Definition: contactgrantleeprintaddressobject.h:23
KABPrinting::ContactGrantleePrintObject::webPage
QString webPage() const
KABPrinting::ContactGrantleePrintObject::crypto
QVariant crypto() const
KABPrinting::ContactGrantleePrintObject::department
QString department() const
KABPrinting::ContactGrantleePrintObject::givenName
QString givenName() const
KABPrinting::ContactGrantleePrintObject::photo
QString photo() const
QObject::parent
QObject * parent() const
KABPrinting::ContactGrantleePrintPhoneObject
Definition: contactgrantleeprintphoneobject.h:23
KABPrinting::ContactGrantleePrintObject::emails
QStringList emails() const
KABPrinting::ContactGrantleePrintObject::addressBookName
QString addressBookName() const
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kaddressbook

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

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
  • pimprint

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