|
1 // Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef __ASALTREQUESTSETALARM_H__ |
|
17 #define __ASALTREQUESTSETALARM_H__ |
|
18 |
|
19 #include <e32base.h> |
|
20 |
|
21 #include <asshdalarm.h> |
|
22 #include "ASSrvNotificationCoordinator.h" |
|
23 |
|
24 class RASAltClientSession; |
|
25 class CASSrvAlarmQueue; |
|
26 class MASSrvSessionCollection; |
|
27 |
|
28 class CASAltRequestSetAlarm : public CActive |
|
29 { |
|
30 public: |
|
31 static CASAltRequestSetAlarm* NewL(RASAltClientSession& aSession, CASSrvNotificationCoordinator& aParent, CASSrvAlarmQueue& aQueue, MASSrvSessionCollection& aSessionCollection); |
|
32 ~CASAltRequestSetAlarm (); |
|
33 |
|
34 void RequestSetAlarm(TAlarmId aId); |
|
35 void RequestSetAlarmCancel(TAlarmId aId); |
|
36 |
|
37 private: |
|
38 CASAltRequestSetAlarm(RASAltClientSession& aSession, CASSrvNotificationCoordinator& aParent, CASSrvAlarmQueue& aQueue, MASSrvSessionCollection& aSessionCollection); |
|
39 void ConstructL(); |
|
40 |
|
41 void RequestNextAlarm(TAlarmId aId); |
|
42 |
|
43 private: // from CActive |
|
44 void RunL(); |
|
45 void DoCancel(); |
|
46 |
|
47 private: |
|
48 RASAltClientSession& iSession; |
|
49 CASSrvNotificationCoordinator& iParent; |
|
50 CASSrvAlarmQueue& iQueue; |
|
51 MASSrvSessionCollection& iSessionCollection; |
|
52 TASShdAlarm* iAlarmCopy; |
|
53 HBufC8* iAlarmDataCopy; |
|
54 TBool iCancelledCurrentRequest; |
|
55 RArray<TAlarmId> iRequestedAlarmIds; |
|
56 }; |
|
57 |
|
58 #endif |