MPbk2StartupMonitor Class Reference

class MPbk2StartupMonitor

Phonebook 2 start-up monitor interface. Offers a possibility to get a start-up complete event.

Constructor & Destructor Documentation

~MPbk2StartupMonitor()

~MPbk2StartupMonitor()[protected, inline, virtual]

Member Functions Documentation

DeregisterEvents(MPbk2StartupObserver &)

voidDeregisterEvents(MPbk2StartupObserver &aObserver)[pure virtual]

Removes an observer from the monitor. Does nothing the if observer does not exist.

Parameters

MPbk2StartupObserver & aObserverAn observer to be removed.

HandleStartupComplete()

voidHandleStartupComplete()[pure virtual]

Extensions that are loaded in start-up must call this after their own start-up routines have been done.

HandleStartupFailed(TInt)

voidHandleStartupFailed(TIntaError)[pure virtual]

Called if there is an error during the start-up.

Parameters

TInt aErrorError code.

NotifyViewActivationL(TUid)

voidNotifyViewActivationL(TUidaViewId)[pure virtual]

Notify the startup monitor of an application view launch. The monitor will be activated only for the first application view but the client doesn't need to worry about that.

Must be called from the application view's DoActivateL if the view can be directly launched from other process (e.g. using CPbkViewState or CPbk2ViewState).

Uses AllContactsViewL for waiting. If you have some other view then use the specialised version.

Parameters

TUid aViewIdId of the launched view.

NotifyViewActivationL(TUid, MVPbkContactViewBase &)

voidNotifyViewActivationL(TUidaViewId,
MVPbkContactViewBase &aContactView
)[pure virtual]

Notify the startup monitor of an application view launch. The monitor will be activated only for the first application view but the client doesn't need to worry about that.

Must be called from the application view's DoActivateL if the view can be directly launched from other process (e.g. using CPbkViewState or CPbk2ViewState).

Uses given contact view for waiting.

Parameters

TUid aViewIdId of the launched view.
MVPbkContactViewBase & aContactViewThe view that will be waited by the monitor. The monitor saves the reference of aContactView until it gets it's job done. The application view must call NotifyViewDeActivation in DoDeactivate to reset the aContactView reference.

RegisterEventsL(MPbk2StartupObserver &)

voidRegisterEventsL(MPbk2StartupObserver &aObserver)[pure virtual]

Adds a new observer for the start-up process. Duplicate observers are not added.

Parameters

MPbk2StartupObserver & aObserverNew observer for the start-up process.

StartupMonitorExtension(TUid)

TAny *StartupMonitorExtension(TUid)[inline, virtual]

Returns an extension point for this interface or NULL.

Parameters

TUid