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

« back to all changes in this revision

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

  • 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) 2011 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
37
37
        Q_CLASSINFO( "D-Bus Interface", "org.kde.nepomuk.ResourceWatcherConnection" )
38
38
 
39
39
    public:
40
 
        ResourceWatcherConnection( ResourceWatcherManager* parent, bool hasProperties );
 
40
        ResourceWatcherConnection( ResourceWatcherManager* parent );
41
41
        ~ResourceWatcherConnection();
42
42
 
43
43
    signals:
44
44
        Q_SCRIPTABLE void resourceCreated( const QString & uri, const QStringList& types );
45
45
        Q_SCRIPTABLE void resourceRemoved( const QString & uri, const QStringList& types );
46
 
        Q_SCRIPTABLE void resourceTypeAdded( const QString & resUri, const QString & type );
47
 
        Q_SCRIPTABLE void resourceTypeRemoved( const QString & resUri, const QString & type );
 
46
        Q_SCRIPTABLE void resourceTypesAdded( const QString & resUri, const QStringList & type );
 
47
        Q_SCRIPTABLE void resourceTypesRemoved( const QString & resUri, const QStringList & type );
48
48
        Q_SCRIPTABLE void propertyAdded( const QString & resource,
49
49
                                         const QString & property,
50
 
                                         const QDBusVariant & value );
 
50
                                         const QVariantList & value );
51
51
        Q_SCRIPTABLE void propertyRemoved( const QString & resource,
52
52
                                           const QString & property,
53
 
                                           const QDBusVariant & value );
54
 
 
 
53
                                           const QVariantList & value );
 
54
        Q_SCRIPTABLE void propertyChanged( const QString & resource,
 
55
                                           const QString & property,
 
56
                                           const QVariantList & addedValues,
 
57
                                           const QVariantList & removedValues );
55
58
    public Q_SLOTS:
 
59
        Q_SCRIPTABLE void setResources(const QStringList& resources);
 
60
        Q_SCRIPTABLE void addResource(const QString& resource);
 
61
        Q_SCRIPTABLE void removeResource(const QString& resource);
 
62
        Q_SCRIPTABLE void setProperties(const QStringList& properties);
 
63
        Q_SCRIPTABLE void addProperty(const QString& property);
 
64
        Q_SCRIPTABLE void removeProperty(const QString& property);
 
65
        Q_SCRIPTABLE void setTypes(const QStringList& types);
 
66
        Q_SCRIPTABLE void addType(const QString& type);
 
67
        Q_SCRIPTABLE void removeType(const QString& type);
56
68
        Q_SCRIPTABLE void close();
57
69
 
58
70
    public:
59
 
        bool hasProperties() const;
60
 
 
61
71
        QDBusObjectPath registerDBusObject(const QString &dbusClient, int id);
62
72
 
63
73
    private:
64
74
        QString m_objectPath;
65
 
        bool m_hasProperties;
66
75
 
67
76
        ResourceWatcherManager* m_manager;
68
77
        QDBusServiceWatcher* m_serviceWatcher;