~ubuntu-branches/ubuntu/oneiric/kde-runtime/oneiric-updates

« back to all changes in this revision

Viewing changes to nepomuk/services/storage/classandpropertytree.h

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muškovac, Romain Perier, Philip Muškovac
  • Date: 2011-07-26 22:28:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110726222856-p4wgvqr2jy03gmac
Tags: 4:4.7.0a-0ubuntu1
[ Romain Perier ]
* Remove dont_show_netattach_outside_kde.diff, applied on upstream
* Refresh kubuntu_nodisplay_knetattach.diff

[ Philip Muškovac ]
* New upstream release
* Bump various breaks/replaces to catch the package version from the
  kubuntu-ppa.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
 
40
40
namespace Nepomuk {
 
41
 
41
42
class SimpleResource;
 
43
class SimpleResourceGraph;
 
44
 
42
45
class ClassAndPropertyTree : public QObject, public Soprano::Error::ErrorCache
43
46
{
44
47
    Q_OBJECT
47
50
    ClassAndPropertyTree(QObject *parent = 0);
48
51
    ~ClassAndPropertyTree();
49
52
 
 
53
    /// \return \p true if \p uri is a class
 
54
    bool isKnownClass(const QUrl& uri) const;
 
55
 
50
56
    QSet<QUrl> allParents(const QUrl& uri) const;
51
57
    bool isChildOf(const QUrl& type, const QUrl& superClass) const;
52
58
 
 
59
    /// Returns true if the uri is a Class or a Property
 
60
    bool contains(const QUrl& uri) const;
 
61
 
53
62
    /**
54
63
     * Returns true if any one of the uris in \p types is a child of \p superClass
55
64
     */
74
83
    QSet<Soprano::Node> variantListToNodeSet(const QVariantList& vl, const QUrl& property) const;
75
84
 
76
85
    QList<Soprano::Statement> simpleResourceToStatementList(const Nepomuk::SimpleResource& res) const;
 
86
    QList<Soprano::Statement> simpleResourceGraphToStatementList(const Nepomuk::SimpleResourceGraph& graph) const;
77
87
 
78
88
    static ClassAndPropertyTree* self();
79
89