|
1 /* |
|
2 * Copyright (c) 2007-2009 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 * Name : sipprofilestateunregistred.h |
|
16 * Part of : Sip Profile Server |
|
17 * Interface : private |
|
18 * Class provides functionality for registration state automation |
|
19 * Version : 1.0 |
|
20 * |
|
21 */ |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 /** |
|
27 @internalComponent |
|
28 */ |
|
29 |
|
30 #ifndef CSIPPROFILERESTATEUNREGISTERED_H |
|
31 #define CSIPPROFILERESTATEUNREGISTERED_H |
|
32 |
|
33 // INCLUDES |
|
34 #include <e32base.h> |
|
35 #include "sip.h" |
|
36 #include "SipProfileState.h" |
|
37 #include "sipconcreteprofile.h" |
|
38 |
|
39 // FORWARD DECLARATIONS |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 /** |
|
44 * Class provides functionality for profile state automation |
|
45 * Unregistered state. |
|
46 * @lib |
|
47 */ |
|
48 |
|
49 class CSIPProfileStateUnregistered: public CSIPProfileState |
|
50 { |
|
51 |
|
52 public: // Constructors and destructor |
|
53 |
|
54 /** |
|
55 * Two-phased constructor. |
|
56 */ |
|
57 static CSIPProfileStateUnregistered* NewL(CSIPPluginDirector& aDirector); |
|
58 |
|
59 |
|
60 /** |
|
61 * Destructor. |
|
62 */ |
|
63 virtual ~CSIPProfileStateUnregistered(); |
|
64 |
|
65 public: // From CSIPProfileState |
|
66 |
|
67 CSIPConcreteProfile::TStatus Name() const; |
|
68 |
|
69 void EnterL(CSIPProfileCacheItem& aItem, |
|
70 TBool aMaySendRegStatusEvent, |
|
71 CSIPProfileServerCore& aServerCore); |
|
72 |
|
73 void RegisterL(CSIPProfileCacheItem& aItem); |
|
74 |
|
75 void UpdateRegistrationL( |
|
76 CSIPProfileCacheItem& aItem, |
|
77 const MSIPExtendedConcreteProfileObserver& aObserver); |
|
78 |
|
79 void EnableL( |
|
80 CSIPProfileCacheItem& aItem, |
|
81 const MSIPExtendedConcreteProfileObserver& aObserver); |
|
82 |
|
83 void EnableSnapInUseL( |
|
84 CSIPProfileCacheItem& aItem, |
|
85 const MSIPExtendedConcreteProfileObserver& aObserver, |
|
86 TUint32 aSnapId); |
|
87 |
|
88 void DisableL( |
|
89 CSIPProfileCacheItem& aItem, |
|
90 const MSIPExtendedConcreteProfileObserver& aObserver); |
|
91 |
|
92 TBool CanBePermanentlyRemoved( |
|
93 const CSIPProfileCacheItem& aItem) const; |
|
94 |
|
95 void RegistrationStatusEventL( |
|
96 CSIPProfileCacheItem& aItem, |
|
97 CSIPConcreteProfile::TStatus aStatus); |
|
98 |
|
99 TBool ErrorOccurred(CSIPProfileCacheItem& aItem, TInt aError); |
|
100 |
|
101 void IapAvailableL(CSIPProfileCacheItem& aItem, |
|
102 TUint32 aSnapId, |
|
103 TUint32 aNewIapId); |
|
104 |
|
105 public: // New functions |
|
106 |
|
107 /** |
|
108 * Sets next automaton states. |
|
109 * @param aRegInProg registration in progress state |
|
110 * @param aWaitForIAP Wait for IAP state |
|
111 */ |
|
112 void SetNeighbourStates(CSIPProfileState& aRegInProg, |
|
113 CSIPProfileState& aWaitForIAP); |
|
114 |
|
115 private: |
|
116 |
|
117 /** |
|
118 * Constructor. |
|
119 */ |
|
120 CSIPProfileStateUnregistered(CSIPPluginDirector& aDirector); |
|
121 |
|
122 private: // Data |
|
123 |
|
124 // Neightbour states, not owned |
|
125 CSIPProfileState* iRegInProg; |
|
126 CSIPProfileState* iWaitForIAP; |
|
127 }; |
|
128 |
|
129 #endif |
|
130 |