~ubuntu-branches/ubuntu/utopic/nepomuk-core/utopic

« back to all changes in this revision

Viewing changes to services/storage/graphmaintainer.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2012-07-26 22:43:09 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120726224309-pf2v1e78ee7uljjp
Tags: 4:4.9.0a-0ubuntu1
* Use direct build-depends versions rather than kde-sc-dev-latest
* New upstream release
* New symbols, rename libnepomukcore4 to libnepomukcore4abi and enable Debian ABI manager

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
   This file is part of the Nepomuk KDE project.
3
 
   Copyright (C) 2011 Sebastian Trueg <trueg@kde.org>
4
 
 
5
 
   This library is free software; you can redistribute it and/or
6
 
   modify it under the terms of the GNU Lesser General Public
7
 
   License as published by the Free Software Foundation; either
8
 
   version 2.1 of the License, or (at your option) version 3, or any
9
 
   later version accepted by the membership of KDE e.V. (or its
10
 
   successor approved by the membership of KDE e.V.), which shall
11
 
   act as a proxy defined in Section 6 of version 3 of the license.
12
 
 
13
 
   This library is distributed in the hope that it will be useful,
14
 
   but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16
 
   Lesser General Public License for more details.
17
 
 
18
 
   You should have received a copy of the GNU Lesser General Public
19
 
   License along with this library.  If not, see <http://www.gnu.org/licenses/>.
20
 
*/
21
 
 
22
 
#ifndef NEPOMUK_GRAPHMAINTAINER_H
23
 
#define NEPOMUK_GRAPHMAINTAINER_H
24
 
 
25
 
#include <QtCore/QThread>
26
 
 
27
 
namespace Soprano {
28
 
class Model;
29
 
}
30
 
 
31
 
namespace Nepomuk2 {
32
 
 
33
 
/**
34
 
 * The graph maintainer takes care of cleaning up danging data like
35
 
 * empty graphs which have been left by old or buggy code.
36
 
 */
37
 
class GraphMaintainer : public QThread
38
 
{
39
 
    Q_OBJECT
40
 
 
41
 
public:
42
 
    GraphMaintainer(Soprano::Model *model);
43
 
    ~GraphMaintainer();
44
 
 
45
 
private:
46
 
    void run();
47
 
 
48
 
    Soprano::Model* m_model;
49
 
    bool m_canceled;
50
 
};
51
 
}
52
 
 
53
 
#endif // NEPOMUK_GRAPHMAINTAINER_H