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

« back to all changes in this revision

Viewing changes to nepomuk/services/storage/resourcewatcherconnection.cpp

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2014-11-20 15:46:42 UTC
  • mfrom: (18.1.5 precise-proposed)
  • Revision ID: package-import@ubuntu.com-20141120154642-hyesdbuvsk78ihtz
Tags: 4:4.8.5-0ubuntu0.3
* SECURITY UPDATE: Insufficient Input Validation By IO Slaves and
  Webkit Part
 - Add upstream_CVE-2014-8600.diff to escape protocol twice: once
   for i18n, and once for HTML
 - https://www.kde.org/info/security/advisory-20141113-1.txt
 - CVE-2014-8600
 - LP: #1393479

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    Copyright (C) 2010-11 Vishesh handa <handa.vish@gmail.com>
3
 
    Copyright (C) 2011 Sebastian Trueg <trueg@kde.org>
 
3
    Copyright (C) 2011-2012 Sebastian Trueg <trueg@kde.org>
4
4
 
5
5
    This program is free software; you can redistribute it and/or modify
6
6
    it under the terms of the GNU General Public License as published by
26
26
#include <QtDBus/QDBusObjectPath>
27
27
#include <QtDBus/QDBusServiceWatcher>
28
28
 
29
 
Nepomuk::ResourceWatcherConnection::ResourceWatcherConnection( ResourceWatcherManager* parent, bool hasProperties )
 
29
Nepomuk::ResourceWatcherConnection::ResourceWatcherConnection( ResourceWatcherManager* parent )
30
30
    : QObject( parent ),
31
 
      m_hasProperties( hasProperties ),
32
31
      m_manager(parent)
33
32
{
34
33
}
38
37
    m_manager->removeConnection(this);
39
38
}
40
39
 
41
 
bool Nepomuk::ResourceWatcherConnection::hasProperties() const
42
 
{
43
 
    return m_hasProperties;
44
 
}
45
 
 
46
40
QDBusObjectPath Nepomuk::ResourceWatcherConnection::registerDBusObject( const QString& dbusClient, int id )
47
41
{
48
42
    // build the dbus object path from the id and register the connection as a Query dbus object
67
61
    deleteLater();
68
62
}
69
63
 
 
64
void Nepomuk::ResourceWatcherConnection::setResources(const QStringList &resources)
 
65
{
 
66
    m_manager->setResources(this, resources);
 
67
}
 
68
 
 
69
void Nepomuk::ResourceWatcherConnection::addResource(const QString &resource)
 
70
{
 
71
    m_manager->addResource(this, resource);
 
72
}
 
73
 
 
74
void Nepomuk::ResourceWatcherConnection::removeResource(const QString &resource)
 
75
{
 
76
    m_manager->removeResource(this, resource);
 
77
}
 
78
 
 
79
void Nepomuk::ResourceWatcherConnection::setProperties(const QStringList &properties)
 
80
{
 
81
    m_manager->setProperties(this, properties);
 
82
}
 
83
 
 
84
void Nepomuk::ResourceWatcherConnection::addProperty(const QString &property)
 
85
{
 
86
    m_manager->addProperty(this, property);
 
87
}
 
88
 
 
89
void Nepomuk::ResourceWatcherConnection::removeProperty(const QString &property)
 
90
{
 
91
    m_manager->removeProperty(this, property);
 
92
}
 
93
 
 
94
void Nepomuk::ResourceWatcherConnection::setTypes(const QStringList &types)
 
95
{
 
96
    m_manager->setTypes(this, types);
 
97
}
 
98
 
 
99
void Nepomuk::ResourceWatcherConnection::addType(const QString &type)
 
100
{
 
101
    m_manager->addType(this, type);
 
102
}
 
103
 
 
104
void Nepomuk::ResourceWatcherConnection::removeType(const QString &type)
 
105
{
 
106
    m_manager->removeType(this, type);
 
107
}
 
108
 
70
109
#include "resourcewatcherconnection.moc"