|
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 __SAASIMADAPTATION_H__ |
|
17 #define __SAASIMADAPTATION_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(CSaaSimAdaptation) : public CAdaptationBase, public MSimAdaptation |
|
30 { |
|
31 public: |
|
32 static CSaaSimAdaptation* NewL(CStartupAdaptationAdapter* aAdapter); |
|
33 ~CSaaSimAdaptation(); |
|
34 |
|
35 void ProcessEventL(TSsmSimEventType aEventType); |
|
36 |
|
37 private: |
|
38 //from MSimAdaptation |
|
39 virtual void Release(); |
|
40 virtual void GetSimOwned(TDes8& aOwnedPckg, TRequestStatus& aStatus); |
|
41 virtual void GetCancel(); |
|
42 |
|
43 virtual void NotifySimEvent(TDes8& aTypePckg, TRequestStatus& aStatus); |
|
44 virtual void NotifyCancel(); |
|
45 |
|
46 //from CAdaptationBase |
|
47 virtual void RequestComplete(const StartupAdaptation::TCommand aCommandId, TDesC8& aRetPckg); |
|
48 virtual TDesC8* ParameterPckg(); |
|
49 |
|
50 private: |
|
51 CSaaSimAdaptation(CStartupAdaptationAdapter* aAdapter); |
|
52 void ConstructL(); |
|
53 |
|
54 private: |
|
55 TBuf8<1> iNullBuf; |
|
56 TDes8* iReturnDes; |
|
57 TDes8* iEventOutputBuffer; |
|
58 TRequestStatus* iEventStatus; |
|
59 RArray<TSsmSimEventType> iEventQueue; |
|
60 }; |
|
61 |
|
62 #endif // __SAASIMADAPTATION_H__ |