equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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 defines class MFsDelayedLoadingInterface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __FSDELAYEDLOADER_H__ |
|
21 #define __FSDELAYEDLOADER_H__ |
|
22 |
|
23 |
|
24 #include<e32cmn.h> |
|
25 #include<coemain.h> |
|
26 #include "FSEmailBuildFlags.h" |
|
27 |
|
28 class CFSEmailUiContactHandler; |
|
29 class CIdle; |
|
30 |
|
31 |
|
32 /** |
|
33 * MFsDelayedLoadingInterface |
|
34 */ |
|
35 class MFsDelayedLoadingInterface |
|
36 { |
|
37 public: |
|
38 virtual TInt DelayLoadCallback() = 0; |
|
39 }; |
|
40 |
|
41 |
|
42 /** |
|
43 * CFsDelayedLoader |
|
44 */ |
|
45 class CFsDelayedLoader: public CCoeStatic |
|
46 { |
|
47 public: |
|
48 static CFsDelayedLoader* InstanceL(); |
|
49 void Start(); |
|
50 ~CFsDelayedLoader(); |
|
51 CFSEmailUiContactHandler* GetContactHandlerL(); |
|
52 void AppendLoader( MFsDelayedLoadingInterface& aLoader ); |
|
53 void RemoveLoader( MFsDelayedLoadingInterface& aLoader ); |
|
54 public: |
|
55 static TInt IdleCallbackFunction( TAny* aParam ); |
|
56 private: |
|
57 CFsDelayedLoader(); |
|
58 void ConstructL(); |
|
59 private: |
|
60 CIdle* iIdle; |
|
61 TCallBack* iIdleCallback; |
|
62 CFSEmailUiContactHandler* iContactHandler; |
|
63 RPointerArray<MFsDelayedLoadingInterface> iLoaders; |
|
64 TInt iLoaderIndex; |
|
65 }; |
|
66 |
|
67 |
|
68 #endif |