equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2006 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: Custom active scheduler for Active Idle Framework startup. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_AIFWSTARTUPSCHEDULER_H |
|
20 #define C_AIFWSTARTUPSCHEDULER_H |
|
21 |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 /** |
|
26 * Custom active scheduler for Active Idle Framework startup. |
|
27 */ |
|
28 NONSHARABLE_CLASS( CAiFwStartupScheduler ) : public CActiveScheduler |
|
29 { |
|
30 public: |
|
31 static CAiFwStartupScheduler* NewLC(); |
|
32 |
|
33 ~CAiFwStartupScheduler(); |
|
34 |
|
35 /** |
|
36 * Returns result code from this scheduler's execution. |
|
37 * |
|
38 * @return - KErrNone if the scheduler loop executed succesfully |
|
39 * - Any of the system-wide error codes in case of an error. |
|
40 */ |
|
41 TInt Result(); |
|
42 |
|
43 private: |
|
44 // from base class CActiveScheduler |
|
45 void Error(TInt aError) const; |
|
46 |
|
47 // Construction |
|
48 CAiFwStartupScheduler(); |
|
49 private: // data |
|
50 |
|
51 /** |
|
52 * Result code returned by Result(). |
|
53 */ |
|
54 mutable TInt iResult; |
|
55 }; |
|
56 |
|
57 |
|
58 #endif // ? C_AIFWSTARTUPSCHEDULER_H |
|
59 |