Abstract desktop notifications to a class