|
1 // Copyright (c) 2007-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 __SAARTCADAPTATION_H__ |
|
17 #define __SAARTCADAPTATION_H__ |
|
18 |
|
19 #include <ssm/ssmadaptation.h> |
|
20 #include "adaptationbase.h" |
|
21 |
|
22 class CStartupAdaptationAdapter; |
|
23 |
|
24 /* |
|
25 * Provides a concrete class to provide the appropriate adaptation interface |
|
26 * |
|
27 * @internalComponent |
|
28 */ |
|
29 NONSHARABLE_CLASS(CSaaRtcAdaptation) : public CAdaptationBase, public MRtcAdaptation |
|
30 { |
|
31 public: |
|
32 static CSaaRtcAdaptation* NewL(CStartupAdaptationAdapter* aAdapter); |
|
33 ~CSaaRtcAdaptation(); |
|
34 |
|
35 public: |
|
36 //from MRtcAdaptation |
|
37 virtual void Release(); |
|
38 |
|
39 virtual void ValidateRtc(TDes8& aValidityPckg, TRequestStatus& aStatus); |
|
40 virtual void SetWakeupAlarm(TDesC8& aAlarmTimePckg, TRequestStatus& aStatus); |
|
41 virtual void UnsetWakeupAlarm(TRequestStatus& aStatus); |
|
42 virtual void Cancel(); |
|
43 |
|
44 //from CAdaptationBase |
|
45 virtual void RequestComplete(const StartupAdaptation::TCommand aCommandId, TDesC8& aRetPckg); |
|
46 virtual TDesC8* ParameterPckg(); |
|
47 |
|
48 private: |
|
49 CSaaRtcAdaptation(CStartupAdaptationAdapter* aAdapter); |
|
50 |
|
51 private: |
|
52 TBuf8<1> iNullBuf; |
|
53 TDes8* iReturnDes; |
|
54 StartupAdaptation::TWakeupAlarmPckg iWakeupAlarmPckg; |
|
55 }; |
|
56 |
|
57 #endif // __SAARTCADAPTATION_H__ |