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

« back to all changes in this revision

Viewing changes to nepomuk/services/storage/resourcewatchermanager.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:
32
32
namespace Nepomuk {
33
33
 
34
34
    class ResourceWatcherConnection;
35
 
    
 
35
 
36
36
    class ResourceWatcherManager : public QObject, protected QDBusContext
37
37
    {
38
38
        Q_OBJECT
39
39
        Q_CLASSINFO( "D-Bus Interface", "org.kde.nepomuk.ResourceWatcher" )
40
 
        
 
40
 
41
41
    public:
42
 
        ResourceWatcherManager( QObject* parent=0 );
 
42
        ResourceWatcherManager( QObject* parent = 0 );
 
43
        ~ResourceWatcherManager();
43
44
 
 
45
        void addStatement(const Soprano::Statement &st);
44
46
        void addProperty(const Soprano::Node res, const QUrl& property, const Soprano::Node& value);
45
47
        void removeProperty(const Soprano::Node res, const QUrl& property, const Soprano::Node& value);
46
48
        void createResource(const QUrl& uri, const QList<QUrl>& types);
47
49
        void removeResource(const QUrl& uri, const QList<QUrl>& types);
48
50
 
49
51
    public slots:
 
52
        /**
 
53
         * Used internally by watch() and by the unit tests to create watcher connections.
 
54
         */
 
55
        ResourceWatcherConnection* createConnection(const QList<QUrl>& resources,
 
56
                                                    const QList<QUrl>& properties,
 
57
                                                    const QList<QUrl>& types );
 
58
 
 
59
        /**
 
60
         * The main DBus methods exposed by the ResourceWatcher
 
61
         */
50
62
        Q_SCRIPTABLE QDBusObjectPath watch( const QStringList& resources,
51
63
                                            const QStringList& properties,
52
64
                                            const QStringList& types );
61
73
 
62
74
        // only used to generate unique dbus paths
63
75
        int m_connectionCount;
64
 
        
 
76
 
65
77
        friend class ResourceWatcherConnection;
66
78
    };
67
79