|
1 // Copyright (c) 2006-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 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef CMTPSENDOBJECTINFO_H |
|
22 #define CMTPSENDOBJECTINFO_H |
|
23 |
|
24 #include "cmtprequestprocessor.h" |
|
25 #include "mmtptransactionproxy.h" |
|
26 #include "rmtpframework.h" |
|
27 #include "rmtpproxydpsingletons.h" |
|
28 #include "mtpdebug.h" |
|
29 |
|
30 class CMTPTypeObjectInfo; |
|
31 class MMTPRequestProcessor; |
|
32 |
|
33 /** |
|
34 Implements proxy data provider SendObjectInfo request processor |
|
35 @internalComponent |
|
36 |
|
37 */ |
|
38 class CMTPSendObjectInfo : public CMTPRequestProcessor, public MMTPTransactionProxy |
|
39 { |
|
40 public: |
|
41 |
|
42 static MMTPRequestProcessor* NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
43 ~CMTPSendObjectInfo(); |
|
44 |
|
45 private: // From CMTPRequestProcessor |
|
46 |
|
47 void ServiceL(); |
|
48 TBool DoHandleResponsePhaseL(); |
|
49 TBool HasDataphase() const; |
|
50 |
|
51 private: |
|
52 |
|
53 CMTPSendObjectInfo(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection); |
|
54 void ConstructL(); |
|
55 |
|
56 private: // From MMTPTransactionProxy |
|
57 |
|
58 void ProxyReceiveDataL(MMTPType& aData, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus); |
|
59 void ProxySendDataL(const MMTPType& aData, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus); |
|
60 void ProxySendResponseL(const TMTPTypeResponse& aResponse, const TMTPTypeRequest& aRequest, MMTPConnection& aConnection, TRequestStatus& aStatus); |
|
61 void ProxyTransactionCompleteL(const TMTPTypeRequest& aRequest, MMTPConnection& aConnection); |
|
62 |
|
63 private: |
|
64 |
|
65 void DoHandleSendObjectInfoCompleteL(); |
|
66 |
|
67 private: |
|
68 |
|
69 CMTPTypeObjectInfo* iObjectInfo; |
|
70 TMTPTypeResponse iResponse; |
|
71 RMTPFramework iSingletons; |
|
72 RMTPProxyDpSingletons iProxyDpSingletons; |
|
73 |
|
74 /** |
|
75 FLOGGER debug trace member variable. |
|
76 */ |
|
77 __FLOG_DECLARATION_MEMBER_MUTABLE; |
|
78 }; |
|
79 |
|
80 #endif // CMTPSENDOBJECTINFO_H |
|
81 |