equal
deleted
inserted
replaced
29 |
29 |
30 class CBttLogger; |
30 class CBttLogger; |
31 |
31 |
32 class CReceiver : public CActive |
32 class CReceiver : public CActive |
33 { |
33 { |
34 public: |
34 public: |
35 CReceiver(CBcaIoController& aObserver, CBttLogger* aTheLogger, TInt aMaxPacketSise); |
35 static CReceiver* NewL(CBcaIoController& aObserver, CBttLogger* aTheLogger, TUint aMaxPacketSize); |
36 static CReceiver* NewL(CBcaIoController& aObserver, CBttLogger* aTheLogger, TInt aMaxPacketSise); |
|
37 void ConstructL(); |
|
38 ~CReceiver(); |
36 ~CReceiver(); |
39 |
37 |
40 public: // Inherited from CActive. |
38 // Inherited from CActive. |
41 virtual void RunL(); |
39 virtual void RunL(); |
42 virtual void DoCancel(); |
40 virtual void DoCancel(); |
43 |
|
44 public: |
|
45 void StartListening(); |
41 void StartListening(); |
|
42 |
|
43 private: |
|
44 CReceiver(CBcaIoController& aObserver, CBttLogger* aTheLogger, TUint aMaxPacketSize); |
|
45 void ConstructL(); |
46 |
46 |
47 private: // Unowned data. |
47 private: // Unowned data. |
48 CBcaIoController& iObserver; |
48 CBcaIoController& iObserver; |
49 CBttLogger* iTheLogger; |
49 CBttLogger* iTheLogger; |
50 TInt iMaxPacketSise; |
50 TUint iMaxPacketSize; |
51 |
|
52 private: |
|
53 |
|
54 RBuf8 iData; |
51 RBuf8 iData; |
55 RMBufPacket iRMBufPacket; |
52 RMBufPacket iRMBufPacket; |
56 }; |
53 }; |
57 |
54 |
58 #endif // RECEIVER_H |
55 #endif // RECEIVER_H |