equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: CQueueHandler class declaration. |
14 * Description: CQueueHandler class declaration. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 #ifndef __VOIPSERVERCALLBACKHANDLERSRV_H |
18 #ifndef VOIPSERVERCALLBACKHANDLERSRV_H |
19 #define __VOIPSERVERCALLBACKHANDLERSRV_H |
19 #define VOIPSERVERCALLBACKHANDLERSRV_H |
20 |
20 |
21 // INCLUDES |
21 // INCLUDES |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 #include <e32msgqueue.h> |
23 #include <e32msgqueue.h> |
24 #include "VoIPAudioClientServer.h" // for TVoIPMsgBuf |
24 #include "VoIPAudioClientServer.h" // for TVoIPMsgBuf |
33 virtual void Event(TInt aEventType, TInt aError) = 0; |
33 virtual void Event(TInt aEventType, TInt aError) = 0; |
34 }; |
34 }; |
35 |
35 |
36 /** |
36 /** |
37 * CQueueHandler |
37 * CQueueHandler |
38 * |
|
39 */ |
38 */ |
40 class CQueueHandlerSrv : public CActive |
39 class CQueueHandlerSrv : public CActive |
41 { |
40 { |
42 public: |
41 public: |
43 |
42 |
44 /** |
43 /** |
45 * NewL() |
44 * NewL() |
46 * Contructor that takes single queue pointer |
45 * Contructor that takes single queue pointer |
47 * |
|
48 */ |
46 */ |
49 static CQueueHandlerSrv* NewL(MQueueHandlerObserverSrv* aObserver, |
47 static CQueueHandlerSrv* NewL(MQueueHandlerObserverSrv* aObserver, |
50 RMsgQueue<TVoIPMsgBuf>* aMsgQueue); |
48 RMsgQueue<TVoIPMsgBuf>* aMsgQueue); |
51 |
49 |
52 /** |
50 /** |
55 ~CQueueHandlerSrv(); |
53 ~CQueueHandlerSrv(); |
56 |
54 |
57 /** |
55 /** |
58 * Start |
56 * Start |
59 * Starts listening for events. |
57 * Starts listening for events. |
60 * |
|
61 */ |
58 */ |
62 void Start(); |
59 void Start(); |
63 |
60 |
64 /** |
61 /** |
65 * Returns request status. |
62 * Returns request status. |
86 MQueueHandlerObserverSrv* iObserver; // (not owned) |
83 MQueueHandlerObserverSrv* iObserver; // (not owned) |
87 RMsgQueue<TVoIPMsgBuf>* iMsgQueue; |
84 RMsgQueue<TVoIPMsgBuf>* iMsgQueue; |
88 |
85 |
89 }; |
86 }; |
90 |
87 |
91 #endif // __VOIPSERVERCALLBACKHANDLERSRV_H |
88 #endif // VOIPSERVERCALLBACKHANDLERSRV_H |
92 |
89 |
93 // End of File |
90 // End of File |