generateServerSource method

String generateServerSource()

Generates Dart code for a server to expose objects on the given D-Bus interface.

Implementation

String generateServerSource() {
  var source = '';

  source += _generateHeader();
  source += "import 'dart:io';\n";
  source += "import 'package:dbus/dbus.dart';\n";
  source += '\n';
  source += _generateObjectClass();

  return source;
}