equal
deleted
inserted
replaced
17 #define PASSTHROUGHHELPER_H |
17 #define PASSTHROUGHHELPER_H |
18 |
18 |
19 #include <e32base.h> |
19 #include <e32base.h> |
20 |
20 |
21 class CRcpRouter; |
21 class CRcpRouter; |
22 class CRemConBearerAvrcp; |
22 class MRemConControlCommandInterface; |
23 class CControlCommand; |
23 class CControlCommand; |
24 NONSHARABLE_CLASS(CPassthroughHelper) : public CBase |
24 NONSHARABLE_CLASS(CPassthroughHelper) : public CBase |
25 { |
25 { |
26 public: |
26 public: |
27 static CPassthroughHelper* NewL(CRcpRouter& aRouter, CRemConBearerAvrcp& aBearer, CDeltaTimer& aTimer); |
27 static CPassthroughHelper* NewL(CRcpRouter& aRouter, MRemConControlCommandInterface& aCommandInterface, CDeltaTimer& aTimer); |
28 ~CPassthroughHelper(); |
28 ~CPassthroughHelper(); |
29 |
29 |
30 void Disconnect(); |
30 void Disconnect(); |
31 |
31 |
32 void HandlePassthrough(CControlCommand& aCommand); // FIXME for now |
32 void HandlePassthrough(CControlCommand& aCommand); // FIXME for now |
33 private: |
33 private: |
34 CPassthroughHelper(CRcpRouter& aRouter, CRemConBearerAvrcp& aAvrcp, CDeltaTimer& aTimer); |
34 CPassthroughHelper(CRcpRouter& aRouter, MRemConControlCommandInterface& aCommandInterface, CDeltaTimer& aTimer); |
35 void ConstructL(); |
35 void ConstructL(); |
36 |
36 |
37 void Respond(CControlCommand& aCommand, TInt aErr); |
37 void Respond(CControlCommand& aCommand, TInt aErr); |
38 void HandledCommand(CControlCommand& aCommand); |
38 void HandledCommand(CControlCommand& aCommand); |
39 |
39 |
50 static TInt HoldExpiry(TAny* aExpiryInfo); |
50 static TInt HoldExpiry(TAny* aExpiryInfo); |
51 static TInt ReleaseExpiry(TAny* aExpiryInfo); |
51 static TInt ReleaseExpiry(TAny* aExpiryInfo); |
52 |
52 |
53 private: |
53 private: |
54 CRcpRouter& iRouter; |
54 CRcpRouter& iRouter; |
55 CRemConBearerAvrcp& iBearer; |
55 MRemConControlCommandInterface& iCommandInterface; |
56 CDeltaTimer& iTimer; |
56 CDeltaTimer& iTimer; |
57 CControlCommand* iPreviousPassthrough; |
57 CControlCommand* iPreviousPassthrough; |
58 }; |
58 }; |
59 |
59 |
60 #endif // PASSTHROUGHHELPER_H |
60 #endif // PASSTHROUGHHELPER_H |