~ubuntu-branches/ubuntu/quantal/kdepim/quantal

« back to all changes in this revision

Viewing changes to nepomuk_email_feeder/nepomukemailfeeder.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-15 14:17:51 UTC
  • mto: This revision was merged to the branch mainline in revision 193.
  • Revision ID: package-import@ubuntu.com-20111215141751-bmhdpiwl23wd9w26
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
    Copyright (c) 2006 Volker Krause <vkrause@kde.org>
3
 
    Copyright (c) 2008 Sebastian Trueg <trueg@kde.org>
4
 
 
5
 
    This library is free software; you can redistribute it and/or modify it
6
 
    under the terms of the GNU Library General Public License as published by
7
 
    the Free Software Foundation; either version 2 of the License, or (at your
8
 
    option) any later version.
9
 
 
10
 
    This library is distributed in the hope that it will be useful, but WITHOUT
11
 
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
 
    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
13
 
    License for more details.
14
 
 
15
 
    You should have received a copy of the GNU Library General Public License
16
 
    along with this library; see the file COPYING.LIB.  If not, write to the
17
 
    Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18
 
    02110-1301, USA.
19
 
*/
20
 
 
21
 
#ifndef AKONADI_NEPOMUK_EMAIL_FEEDER_H
22
 
#define AKONADI_NEPOMUK_EMAIL_FEEDER_H
23
 
 
24
 
#include <nepomukfeederagent.h>
25
 
 
26
 
#include <mailbox.h>
27
 
#include <contact.h>
28
 
 
29
 
#include <QtCore/QList>
30
 
#include <akonadi/agentsearchinterface.h>
31
 
#include <kmime/kmime_header_parsing.h>
32
 
 
33
 
namespace Akonadi {
34
 
 
35
 
class NepomukEMailFeeder : public NepomukFeederAgent<NepomukFast::Mailbox>, public AgentSearchInterface
36
 
{
37
 
  Q_OBJECT
38
 
  public:
39
 
    NepomukEMailFeeder( const QString &id );
40
 
    void configure(WId windowId);
41
 
 
42
 
    void updateItem( const Akonadi::Item &item, const QUrl &graphUri );
43
 
 
44
 
    void addSearch(const QString& query, const QString& queryLanguage, const Akonadi::Collection& resultCollection);
45
 
    void removeSearch(const Akonadi::Collection& resultCollection);
46
 
 
47
 
  protected:
48
 
    ItemFetchScope fetchScopeForCollection(const Akonadi::Collection& collection);
49
 
};
50
 
 
51
 
}
52
 
 
53
 
#endif