|
1 /* |
|
2 * Copyright (c) 2008 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: implementation of single request to fw |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef _CICPSERVICEREQUEST_H__ |
|
21 #define _CICPSERVICEREQUEST_H__ |
|
22 |
|
23 // include files |
|
24 #include <e32base.h> |
|
25 #include <ximpbase.h> |
|
26 |
|
27 #include "timconnproviderenums.h" |
|
28 |
|
29 /** |
|
30 * class declaration |
|
31 * @imconnectionprovider.dll |
|
32 */ |
|
33 |
|
34 class CICPServiceRequest :public CBase |
|
35 { |
|
36 |
|
37 public: // Two-phased constructors and destructor |
|
38 |
|
39 /** |
|
40 * create the instance of this class |
|
41 * @param aRequestId, request id to use |
|
42 * @param aType, a request type |
|
43 * @return instance of this class |
|
44 */ |
|
45 static CICPServiceRequest* NewL(TXIMPRequestId& aRequestId, |
|
46 TIMConnProviderEnums::TRequestTypes aType); |
|
47 |
|
48 /** |
|
49 * create the instance of this class |
|
50 * @param aRequestId, request id to use |
|
51 * @param aType, a request type |
|
52 * @return instance of this class |
|
53 */ |
|
54 static CICPServiceRequest* NewLC(TXIMPRequestId& aRequestId, |
|
55 TIMConnProviderEnums::TRequestTypes aType); |
|
56 |
|
57 /** |
|
58 * ~CICPServiceRequest |
|
59 */ |
|
60 virtual ~CICPServiceRequest(); |
|
61 |
|
62 /** |
|
63 * StartWait |
|
64 */ |
|
65 void StartWait(); |
|
66 |
|
67 /** |
|
68 * StopWait method |
|
69 */ |
|
70 void StopWait(); |
|
71 |
|
72 /** |
|
73 * GetRequestId |
|
74 * @return the request id |
|
75 */ |
|
76 const TXIMPRequestId& GetRequestId() const; |
|
77 |
|
78 /** |
|
79 * IsWaitStarted method from context obsrver |
|
80 * check weather wait is started or not |
|
81 * @return flage |
|
82 */ |
|
83 TBool IsWaitStarted() ; |
|
84 |
|
85 /** |
|
86 * Set the Type of Request |
|
87 * @param aIsLoginReq, a request type |
|
88 */ |
|
89 void SetRequestType(TIMConnProviderEnums::TRequestTypes aIsLoginReq) ; |
|
90 |
|
91 |
|
92 /** |
|
93 * Get the Type of Request |
|
94 * @return request type |
|
95 */ |
|
96 TIMConnProviderEnums::TRequestTypes RequestType() const; |
|
97 |
|
98 private: |
|
99 |
|
100 /** |
|
101 * ConstructL |
|
102 */ |
|
103 void ConstructL(); |
|
104 |
|
105 /** |
|
106 * CICPServiceRequest |
|
107 * @param aRequestId ,request id |
|
108 * @param aType ,request type |
|
109 */ |
|
110 CICPServiceRequest(TXIMPRequestId& aRequestId, |
|
111 TIMConnProviderEnums::TRequestTypes aType); |
|
112 |
|
113 private: //data |
|
114 |
|
115 // own request id |
|
116 TXIMPRequestId iRequestId; |
|
117 |
|
118 // own active sheduler |
|
119 CActiveSchedulerWait iWait; |
|
120 |
|
121 //request type |
|
122 TIMConnProviderEnums::TRequestTypes iReqType ; |
|
123 }; |
|
124 |
|
125 #endif //_CICPSERVICEREQUEST_H__ |
|
126 |
|
127 // end of file |