equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_STUBFAPISPEC_H |
|
19 #define C_STUBFAPISPEC_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include <apibehavior.h> |
|
23 #include "stubsrvconst.h" |
|
24 |
|
25 class CStubSrvSess; |
|
26 |
|
27 class CApiExecutor : public CActive |
|
28 { |
|
29 |
|
30 public: |
|
31 |
|
32 static CApiExecutor* NewL(); |
|
33 |
|
34 virtual ~CApiExecutor(); |
|
35 |
|
36 const TApiBehavior& ApiBehavior() const; |
|
37 |
|
38 TApiInvokeMode Mode() const; |
|
39 |
|
40 void ExecuteL(const RMessage2& aMessage, CStubSrvSess& aSession, TUint aLib, TUint aApi); |
|
41 |
|
42 void ExecuteL(const RMessage2& aMessage, CStubSrvSess& aSession, const TApiBehavior& aBeh, TInt aExeDuration); |
|
43 |
|
44 void Resume(const TApiBehavior& aBeh, TInt aExeDuration); |
|
45 |
|
46 private: |
|
47 |
|
48 void RunL(); |
|
49 |
|
50 TInt RunError(TInt aReason); |
|
51 |
|
52 void DoCancel(); |
|
53 |
|
54 private: |
|
55 |
|
56 CApiExecutor(); |
|
57 |
|
58 void ConstructL(); |
|
59 |
|
60 private: |
|
61 |
|
62 CStubSrvSess* iSess; // The associated client who started this API. |
|
63 TApiBehavior iBeh; |
|
64 |
|
65 TApiInvokeMode iMode; |
|
66 |
|
67 TInt iTimeout; |
|
68 |
|
69 RTimer iTimer; |
|
70 |
|
71 RMessage2 iMessage; |
|
72 }; |
|
73 |
|
74 #endif // C_STUBFAPISPEC_H |
|
75 |
|
76 // End of File |