equal
deleted
inserted
replaced
28 |
28 |
29 using namespace SymbianAvctp; |
29 using namespace SymbianAvctp; |
30 |
30 |
31 class CControlCommand; |
31 class CControlCommand; |
32 class CRcpRouter; |
32 class CRcpRouter; |
33 class CRemConBearerAvrcp; |
33 class MRemConControlCommandInterface; |
34 class MRemConBearerObserver; |
34 class MRemConBearerObserver; |
35 NONSHARABLE_CLASS(CRcpOutgoingCommandHandler) : public CBase, public MOutgoingCommandHandler |
35 NONSHARABLE_CLASS(CRcpOutgoingCommandHandler) : public CBase, public MOutgoingCommandHandler |
36 { |
36 { |
37 public: |
37 public: |
38 // Construction/Destruction |
38 // Construction/Destruction |
39 static CRcpOutgoingCommandHandler* NewL(CRemConBearerAvrcp& aBearer, |
39 static CRcpOutgoingCommandHandler* NewL(MRemConControlCommandInterface& aCommandInterface, |
40 MRemConBearerObserver& aObserver, |
40 MRemConBearerObserver& aObserver, |
41 CRcpRouter& aRouter, |
41 CRcpRouter& aRouter, |
42 CDeltaTimer& aTimer); |
42 CDeltaTimer& aTimer); |
43 ~CRcpOutgoingCommandHandler(); |
43 ~CRcpOutgoingCommandHandler(); |
44 |
44 |
66 TUint aId, |
66 TUint aId, |
67 RBuf8& aCommandData, |
67 RBuf8& aCommandData, |
68 const TBTDevAddr& aAddr); |
68 const TBTDevAddr& aAddr); |
69 |
69 |
70 private: |
70 private: |
71 CRcpOutgoingCommandHandler(CRemConBearerAvrcp& aBearer, |
71 CRcpOutgoingCommandHandler(MRemConControlCommandInterface& aCommandInterface, |
72 MRemConBearerObserver& aObserver, |
72 MRemConBearerObserver& aObserver, |
73 CRcpRouter& aRouter, |
73 CRcpRouter& aRouter, |
74 CDeltaTimer& aTimer); |
74 CDeltaTimer& aTimer); |
75 |
75 |
76 // Internal send utility funcs |
76 // Internal send utility funcs |
103 void ProcessReceiveResponse(CAVCFrame* aFrame, |
103 void ProcessReceiveResponse(CAVCFrame* aFrame, |
104 TBool aIpidBitSet, |
104 TBool aIpidBitSet, |
105 CControlCommand* aCommand, |
105 CControlCommand* aCommand, |
106 TBool aNotify); |
106 TBool aNotify); |
107 private: |
107 private: |
108 TTransactionLabel iCurrentTrans; |
108 TTransactionLabel iCurrentTrans; |
109 TDblQue<CControlCommand> iCommandQueue; |
109 TDblQue<CControlCommand> iCommandQueue; |
110 TDblQue<CControlCommand> iNotifyCommandQueue; |
110 TDblQue<CControlCommand> iNotifyCommandQueue; |
111 |
111 |
112 CRemConBearerAvrcp& iBearer; |
112 MRemConControlCommandInterface& iCommandInterface; |
113 MRemConBearerObserver& iObserver; |
113 MRemConBearerObserver& iObserver; |
114 CRcpRouter& iRouter; |
114 CRcpRouter& iRouter; |
115 CDeltaTimer& iTimer; |
115 CDeltaTimer& iTimer; |
116 |
116 |
117 CControlCommand* iUnreleasedCommand; |
117 CControlCommand* iUnreleasedCommand; |
118 TBool iUnreleasedHasResponse; |
118 TBool iUnreleasedHasResponse; |
119 TInt iReleaseTimerExpiryCount; |
119 TInt iReleaseTimerExpiryCount; |
120 }; |
120 }; |