~ubuntu-branches/ubuntu/utopic/kde4libs/utopic

« back to all changes in this revision

Viewing changes to nepomuk/core/resourcedata.h

  • Committer: Package Import Robot
  • Author(s): Jonathan Kolberg
  • Date: 2012-03-03 00:25:28 UTC
  • mfrom: (1.14.15)
  • Revision ID: package-import@ubuntu.com-20120303002528-chhwyfluldkicy5k
Tags: 4:4.8.1-0ubuntu1
* New upstream release
  - Update symbol files

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#include "variant.h"
32
32
#include "thing.h"
33
 
 
34
33
#include <kurl.h>
35
34
 
36
35
#include <soprano/statement.h>
107
106
         */
108
107
        void setProperty( const QUrl& uri, const Variant& value );
109
108
 
 
109
        void addProperty( const QUrl& uri, const Variant& value );
 
110
 
110
111
        void removeProperty( const QUrl& uri );
111
112
 
112
113
        /**
176
177
        /// This is a set since Resource::determineFinalResourceData may add additional uris
177
178
        QSet<KUrl> m_kickoffUris;
178
179
 
 
180
        QHash<QUrl, Variant> m_cache;
 
181
 
 
182
        /// Updates both m_kickoffUris and ResourceMangerPrivate's list
 
183
        void updateKickOffLists( const QUrl & prop, const Variant & v );
 
184
 
179
185
    private:
180
186
        void loadType( const QUrl& type );
181
187
 
183
189
        /// Used by remove() and deleteData()
184
190
        void resetAll( bool isDelete = false );
185
191
 
186
 
        /// Updates both m_kickoffUris and ResourceMangerPrivate's list
187
 
        void updateKickOffLists( const QUrl & prop, const Variant & v );
188
 
 
189
192
        /// final resource URI created by determineUri
190
193
        KUrl m_uri;
191
194
 
199
202
 
200
203
        mutable QMutex m_modificationMutex;
201
204
 
202
 
        QHash<QUrl, Variant> m_cache;
203
205
        bool m_cacheDirty;
 
206
        bool m_addedToWatcher;
204
207
 
205
208
        // using a pointer to avoid infinite creation loop
206
209
        Thing* m_pimoThing;