summaryrefslogtreecommitdiffstats
path: root/common/contactpreprocessor.h
diff options
context:
space:
mode:
authorSandro Knauß <sknauss@kde.org>2017-01-26 00:05:11 +0100
committerSandro Knauß <sknauss@kde.org>2017-01-30 10:59:30 +0100
commite61b0ab5a8eb3b5014892b9fd5ad26ebe57bccf5 (patch)
tree7c929889d1988c7cad6701e3b47dc375ae668234 /common/contactpreprocessor.h
parentd03c67ede657851735945c52895da411458cb7c4 (diff)
downloadsink-e61b0ab5a8eb3b5014892b9fd5ad26ebe57bccf5.tar.gz
sink-e61b0ab5a8eb3b5014892b9fd5ad26ebe57bccf5.zip
extract datas from VCard
Diffstat (limited to 'common/contactpreprocessor.h')
-rw-r--r--common/contactpreprocessor.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/common/contactpreprocessor.h b/common/contactpreprocessor.h
new file mode 100644
index 0000000..d3aaf39
--- /dev/null
+++ b/common/contactpreprocessor.h
@@ -0,0 +1,32 @@
1/*
2 * Copyright (C) 2017 Sandro Knauß <knauss@kolabsys.com>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program 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
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the
16 * Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20#pragma once
21
22#include "sink_export.h"
23
24#include "pipeline.h"
25
26class SINK_EXPORT ContactPropertyExtractor : public Sink::EntityPreprocessor<Sink::ApplicationDomain::Contact>
27{
28public:
29 virtual ~ContactPropertyExtractor();
30 virtual void newEntity(Sink::ApplicationDomain::Contact &mail) Q_DECL_OVERRIDE;
31 virtual void modifiedEntity(const Sink::ApplicationDomain::Contact &oldContact, Sink::ApplicationDomain::Contact &newContact) Q_DECL_OVERRIDE;
32};