Information Preview Popup API: API description

Information Preview Popup API can be used by all GUI applications. It is a library API that provides an interface for construction and using the Preview Popup UI component. The interface contains only method calls that can be used for creating local objects of provided interface classes and then using these objects.

Use cases

The most important use cases of Information Preview Popup API are illustrated in Figure 1.

Figure 1: Information Preview Popup API use cases

The use cases are as follows:

Creating popup

Showing popup

Hiding popup

Deleting popup

API class structure

The class structure for Information Preview Popup API consists of three classes: CAknPreviewPopUpController, MAknPreviewPopUpObserver, and MAknPreviewPopUpContentProvider. The API class structure is shown in Figure 2 below.

Figure 2: Information Preview Popup API class structure

The CAknPreviewPopUpController class provides an interface for controlling preview popups. A separate instance of this class is required for each preview popup.

The client application using preview popup, must realize the MAknPreviewPopUpObserver interface. This interface is used as a callback hook between the actual popup and the client application. The client application receives notifications through this interface when popup is shown or hidden.

The content for the preview popup can be provided either synchronously or asynchronously. When synchronous contend building is used, the client application sets the content for the popup when the popup up is constructed. Alternatively, the MAknPreviewPopUpContentProvider interface can be used for utilizing asynchronous content building for the preview popup. In this case, the client application has to provide realization for the interface, which builds the content when requested by the interface, and then notifies the popup when content has been build.


Copyright © Nokia Corporation 2001-2008
Back to top