|
1 /* |
|
2 * Copyright (c) 2002-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: state machine call back api |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MHTMLMAIL_LOADSTATE_H_ |
|
21 #define MHTMLMAIL_LOADSTATE_H_ |
|
22 |
|
23 #include <MMessageLoadObserver.h> |
|
24 #include <e32cmn.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class MMailAppUiInterface; |
|
28 class MStateMachine; |
|
29 class CMailMessage; |
|
30 |
|
31 /** |
|
32 * MLoadState |
|
33 * State API. |
|
34 * |
|
35 * @since Series 60 3.0 |
|
36 */ |
|
37 class MLoadState: public MMessageLoadObserver |
|
38 { |
|
39 public: // new methods |
|
40 /** |
|
41 * NextStateL. |
|
42 * @since Series 60 3.0 |
|
43 * @return Next state object. |
|
44 * Ownership is transferred to the caller. |
|
45 */ |
|
46 virtual MLoadState* NextStateL() = 0; |
|
47 |
|
48 /** |
|
49 * MakeRequestL. |
|
50 * @since Series 60 3.0 |
|
51 * @param aStatus Async request status. |
|
52 * @return aMessage a ref to mail message. |
|
53 */ |
|
54 virtual void MakeRequestL( |
|
55 TRequestStatus& /*aStatus*/, |
|
56 CMailMessage& /*aMessage*/ ) = 0; |
|
57 |
|
58 /// Destructor |
|
59 virtual ~MLoadState() {}; |
|
60 |
|
61 protected: // data |
|
62 /// Ref: app UI call back |
|
63 MMailAppUiInterface* iAppUI; |
|
64 /// Ref: Loading status |
|
65 TRequestStatus* iLoadStatus; |
|
66 }; |
|
67 |
|
68 #endif // MHTMLMAIL_LOADSTATE_H_ |
|
69 |
|
70 // End of File |