Skip to content

Wallpapers

roux g. buciu edited this page Feb 8, 2022 · 10 revisions

Overview

The wallpaper feature allows users to set a FireFox provided wallpaper as their background on the FireFox Homepage of the application. Once selected, the wallpaper will remain as the background even if that particular wallpaper was part of a limited time collection and is no longer available.

Main Interface

Most of the work that

Adding new wallpapers

Components

  • Wallpaper - Base wallpaper class that has information such as wallpaper name, type, locale availability, and ship/expiration dates. Does not include images as the requirement was to be able to store images separately.
  • WallpaperCollections - A collection of wallpapers defining the wallpaper names, type, locale availability, and ship/expration dates. When creating wallpapers, collections are the main interface used, rather than individual wallpapers.
  • WallpaperManager - The main interface for dealing with wallpaper data. Responsible for delegating storage, maintenance of selected wallpapers, and verification of resources.
  • WallpaperDataManager - Responsible for managing the available wallpapers objects, given locale/date/resource availability, for collections.
  • WallpaperResourceManager - Pesponsible for managing resources for various wallpapers
  • WallpaperFilePathProtocol - Allows you to get a file path to a specified key under the wallpapers folder of the applications documents directory. Path is: .../wallpapers/key-as-folder/key-as-file`
  • WallpaperStorageUtility - Responsible for storing, retrieving, and deleting images to the documents directory.
  • WallpaperNetworkUtility - Responsible for fetching images over the network, if the application doesn't already have those resources, given a specified url
Clone this wiki locally