gflow-source.vala 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /********************************************************************
  2. # Copyright 2014-2022 Daniel 'grindhold' Brendle, 2015 Daniel Espinosa <esodan@gmail.com>
  3. #
  4. # This file is part of libgtkflow.
  5. #
  6. # libgtkflow is free software: you can redistribute it and/or
  7. # modify it under the terms of the GNU Lesser General Public License
  8. # as published by the Free Software Foundation, either
  9. # version 3 of the License, or (at your option) any later
  10. # version.
  11. #
  12. # libgtkflow is distributed in the hope that it will be
  13. # useful, but WITHOUT ANY WARRANTY; without even the implied
  14. # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. # PURPOSE. See the GNU Lesser General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Lesser General Public
  18. # License along with libgtkflow.
  19. # If not, see http://www.gnu.org/licenses/.
  20. *********************************************************************/
  21. namespace GFlow {
  22. /**
  23. * The Source is a special Type of Dock that provides data.
  24. * A Source may be used by multitude of Sinks as a source of data.
  25. */
  26. public interface Source : Object, Dock {
  27. /**
  28. * Returns the sinks that this source is connected to
  29. */
  30. public abstract List<Sink> sinks { get; }
  31. /**
  32. * Returns the last value passed throguh this source
  33. */
  34. public abstract GLib.Value? get_last_value();
  35. }
  36. }