Changeset View
Changeset View
Standalone View
Standalone View
kaddressbookgrantlee/src/printing/grantleeprint.h
Show All 15 Lines | 1 | /* | |||
---|---|---|---|---|---|
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | Boston, MA 02110-1301, USA. | 17 | Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef GRANTLEEPRINT_H | 20 | #ifndef GRANTLEEPRINT_H | ||
21 | #define GRANTLEEPRINT_H | 21 | #define GRANTLEEPRINT_H | ||
22 | 22 | | |||
23 | #include "kaddressbook_grantlee_export.h" | 23 | #include "kaddressbook_grantlee_export.h" | ||
24 | #include <PimCommon/GenericGrantleeFormatter> | 24 | | ||
25 | #include <QObject> | 25 | #include <GrantleeTheme/GenericFormatter> | ||
26 | #include <KContacts/Addressee> | 26 | #include <KContacts/Addressee> | ||
27 | 27 | | |||
28 | namespace KAddressBookGrantlee { | 28 | namespace KAddressBookGrantlee { | ||
29 | class KADDRESSBOOK_GRANTLEE_EXPORT GrantleePrint : public PimCommon::GenericGrantleeFormatter | 29 | class KADDRESSBOOK_GRANTLEE_EXPORT GrantleePrint : public GrantleeTheme::GenericFormatter | ||
30 | { | 30 | { | ||
31 | Q_OBJECT | | |||
32 | public: | 31 | public: | ||
33 | explicit GrantleePrint(QObject *parent = nullptr); | 32 | GrantleePrint(); | ||
34 | explicit GrantleePrint(const QString &themePath, QObject *parent = nullptr); | 33 | explicit GrantleePrint(const QString &themePath); | ||
35 | ~GrantleePrint(); | 34 | ~GrantleePrint(); | ||
36 | 35 | | |||
37 | Q_REQUIRED_RESULT QString contactsToHtml(const KContacts::Addressee::List &contacts); | 36 | Q_REQUIRED_RESULT QString contactsToHtml(const KContacts::Addressee::List &contacts); | ||
38 | 37 | | |||
39 | private: | 38 | private: | ||
40 | void init(); | 39 | void init(); | ||
41 | }; | 40 | }; | ||
42 | } | 41 | } | ||
43 | #endif // GRANTLEEPRINT_H | 42 | #endif // GRANTLEEPRINT_H |