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

« back to all changes in this revision

Viewing changes to services/storage/resourcewatchermanager.cpp

  • 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:
41
41
using namespace Soprano::Vocabulary;
42
42
 
43
43
namespace {
44
 
QDBusVariant nodeToVariant(const Soprano::Node& node) {
 
44
QVariant nodeToVariant(const Soprano::Node& node) {
45
45
    if(node.isResource()) {
46
 
        return QDBusVariant(node.uri());
 
46
        return QVariant(node.uri().toString());
47
47
    }
48
48
    else {
49
 
        return QDBusVariant(node.literal().variant());
 
49
        return QVariant(node.literal().variant());
50
50
    }
51
51
}
52
52
 
54
54
    QVariantList list;
55
55
    list.reserve(nodes.size());
56
56
    foreach( const Soprano::Node &n, nodes ) {
57
 
        list << nodeToVariant(n).variant();
 
57
        list << nodeToVariant(n);
58
58
    }
59
59
 
60
60
    return list;
121
121
void Nepomuk2::ResourceWatcherManager::addStatement(const Soprano::Statement& st)
122
122
{
123
123
    // FIXME!
124
 
    kError() << "FIXME";
125
124
    //addProperty( st.subject(), st.predicate().uri(), QList<Soprano::Node>() << st.object() );
126
125
}
127
126