Since today uses the PIM backend from libopie1, you could try adding DTM capability to the PIM classes in libopie1. This way, all PIM applications would benefit from it.
Even better would be to look into libopie2 where we already have abstractions for different backend. Contact opie-devel@handhelds.org if you want to work on this.