Warning, file /pim/akonadi-search/lib/resultiterator_p.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  * This file is part of the KDE Akonadi Search Project
0003  * SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in>
0004  *
0005  * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006  *
0007  */
0008 
0009 #pragma once
0010 
0011 #include <xapian.h>
0012 
0013 #include "resultiterator.h"
0014 
0015 namespace Akonadi
0016 {
0017 namespace Search
0018 {
0019 namespace PIM
0020 {
0021 class ResultIteratorPrivate
0022 {
0023 public:
0024     void init(const Xapian::MSet &mset)
0025     {
0026         m_mset = mset;
0027         m_end = m_mset.end();
0028         m_iter = m_mset.begin();
0029         m_firstElement = true;
0030     }
0031 
0032     Xapian::MSet m_mset;
0033     Xapian::MSetIterator m_iter;
0034     Xapian::MSetIterator m_end;
0035 
0036     bool m_firstElement = false;
0037 };
0038 }
0039 }
0040 }