|
1 /* |
|
2 * Copyright (c) 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: |
|
15 * GSM-specific idle state implementation. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPHONEIDLE_H |
|
21 #define CPHONEIDLE_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "cphonestateidle.h" |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 |
|
28 // CLASS DECLARATION |
|
29 /** |
|
30 * GSM-specific idle state implementation. |
|
31 */ |
|
32 class CPhoneIdle : public CPhoneStateIdle |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Destructor. |
|
38 */ |
|
39 IMPORT_C virtual ~CPhoneIdle(); |
|
40 |
|
41 /** |
|
42 * Creates the Idle state class |
|
43 * @param aStateMachine: a state machine |
|
44 * @param aViewCommandHandle: handle to the PhoneUIView |
|
45 * @return an instance of class CPhoneEmergency |
|
46 */ |
|
47 static CPhoneIdle* NewL( |
|
48 MPhoneStateMachine* aStateMachine, |
|
49 MPhoneViewCommandHandle* aViewCommandHandle, |
|
50 MPhoneCustomization* aPhoneCustomization ); |
|
51 |
|
52 /** |
|
53 * A message handling function for Phone Engine messages |
|
54 * @param aMessage Message from Phone Engine |
|
55 * @param aCallId Call id the message concerns |
|
56 */ |
|
57 IMPORT_C virtual void HandlePhoneEngineMessageL( |
|
58 const TInt aMessage, |
|
59 TInt aCallId ); |
|
60 |
|
61 protected: |
|
62 |
|
63 /** |
|
64 * By default EPOC constructor is private. |
|
65 */ |
|
66 IMPORT_C CPhoneIdle( |
|
67 MPhoneStateMachine* aStateMachine, |
|
68 MPhoneViewCommandHandle* aViewCommandHandle, |
|
69 MPhoneCustomization* aPhoneCustomization ); |
|
70 |
|
71 /** |
|
72 * ConstructL() |
|
73 */ |
|
74 IMPORT_C virtual void ConstructL(); |
|
75 |
|
76 /** |
|
77 * HandleError |
|
78 * Implements error handling framework |
|
79 * @param aErrorInfo: the error info |
|
80 */ |
|
81 IMPORT_C virtual void HandleErrorL( |
|
82 const TPEErrorInfo& aErrorInfo ); |
|
83 |
|
84 }; |
|
85 |
|
86 #endif // CPHONEIDLE_H |
|
87 |
|
88 // End of File |