1 /* |
|
2 * Copyright (c) 2007-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: interface for message handling |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MIMCVENGINESERVICESESSIONHANDLER_H |
|
19 #define MIMCVENGINESERVICESESSIONHANDLER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32def.h> |
|
23 #include <e32base.h> |
|
24 #include <bamdesca.h> |
|
25 |
|
26 #include "imcvuiliterals.h" |
|
27 |
|
28 // CLASS DECLARATION |
|
29 class TXIMPRequestId; |
|
30 /** |
|
31 * Observer interface to handle message container changes. |
|
32 * |
|
33 * @lib imcvengine.dll |
|
34 * @since 5.0 |
|
35 */ |
|
36 // FORWARD CLASS DECLERATIONS |
|
37 |
|
38 class MIMCVEngineServiceSessionHandler |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 /** |
|
44 * @see HandleDeliveryReportL |
|
45 * to handle the new message delivery report |
|
46 * @param aResultError, delivery report |
|
47 * @param aText, msg to send |
|
48 */ |
|
49 virtual void HandleDeliveryReportL(TXIMPRequestId aOperatioCode, TInt aResult ) = 0 ; |
|
50 |
|
51 /** |
|
52 * @see HandleConnectionTerminatedL |
|
53 * to handle the connection lost |
|
54 * @param aReason, reason report |
|
55 */ |
|
56 virtual void HandleConnectionEventL( TIMCVConnectionState aState, TInt aReason ) = 0 ; |
|
57 |
|
58 public: // For protection. |
|
59 |
|
60 /** |
|
61 * Destructor for protection |
|
62 */ |
|
63 virtual ~MIMCVEngineServiceSessionHandler(){} |
|
64 }; |
|
65 |
|
66 /** |
|
67 * Observer interface to handle message container changes. |
|
68 * |
|
69 * @lib imcvengine.dll |
|
70 * @since 5.0 |
|
71 */ |
|
72 class MIMCVEngineServiceSessionObserver |
|
73 { |
|
74 |
|
75 public: |
|
76 /** |
|
77 * register MIMCVEngineServiceSessionHandler class to listen the event |
|
78 */ |
|
79 virtual void RegisterObserver(MIMCVEngineServiceSessionHandler* aObserver) = 0 ; |
|
80 /** |
|
81 * unregister MIMCVEngineServiceSessionHandler class to avoid the event |
|
82 */ |
|
83 virtual void UnRegisterObserver(MIMCVEngineServiceSessionHandler* aObserver) = 0 ; |
|
84 |
|
85 public: // For protection. |
|
86 |
|
87 /** |
|
88 * Destructor for protection |
|
89 */ |
|
90 virtual ~MIMCVEngineServiceSessionObserver(){} |
|
91 }; |
|
92 #endif // MIMCVENGINESERVICESESSIONHANDLER_H |
|
93 |
|
94 // End of File |
|