# eric6.Helpviewer.HelpSingleApplication

Module implementing the single application server and client for the web browser.

### Global Attributes

SAFile
SALoadUrl
SANewTab
SASearch
SAShutdown

### Classes

HelpSingleApplicationClient | Class implementing the single application client of the help viewer.
HelpSingleApplicationServer | Class implementing the single application server embedded within the Help viewer.

### Functions

None

## HelpSingleApplicationClient

Class implementing the single application client of the help viewer.

### Derived from

SingleApplicationClient

### Class Attributes

None

### Class Methods

None

### Methods

HelpSingleApplicationClient | Constructor
__loadUrl | Private method to send an URL to be loaded.
__newTab | Private method to send an URL to be loaded in a new tab.
__search | Private method to send a word to search for.
__shutdown | Private method to signal a shutdown request to the browser.
processArgs | Public method to process the command line args passed to the UI.

### Static Methods

None

#### HelpSingleApplicationClient (Constructor)

HelpSingleApplicationClient(name="")

Constructor

name (str)
  name to be used by the single application server

#### HelpSingleApplicationClient.__loadUrl

__loadUrl(url)

Private method to send an URL to be loaded.

url (str)
  URL to be loaded

#### HelpSingleApplicationClient.__newTab

__newTab(url)

Private method to send an URL to be loaded in a new tab.

url (str)
  URL to be loaded

#### HelpSingleApplicationClient.__search

__search(word)

Private method to send a word to search for.

word (str)
  to to be searched for

#### HelpSingleApplicationClient.__shutdown

__shutdown()

Private method to signal a shutdown request to the browser.

#### HelpSingleApplicationClient.processArgs

processArgs(args, disconnect=True)

Public method to process the command line args passed to the UI.

args (list of str)
  list of command line arguments
disconnect (bool)
  flag indicating to disconnect when done

Up

## HelpSingleApplicationServer

Class implementing the single application server embedded within the Help viewer.

### Signals

loadUrl(str)
  emitted to load an URL
newTab(str)
  emitted to load an URL in a new tab
search(str)
  emitted to search for a given word
shutdown()
  emitted to shut down the browser

### Derived from

SingleApplicationServer

### Class Attributes

None

### Class Methods

None

### Methods

HelpSingleApplicationServer | Constructor
__saLoadUrl | Private method to load an URL in a new tab.
__saNewTab | Private method to load an URL .
__saSearch | Private method to search for a given word.
__saShutdown | Private method to shut down the web browser.
handleCommand | Public slot to handle the command sent by the client.

### Static Methods

None

#### HelpSingleApplicationServer (Constructor)

HelpSingleApplicationServer(name="")

Constructor

name (str)
  name to be used by the single application server

#### HelpSingleApplicationServer.__saLoadUrl

__saLoadUrl(url)

Private method to load an URL in a new tab.

url (str)
  URL to be loaded

#### HelpSingleApplicationServer.__saNewTab

__saNewTab(url)

Private method to load an URL .

url (str)
  URL to be loaded

#### HelpSingleApplicationServer.__saSearch

__saSearch(word)

Private method to search for a given word.

word (str)
  word to be searched for

#### HelpSingleApplicationServer.__saShutdown

__saShutdown()

Private method to shut down the web browser.

#### HelpSingleApplicationServer.handleCommand

handleCommand(command, arguments)

Public slot to handle the command sent by the client.

command (str)
  command sent by the client
arguments (list of str)
  list of command arguments

Up