1 // Copyright (c) 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 // CRequestBase |
|
15 |
|
16 #ifndef ATIPCREQUEST_H_ |
|
17 #define ATIPCREQUEST_H_ |
|
18 |
|
19 // system include |
|
20 #include <e32base.h> |
|
21 |
|
22 // user include |
|
23 #include "atipcrequestcompleteobserver.h" |
|
24 |
|
25 //Class forward |
|
26 class CGlobalPhonemanager; |
|
27 |
|
28 /** |
|
29 * The request base which acts a single IPC request passed by dispatcher |
|
30 * |
|
31 */ |
|
32 class CRequestBase : public CBase |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Destructor |
|
37 */ |
|
38 virtual ~CRequestBase(); |
|
39 |
|
40 /** |
|
41 * Defince an interface of an IPC request to start this request asynchronously |
|
42 */ |
|
43 virtual void StartRequest(); |
|
44 |
|
45 /** |
|
46 * Set the IPC request complete observer |
|
47 */ |
|
48 void SetIpcRequestCompleteObserver(MIpcRequestCompleteObserver* aIpcCompleteObserver); |
|
49 |
|
50 /** |
|
51 * Set IPC Id |
|
52 */ |
|
53 void SetIpcId(TInt aIpcId); |
|
54 |
|
55 /** |
|
56 * Get IPC Id |
|
57 */ |
|
58 TInt IpcId(); |
|
59 protected: |
|
60 /** |
|
61 * The constructor |
|
62 */ |
|
63 CRequestBase(CGlobalPhonemanager& aPhoneGlobals); |
|
64 |
|
65 protected: |
|
66 /** |
|
67 * The global phone manager |
|
68 */ |
|
69 CGlobalPhonemanager& iPhoneGlobals; |
|
70 |
|
71 /** |
|
72 * The Ipc Request complete observer |
|
73 */ |
|
74 MIpcRequestCompleteObserver* iIpcCompleteObserver; |
|
75 |
|
76 /** |
|
77 * IPC Id |
|
78 */ |
|
79 TInt iIpcId; |
|
80 }; |
|
81 |
|
82 #endif /*ATIPCREQUEST_H_*/ |
|