2
Author: (2013) Christian Mollekopf <mollekopf@kolabsys.com>
4
This library is free software; you can redistribute it and/or modify it
5
under the terms of the GNU Library General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or (at your
7
option) any later version.
9
This library is distributed in the hope that it will be useful, but WITHOUT
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12
License for more details.
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to the
16
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20
#ifndef GIDEXTRACTOR_H
21
#define GIDEXTRACTOR_H
23
#include <QtCore/QString>
31
* Extracts the GID of an object contained in an akonadi item using a plugin that implements the GidExtractorInterface.
37
* Extracts the GID from @p item. using an extractor plugin.
39
static QString extractGid( const Item &item );
42
* Extracts the gid from @p item.
44
* If the item has a GID set, that GID will be returned.
45
* If the item has no GID set, and the item has a payload, the GID is extracted using extractGid().
46
* If the item has no GID set and no payload, a default constructed QString is returned.
48
static QString getGid( const Item &item );