# eric7.WebBrowser.SpeedDial.SpeedDialWriter

Module implementing a class to write speed dial data files.

### Global Attributes

None

### Classes

SpeedDialWriter | Class implementing a writer object to generate speed dial data files.

### Functions

None

## SpeedDialWriter

Class implementing a writer object to generate speed dial data files.

### Derived from

QXmlStreamWriter

### Class Attributes

None

### Class Methods

None

### Methods

SpeedDialWriter | Constructor
__write | Private method to write a speed dial file.
write | Public method to write a speed dial data file.

### Static Methods

None

#### SpeedDialWriter (Constructor)

SpeedDialWriter()

Constructor

#### SpeedDialWriter.__write

__write(pages, pagesPerRow, speedDialSize)

Private method to write a speed dial file.

pages (list of Page)
  list of speed dial pages
pagesPerRow (int)
  number of pages per row
speedDialSize (int)
  size of the speed dial pages

Return:
  flag indicating success

Return Type:
  bool

#### SpeedDialWriter.write

write(fileNameOrDevice, pages, pagesPerRow, speedDialSize)

Public method to write a speed dial data file.

fileNameOrDevice (str or QIODevice)
  name of the file to write or device to write to
pages (list of Page)
  list of speed dial pages
pagesPerRow (int)
  number of pages per row
speedDialSize (int)
  size of the speed dial pages

Return:
  flag indicating success

Return Type:
  bool

Up