|
1 /* |
|
2 * Copyright (c) 2002-2007 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 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef T_SCPSUBSERVICESTATE_H |
|
20 #define T_SCPSUBSERVICESTATE_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <cchclientserver.h> |
|
24 |
|
25 class CScpSubService; |
|
26 |
|
27 /** |
|
28 * TScpSubServiceState |
|
29 * |
|
30 * @lib sipconnectionprovider.dll |
|
31 */ |
|
32 class TScpSubServiceState |
|
33 { |
|
34 public: |
|
35 |
|
36 /** |
|
37 * Constructor |
|
38 */ |
|
39 TScpSubServiceState(); |
|
40 |
|
41 /** |
|
42 * Returns state |
|
43 * @return State |
|
44 */ |
|
45 virtual TCCHSubserviceState State() const = 0; |
|
46 |
|
47 /** |
|
48 * Returns state |
|
49 * @return State |
|
50 */ |
|
51 virtual void EnableL( CScpSubService& aSubService ) const; |
|
52 |
|
53 /** |
|
54 * Disable |
|
55 * @param aSubService Sub service |
|
56 */ |
|
57 virtual TInt Disable( CScpSubService& aSubService ) const; |
|
58 |
|
59 /** |
|
60 * Network found |
|
61 * @param aSubService Sub service |
|
62 */ |
|
63 virtual void NetworkFound( CScpSubService& aSubService ) const; |
|
64 |
|
65 /** |
|
66 * Network lost |
|
67 * @param aSubService Sub service |
|
68 */ |
|
69 virtual void NetworkLost( CScpSubService& aSubService ) const; |
|
70 |
|
71 /** |
|
72 * Network not found |
|
73 * @param aSubService Sub service |
|
74 */ |
|
75 virtual void NetworkNotFound( CScpSubService& aSubService ) const; |
|
76 |
|
77 /** |
|
78 * Service connection failed |
|
79 * @param aSubService Sub service |
|
80 */ |
|
81 virtual void ServiceConnectionFailed( CScpSubService& aSubService ) const; |
|
82 |
|
83 /** |
|
84 * Service connection failed |
|
85 * @param aSubService Sub service |
|
86 */ |
|
87 virtual void ServiceInvalidSettings( CScpSubService& aSubService ) const; |
|
88 |
|
89 /** |
|
90 * Service connected |
|
91 * @param aSubService Sub service |
|
92 */ |
|
93 virtual void ServiceConnected( CScpSubService& aSubService ) const; |
|
94 |
|
95 /** |
|
96 * Service disconnected |
|
97 * @param aSubService Sub service |
|
98 */ |
|
99 virtual void ServiceDisconnected( CScpSubService& aSubService ) const; |
|
100 |
|
101 /** |
|
102 * Bandwidth limited |
|
103 * @param aSubService Sub service |
|
104 */ |
|
105 virtual void BandwidthLimited( CScpSubService& aSubService ) const; |
|
106 |
|
107 /** |
|
108 * Authentication failed |
|
109 * @param aSubService Sub service |
|
110 */ |
|
111 virtual void AuthenticationFailed( CScpSubService& aSubService ) const; |
|
112 |
|
113 /** |
|
114 * Roaming ongoing |
|
115 * @param aSubService Sub service |
|
116 */ |
|
117 virtual void Roaming( CScpSubService& aSubService ) const; |
|
118 |
|
119 /** |
|
120 * Service connection canceled |
|
121 * @param aSubService Sub service |
|
122 */ |
|
123 virtual void ServiceConnectionCanceled( CScpSubService& aSubService ) const; |
|
124 |
|
125 /** |
|
126 * Bearer is not supported |
|
127 * @param aSubService Sub service |
|
128 */ |
|
129 virtual void BearerNotSupported( CScpSubService& aSubService ) const; |
|
130 |
|
131 /** |
|
132 * Registration pending |
|
133 * @param aSubService Sub service |
|
134 */ |
|
135 virtual void RegistrationPending( CScpSubService& aSubService ) const; |
|
136 |
|
137 |
|
138 protected: |
|
139 |
|
140 |
|
141 void ChangeState( CScpSubService& aSubService, |
|
142 TCCHSubserviceState aState, |
|
143 TInt aError ) const; |
|
144 }; |
|
145 |
|
146 #endif // T_SCPSUBSERVICESTATE_H |
|
147 |
|
148 // End of File |