added setPriority function code and placeholder for the handleSetPriorityReply slot