Class Prompt

  • All Implemented Interfaces:
    org.freedesktop.dbus.interfaces.DBusInterface
    Direct Known Subclasses:
    Prompt

    public abstract class Prompt
    extends Messaging
    implements org.freedesktop.dbus.interfaces.DBusInterface
    • Constructor Detail

      • Prompt

        public Prompt​(org.freedesktop.dbus.connections.impl.DBusConnection connection,
                      List<Class<? extends org.freedesktop.dbus.messages.DBusSignal>> signals,
                      String serviceName,
                      String objectPath,
                      String interfaceName)
    • Method Detail

      • prompt

        public abstract void prompt​(String window_id)
        Perform the prompt.
        Parameters:
        window_id - Platform specific window handle to use for showing the prompt.
        See Also:
        Prompt.Completed
      • prompt

        public abstract void prompt​(org.freedesktop.dbus.ObjectPath prompt)
                             throws NoSuchObject
        Perform the prompt.
        Parameters:
        prompt - Objectpath of the prompt.
        Throws:
        NoSuchObject - No such item or collection exists.
        See Also:
        Prompt.Completed
      • await

        public abstract Prompt.Completed await​(org.freedesktop.dbus.ObjectPath prompt)
                                        throws InterruptedException,
                                               NoSuchObject
        Await the user interaction with the prompt. A prompt can either be dismissed or be completed successfully.
        Parameters:
        prompt - Objectpath of the prompt.
        Returns:
        Completed or null if user input exceeds the default timeout of 300 seconds.
        Throws:
        InterruptedException - A D-Bus signal failed.
        NoSuchObject - No such item or collection exists.
        See Also:
        Prompt.Completed
      • dismiss

        public abstract void dismiss()
        Dismiss the prompt.