Add support for dirty properties

Change-Id: Iad81cc3912f746542ad6dd25f0877343b0a97eea
Reviewed-by: Sandro S. Andrade <sandroandrade@kde.org>