~ubuntu-branches/ubuntu/precise/kactivities/precise-proposed

« back to all changes in this revision

Viewing changes to service/plugins/nepomuk/NepomukPlugin.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-13 11:53:27 UTC
  • Revision ID: package-import@ubuntu.com-20111213115327-vqhdel92qx65us8y
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) 2008 Nick Shaforostoff <shaforostoff@kde.ru>
 
3
 *
 
4
 *   based on work by:
 
5
 *   Copyright (C) 2007 Thomas Georgiou <TAGeorgiou@gmail.com> and Jeff Cooper <weirdsox11@gmail.com>
 
6
 *
 
7
 *   This program is free software; you can redistribute it and/or
 
8
 *   modify it under the terms of the GNU General Public License as
 
9
 *   published by the Free Software Foundation; either version 2 of
 
10
 *   the License, or (at your option) any later version.
 
11
 *
 
12
 *   This program is distributed in the hope that it will be useful,
 
13
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 *   GNU General Public License for more details.
 
16
 *
 
17
 *   You should have received a copy of the GNU General Public License
 
18
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
 */
 
20
 
 
21
#ifndef NEPOMUK_H
 
22
#define NEPOMUK_H
 
23
 
 
24
#include <QObject>
 
25
#include <KUrl>
 
26
 
 
27
#include <Nepomuk/Resource>
 
28
 
 
29
#include "../../Plugin.h"
 
30
#include "Rankings.h"
 
31
 
 
32
class NepomukPlugin: public Plugin {
 
33
public:
 
34
    NepomukPlugin(QObject *parent = 0, const QVariantList & args = QVariantList());
 
35
 
 
36
    virtual void addEvents(const EventList & events);
 
37
 
 
38
    static NepomukPlugin * self();
 
39
 
 
40
    bool init();
 
41
 
 
42
private:
 
43
    Nepomuk::Resource createDesktopEvent(const KUrl& uri, const QDateTime& startTime, const QString& app);
 
44
 
 
45
    Nepomuk::Resource m_currentActivity;
 
46
    Rankings * m_rankings;
 
47
 
 
48
    static NepomukPlugin * s_instance;
 
49
};
 
50
 
 
51
#endif