insertAttribute()

Insert an attribute into a simulated PPS object.

Synopsis:

#include <qpps/simulator.h>
 
void insertAttribute( const QString &objectPath, 
                      const QString &key, 
                      const QByteArray &value, 
                      const QByteArray &encoding );

Arguments:

objectPath
The path of the simulated PPS object.
key
The name of the attribute being inserted.
value
The attribute's value.
encoding
The attribute's encoding.

Description:

Insert an attribute named key with the specified value and encoding into the simulated object at objectPath. This function lets you simulate a process writing to a PPS object in the filesystem. The simulation is transparent to the clients that have registered for updates to that object, meaning they can read the inserted attributes as though they were stored in a real PPS object.