21 |
21 |
22 #ifndef CMTPCONNECTIONMGR_H |
22 #ifndef CMTPCONNECTIONMGR_H |
23 #define CMTPCONNECTIONMGR_H |
23 #define CMTPCONNECTIONMGR_H |
24 |
24 |
25 #include <e32base.h> |
25 #include <e32base.h> |
|
26 #include <bttypes.h> |
26 #include "mmtpconnectionmgr.h" |
27 #include "mmtpconnectionmgr.h" |
27 #include "mtpdebug.h" |
28 #include "mtpdebug.h" |
|
29 #include "mtp/rmtpclient.h" |
28 |
30 |
29 class CMTPConnection; |
31 class CMTPConnection; |
30 class CMTPTransportPlugin; |
32 class CMTPTransportPlugin; |
31 class MMTPTransportConnection; |
33 class MMTPTransportConnection; |
32 |
34 |
52 ~CMTPConnectionMgr(); |
54 ~CMTPConnectionMgr(); |
53 |
55 |
54 IMPORT_C CMTPConnection& ConnectionL(TUint aConnectionId) const; |
56 IMPORT_C CMTPConnection& ConnectionL(TUint aConnectionId) const; |
55 TUint ConnectionCount() const; |
57 TUint ConnectionCount() const; |
56 CMTPConnection& operator[](TInt aIndex) const; |
58 CMTPConnection& operator[](TInt aIndex) const; |
|
59 void ConnectionCloseComplete(const TUint& aConnUid); |
57 IMPORT_C void StartTransportL(TUid aTransport); |
60 IMPORT_C void StartTransportL(TUid aTransport); |
58 IMPORT_C void StartTransportL(TUid aTransport, const TAny* aParameter); |
61 IMPORT_C void StartTransportL(TUid aTransport, const TAny* aParameter); |
59 IMPORT_C void QueueTransportL( TUid aTransport, const TAny* aParameter ); |
62 IMPORT_C void QueueTransportL( TUid aTransport, const TAny* aParameter ); |
60 IMPORT_C void SetClientSId(TUid aSecureId); |
63 IMPORT_C void SetClientSId(TUid aSecureId); |
61 IMPORT_C void StopTransport(TUid aTransport); |
64 IMPORT_C void StopTransport(TUid aTransport); |
62 IMPORT_C void StopTransport( TUid aTransport, TBool aByBearer ); |
65 IMPORT_C void StopTransport( TUid aTransport, TBool aByBearer ); |
63 IMPORT_C void StopTransports(); |
66 IMPORT_C void StopTransports(); |
64 IMPORT_C TInt TransportCount() const; |
67 IMPORT_C TInt TransportCount() const; |
65 IMPORT_C TUid TransportUid(); |
68 IMPORT_C TUid TransportUid(); |
66 |
69 IMPORT_C void SetBTResumeParameter(const TBTDevAddr& aBTAddr, const TUint16& aPSMPort); |
67 |
70 |
68 private: // From MMTPConnectionMgr |
71 private: // From MMTPConnectionMgr |
69 |
72 |
70 void ConnectionClosed(MMTPTransportConnection& aTransportConnection); |
73 TBool ConnectionClosed(MMTPTransportConnection& aTransportConnection); |
71 void ConnectionOpenedL(MMTPTransportConnection& aTransportConnection); |
74 void ConnectionOpenedL(MMTPTransportConnection& aTransportConnection); |
72 TBool DeleteConnection(TUint aConnectionId); |
|
73 TUid ClientSId(); |
75 TUid ClientSId(); |
74 |
76 |
75 private: |
77 private: |
76 |
78 |
77 CMTPConnectionMgr(); |
79 CMTPConnectionMgr(); |
102 * Active object which starts suspended transport asynchronously |
104 * Active object which starts suspended transport asynchronously |
103 */ |
105 */ |
104 CAsyncCallBack* iTransportTrigger; |
106 CAsyncCallBack* iTransportTrigger; |
105 |
107 |
106 /** |
108 /** |
|
109 * It will store the bluetooth address of remote device. |
|
110 */ |
|
111 TMTPBTRemoteDevice iRemoteDevice; |
|
112 |
|
113 /** |
107 FLOGGER debug trace member variable. |
114 FLOGGER debug trace member variable. |
108 */ |
115 */ |
109 __FLOG_DECLARATION_MEMBER_MUTABLE; |
116 __FLOG_DECLARATION_MEMBER_MUTABLE; |
110 }; |
117 }; |
111 #endif // CMTPCONNECTIONMGR_H |
118 #endif // CMTPCONNECTIONMGR_H |