|
1 /* |
|
2 * Copyright (c) 2005 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: Internal reactive authorization observer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MCAREACTIVEAUTHOBSERVER_H |
|
20 #define MCAREACTIVEAUTHOBSERVER_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <badesca.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CCABlockingUI; |
|
28 |
|
29 class CPEngReactAuthNotifier; |
|
30 class MPEngAuthorizationRequest; |
|
31 class MPEngAuthorizationStatus; |
|
32 |
|
33 // CLASS DECLARATION |
|
34 |
|
35 /** |
|
36 * Reactive authorization observer |
|
37 * |
|
38 * Start some CActive from the callbacks and handle the logic in a callback, we |
|
39 * must not block the original PEC Engine calls. |
|
40 * |
|
41 * The CPEngReactAuthNotifier can be obtained via IM Presence. From there the |
|
42 * count of pending requests and status messages can be obtained. These are |
|
43 * then handled in the UI. |
|
44 * |
|
45 * The user must respond with the id given here (through MCAPresence methods). |
|
46 * |
|
47 * @lib chat.app |
|
48 * @since 3.0 |
|
49 */ |
|
50 class MCAReactiveAuthObserver |
|
51 { |
|
52 public: // new methods |
|
53 |
|
54 /** |
|
55 * Incoming pending reactive authorization request. |
|
56 */ |
|
57 virtual void HandleRAPendingReqL() = 0; |
|
58 |
|
59 /** |
|
60 * Incoming reactive authorization status message |
|
61 */ |
|
62 virtual void HandleRAStatusL() = 0; |
|
63 |
|
64 /* Error handler, if any of the observer methods leave. |
|
65 * @param aError The error code |
|
66 */ |
|
67 virtual void HandleRAError( TInt aError ) = 0; |
|
68 }; |
|
69 |
|
70 #endif // MCAREACTIVEAUTHOBSERVER_H |
|
71 |
|
72 // End of File |