56
|
1 |
/*
|
|
2 |
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
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".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description: Active Object operation for deletiong session triggers.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
#ifndef C_LBTDELETESESSIONTRIGGERS_H
|
|
20 |
#define C_LBTDELETESESSIONTRIGGERS_H
|
|
21 |
|
|
22 |
// INCLUDE FILES
|
|
23 |
#include <e32base.h>
|
|
24 |
|
|
25 |
// FORWARD DECLARATIONS
|
|
26 |
class CLbtContainer;
|
|
27 |
class CLbtNotificationMap;
|
|
28 |
class CLbtContainerUpdateFilter;
|
|
29 |
class MLbtDeleteSessionTriggerObserver;
|
|
30 |
|
|
31 |
|
|
32 |
class CLbtDeleteSessionTriggers:public CActive
|
|
33 |
{
|
|
34 |
public:
|
|
35 |
|
|
36 |
/**
|
|
37 |
* Instantiates a new object of
|
|
38 |
* CLbtDeleteSessionTriggers
|
|
39 |
*
|
|
40 |
* @param[in] aContainer reference to the container which holds
|
|
41 |
* the reference to the logic processor
|
|
42 |
* @param[in] aNotificationMap notification map in which all
|
|
43 |
* the IPC requests are stored by server logic. This notification
|
|
44 |
* map is used to retreive the appropriate message for notification
|
|
45 |
* @return a pointer to an instance of CLbtDeleteSessionTriggers
|
|
46 |
*
|
|
47 |
*/
|
|
48 |
static CLbtDeleteSessionTriggers* NewL(MLbtDeleteSessionTriggerObserver& aObserver,
|
|
49 |
CLbtContainer& aContainer,CLbtNotificationMap& aNotificationMap);
|
|
50 |
|
|
51 |
/**
|
|
52 |
* Destructor
|
|
53 |
*
|
|
54 |
*/
|
|
55 |
~CLbtDeleteSessionTriggers();
|
|
56 |
|
|
57 |
/**
|
|
58 |
* Deletes session triggers asynchronously.
|
|
59 |
* @param[in] aContainerFilter This parameter specifies the triggers which need to
|
|
60 |
* be deleted.
|
|
61 |
*/
|
|
62 |
void DeleteSessionTriggers(CLbtContainerUpdateFilter* aContainerFilter);
|
|
63 |
|
|
64 |
|
|
65 |
protected: // From CActive
|
|
66 |
void RunL();
|
|
67 |
void DoCancel();
|
|
68 |
|
|
69 |
private:
|
|
70 |
|
|
71 |
/**
|
|
72 |
* Default C++ Constructor
|
|
73 |
*
|
|
74 |
* @param[in] aContainer reference to the container which holds
|
|
75 |
* the reference to the logic processor
|
|
76 |
* @param[in] aNotificationMap notification map in which all
|
|
77 |
* the IPC requests are stored by server logic. This notification
|
|
78 |
* map is used to retreive the appropriate message for notification
|
|
79 |
*/
|
|
80 |
CLbtDeleteSessionTriggers(MLbtDeleteSessionTriggerObserver& aObserver,
|
|
81 |
CLbtContainer& aContainer,CLbtNotificationMap& aNotificationMap);
|
|
82 |
|
|
83 |
/**
|
|
84 |
* 2nd phase constuctor for instantiating member variables
|
|
85 |
*
|
|
86 |
*/
|
|
87 |
void ConstructL();
|
|
88 |
|
|
89 |
|
|
90 |
private:
|
|
91 |
// Reference to event observer
|
|
92 |
MLbtDeleteSessionTriggerObserver& iObserver;
|
|
93 |
//Reference to location triggering container
|
|
94 |
CLbtContainer& iContainer;
|
|
95 |
//Reference to Notification map
|
|
96 |
CLbtNotificationMap& iNotificationMap;
|
|
97 |
// Integer that identifies AO operation
|
|
98 |
TInt iAOIdentificationNum;
|
|
99 |
|
|
100 |
};
|
|
101 |
|
|
102 |
#endif // C_LBTDELETESESSIONTRIGGERS_H
|
|
103 |
|