You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AbstractHangupButton.js 702B

123456789101112131415161718192021222324252627282930313233
  1. // @flow
  2. import AbstractButton from './AbstractButton';
  3. import type { Props } from './AbstractButton';
  4. /**
  5. * An abstract implementation of a button for disconnecting a conference.
  6. */
  7. export default class AbstractHangupButton<P : Props, S: *>
  8. extends AbstractButton<P, S> {
  9. iconName = 'icon-hangup';
  10. /**
  11. * Handles clicking / pressing the button, and disconnects the conference.
  12. *
  13. * @protected
  14. * @returns {void}
  15. */
  16. _handleClick() {
  17. this._doHangup();
  18. }
  19. /**
  20. * Helper function to perform the actual hangup action.
  21. *
  22. * @protected
  23. * @returns {void}
  24. */
  25. _doHangup() {
  26. // To be implemented by subclass.
  27. }
  28. }