2
* Copyright 2013 Canonical Ltd.
4
* This file is part of contact-service-app.
6
* contact-service-app is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; version 3.
10
* contact-service-app is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
#ifndef __GALERA_FETCH_HINT_H__
20
#define __GALERA_FETCH_HINT_H__
22
#include <QtContacts/QContactFetchHint>
23
#include <QtContacts/QContactDetail>
24
#include <QtContacts/QContact>
32
FetchHint(const QtContacts::QContactFetchHint &hint);
33
FetchHint(const QString &hint);
34
FetchHint(const FetchHint &other);
38
QString toString() const;
39
QStringList fields() const;
40
QtContacts::QContactFetchHint toContactFetchHint() const;
41
static QMap<QString, QtContacts::QContactDetail::DetailType> contactFieldNames();
42
static QList<QtContacts::QContactDetail::DetailType> parseFieldNames(QStringList fieldNames);
45
QtContacts::QContactFetchHint m_hint;
52
static QtContacts::QContactFetchHint buildFilter(const QString &originalHint);