|
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 : sipprofilestateunreginprog.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 CSIPPROFILERESTATEUNREGINPROG_H |
|
31 #define CSIPPROFILERESTATEUNREGINPROG_H |
|
32 |
|
33 // INCLUDES |
|
34 #include <e32base.h> |
|
35 #include <ecom/implementationinformation.h> |
|
36 #include "sip.h" |
|
37 #include "SipProfileState.h" |
|
38 #include "sipconcreteprofile.h" |
|
39 |
|
40 //FORWARD DECLARATIONS |
|
41 |
|
42 class CSIPProfileCacheItem; |
|
43 |
|
44 // CLASS DECLARATION |
|
45 |
|
46 /** |
|
47 * Class provides functionality for profile state automation |
|
48 * Unregistration in progress state. |
|
49 * @lib |
|
50 */ |
|
51 class CSIPProfileStateUnregInProg: public CSIPProfileState |
|
52 { |
|
53 public: // Constructors and destructor |
|
54 |
|
55 /** |
|
56 * Two-phased constructor. |
|
57 */ |
|
58 static CSIPProfileStateUnregInProg* NewL(CSIPPluginDirector& aDirector); |
|
59 |
|
60 /** |
|
61 * Destructor. |
|
62 */ |
|
63 virtual ~CSIPProfileStateUnregInProg(); |
|
64 |
|
65 public: // From CSIPProfileState |
|
66 |
|
67 CSIPConcreteProfile::TStatus Name() const; |
|
68 |
|
69 void UpdateRegistrationL( |
|
70 CSIPProfileCacheItem& aItem, |
|
71 const MSIPExtendedConcreteProfileObserver& aObserver); |
|
72 |
|
73 void EnableL( |
|
74 CSIPProfileCacheItem& aItem, |
|
75 const MSIPExtendedConcreteProfileObserver& aObserver); |
|
76 |
|
77 |
|
78 void EnableSnapInUseL( |
|
79 CSIPProfileCacheItem& aItem, |
|
80 const MSIPExtendedConcreteProfileObserver& aObserver, |
|
81 TUint32 aSnapId); |
|
82 |
|
83 void DisableL( |
|
84 CSIPProfileCacheItem& aItem, |
|
85 const MSIPExtendedConcreteProfileObserver& aObserver); |
|
86 |
|
87 void RegistrationStatusEventL( |
|
88 CSIPProfileCacheItem& aItem, |
|
89 CSIPConcreteProfile::TStatus aStatus); |
|
90 |
|
91 TBool ErrorOccurred(CSIPProfileCacheItem& aItem, TInt aError); |
|
92 |
|
93 public: // New functions |
|
94 |
|
95 /** |
|
96 * Sets next automaton states. |
|
97 * @param aUnregistered Unregistered state |
|
98 * @param aUnregistered Registered state |
|
99 */ |
|
100 void SetNeighbourStates(CSIPProfileState& aUnregistered, |
|
101 CSIPProfileState& aRegistered); |
|
102 |
|
103 private: |
|
104 |
|
105 /** |
|
106 * Constructor. |
|
107 */ |
|
108 CSIPProfileStateUnregInProg(CSIPPluginDirector& aDirector); |
|
109 |
|
110 private: |
|
111 |
|
112 CSIPProfileState* iUnregistered; |
|
113 CSIPProfileState* iRegistered; |
|
114 }; |
|
115 |
|
116 #endif |
|
117 |