|
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: Base class for states |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CVTENGSTATEALERTING_H |
|
21 #define CVTENGSTATEALERTING_H |
|
22 |
|
23 // INCLUDES |
|
24 #include "CVtEngStateBase.h" |
|
25 //#include <?include_file> |
|
26 |
|
27 // CONSTANTS |
|
28 //const ?type ?constant_var = ?constant; |
|
29 |
|
30 // MACROS |
|
31 //#define ?macro ?macro_def |
|
32 |
|
33 // DATA TYPES |
|
34 //enum ?declaration |
|
35 //typedef ?declaration |
|
36 //extern ?data_type; |
|
37 |
|
38 // FUNCTION PROTOTYPES |
|
39 |
|
40 // FORWARD DECLARATIONS |
|
41 class CVtEngStateManager; |
|
42 |
|
43 // CLASS DECLARATION |
|
44 |
|
45 /** |
|
46 * Alerting state class |
|
47 * |
|
48 * @lib videoteleng |
|
49 * @since 2.6 |
|
50 */ |
|
51 NONSHARABLE_CLASS( CVtEngStateAlerting ) : public CVtEngStateBase |
|
52 { |
|
53 public: // Constructors and destructor |
|
54 |
|
55 /** |
|
56 * C++ constructor. |
|
57 */ |
|
58 CVtEngStateAlerting( |
|
59 CVtEngStateManager& aStateManager, |
|
60 CVtEngEventManager& aEventManager ); |
|
61 |
|
62 |
|
63 /** |
|
64 * Destructor. |
|
65 */ |
|
66 virtual ~CVtEngStateAlerting(); |
|
67 |
|
68 public: // From CVtEngStateBase |
|
69 |
|
70 /** |
|
71 * Updates state. May result to state transition |
|
72 */ |
|
73 virtual void UpdateL(); |
|
74 |
|
75 /** |
|
76 * Validates a command. |
|
77 */ |
|
78 virtual TBool ValidateCommand( |
|
79 const TVtEngCommandId aCommandId ); |
|
80 |
|
81 /** |
|
82 * @see CVtEngStateBase |
|
83 */ |
|
84 virtual MVtEngSessionInfo::TSessionState State() const; |
|
85 |
|
86 /** |
|
87 * |
|
88 */ |
|
89 virtual TBool HandleL( CVtEngOperation& aOp ); |
|
90 |
|
91 private: |
|
92 |
|
93 /** |
|
94 * Handles state transition to alerting. |
|
95 */ |
|
96 void DoOpenL(); |
|
97 |
|
98 |
|
99 |
|
100 }; |
|
101 |
|
102 #endif // CVTENGSTATEALERTING_H |
|
103 |
|
104 // End of File |