2 * Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: location triggering server client interface
20 #ifndef LBTTRIGGERINGSYSTEMSETTINGSCHANGEEVENTNOTIFIER_H
21 #define LBTTRIGGERINGSYSTEMSETTINGSCHANGEEVENTNOTIFIER_H
24 #include <lbttriggeringsystemsettingschangeeventobserver.h>
27 * Helper class to receive triggering system settings change event
28 * through observer interface.
30 * @see RLbt::NotifyTriggeringSystemSettingChange
36 class CLbtTriggeringSystemSettingsChangeEventNotifier : public CActive
40 * Construct a triggering system settings change event notifier object.
42 * When the object is constructed. The triggering
43 * system settings change notification request is not
44 * issued to the Location Triggering Server. Client
46 * CLbtTriggeringSystemSettingsChangeEventNotifier::Start()
47 * to start notification.
49 * @param[in] aLbt A referece to RLbt object. The subsession
50 * must be opened. Otherwise a panic is raised.
51 * @param[in] aObserver A referece to the
52 * observer object to receive triggering system setting
54 * @param[in] aPriority An integer specifying the
55 * priority of this active object. CActive::TPriority
56 * defines a standard set of priorities.
58 * @panic LocTriggering ELbtServerBadHandle If the
59 * subsession of aLbt is not opened.
61 IMPORT_C static CLbtTriggeringSystemSettingsChangeEventNotifier* NewL(
63 MLbtTriggeringSystemSettingsChangeEventObserver& aObserver,
64 TInt aPriority = CActive::EPriorityStandard);
69 * If the notification is started, the
70 * destructor will cancel the notification.
72 IMPORT_C ~CLbtTriggeringSystemSettingsChangeEventNotifier();
75 * Start triggering system settings change event notification.
77 * After this function is called, when triggering
78 * system settings are changed, the
79 * client will be notified from the observer interface.
81 * Client shall call Cancel() function to stop the
82 * triggering system settings change event notification.
84 IMPORT_C void Start();
87 //Derived from CActive
89 TInt RunError( TInt aError );
96 CLbtTriggeringSystemSettingsChangeEventNotifier(
98 MLbtTriggeringSystemSettingsChangeEventObserver& aObserver,
99 TInt aPriority = CActive::EPriorityStandard );
102 * Symbian 2nd phase constructor
108 * Triggering system setting.
110 TLbtTriggeringSystemSettings iSettings;
113 * Reference to Lbt subsession.
118 * Reference to triggering system settings change observer,
120 MLbtTriggeringSystemSettingsChangeEventObserver& iObserver;
123 #endif //LBTTRIGGERINGSYSTEMSETTINGSCHANGEEVENTNOTIFIER_H