Skip to Content
Common Design Patterns for Symbian OS: The Foundations of Smartphone Software
book

Common Design Patterns for Symbian OS: The Foundations of Smartphone Software

by Adrian A. I. Issott
December 2008
Intermediate to advanced
443 pages
10h 24m
English
Wiley
Content preview from Common Design Patterns for Symbian OS: The Foundations of Smartphone Software

Chapter 9. Mapping Well-Known Patterns onto Symbian OS

In this chapter, we describe the following well-known design patterns and how they are applied and used on Symbian OS:

  • Model–View–Controller (see page 332) was first described in [Buschmann et al., 1996]. Symbian OS ensures every application uses this or a variant of this pattern so that they are easier to maintain, test and port between different mobile devices.

  • Singleton (see page 346) was first described in [Gamma et al., 1994]. This popular and sometimes controversial pattern (used to ensure an object is unique) is included because the standard mechanism of implementing it using writable static data hasn't always been available to Symbian OS developers. Whilst it is available in Symbian OS v9, alternative solutions are recommended for widely used DLLs due to the large impact it can have on memory usage.

  • Adapter (see page 372) was first described in [Gamma et al., 1994]. It is commonly used for at least the following three use cases: preserving compatibility by enabling an interface to continue to be provided that is re-implemented in terms of an upgraded interface; wrapping existing components to allow them to be ported to Symbian OS; and supporting a choice of components at run time by adapting them to a plug-in interface.

  • Handle–Body (see page 385) was perhaps first described in [Coplien, 1991]. This pattern introduces an additional layer of abstraction between the client of an interface and its implementation. This is ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Cocoa Programming for OS X: The Big Nerd Ranch Guide

Cocoa Programming for OS X: The Big Nerd Ranch Guide

Aaron Hillegass, Adam Preble, Nate Chandler

Publisher Resources

ISBN: 9780470516355Purchase book