[Realtime] Use QGIS API 2.