1 /* |
|
2 * Copyright (c) 2003-2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: This file contains the header file of the MPEMessageSender class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MPEMESSAGESENDER_H |
|
21 #define MPEMESSAGESENDER_H |
|
22 |
|
23 //INCLUDES |
|
24 #include <pevirtualengine.h> |
|
25 |
|
26 // CLASS DECLARATION |
|
27 |
|
28 /** |
|
29 * Abstract base class for message sender. |
|
30 * |
|
31 * @lib CallHandling.lib |
|
32 */ |
|
33 class MPEMessageSender |
|
34 { |
|
35 public: |
|
36 |
|
37 /** |
|
38 * Reroutes error message |
|
39 * @param aErrorCode, the error code stored after previous unsuccessful request |
|
40 * @param aCallId |
|
41 */ |
|
42 virtual void SendErrorMessage( |
|
43 const TInt aCallId, |
|
44 const TInt aErrorCode ) = 0; |
|
45 |
|
46 /** |
|
47 * Reroutes call messages |
|
48 * @param aMessage The message code of the message |
|
49 */ |
|
50 virtual void SendMessage( |
|
51 const MEngineMonitor::TPEMessagesFromPhoneEngine aMessage, |
|
52 const TInt aCallId ) = 0; |
|
53 |
|
54 /** |
|
55 * Reroutes call messages |
|
56 * @param aMessage The message code of the message |
|
57 * @param aName Name of call fill be maped to call id |
|
58 */ |
|
59 virtual void SendMessage( |
|
60 const MEngineMonitor::TPEMessagesFromPhoneEngine aMessage, |
|
61 const TName& aName ) = 0; |
|
62 |
|
63 /** |
|
64 * Reroutes call messages. |
|
65 * @param aMessage specifies the event that has taken place |
|
66 */ |
|
67 virtual void HandleInternalMessage( |
|
68 TInt aMessage ) = 0; |
|
69 }; |
|
70 |
|
71 #endif // MPEMESSAGESENDER_H |
|
72 |
|
73 //End of file |
|