Bug 303665

Summary: Port to QDBusConnection::call in ResourceData
Product: nepomuk Reporter: Vishesh Handa <me>
Component: libnepomukcoreAssignee: Nepomuk Bugs Coordination <nepomuk-bugs>
Status: RESOLVED FIXED    
Severity: task Keywords: junior-jobs
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

Description Vishesh Handa 2012-07-17 09:53:23 UTC
The ResourceData class currently uses KJobs in order to perform the low level tasks such as addProperty, removeProperty and setProperty.

Since the KJobs are not synchronous, ResourceData runs a local event loop and waits till it finishes. Running a local event loop is bad practice. It would be better to have a blocking call via QDbusConnection::call( .. ).

Relevant Code: nepomuk-core/libnepomukcore/resource/resourcedata.cpp

The arguments will have to be passed in a QDBusMessage.