1 /* |
|
2 * Copyright (c) 2007-2008 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: Header for common client-server constants and enums |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef WSFCOMMON_H |
|
21 #define WSFCOMMON_H |
|
22 |
|
23 /** |
|
24 * Possible values for the persistence property of monitored IAPs |
|
25 */ |
|
26 enum TWsfIapPersistence |
|
27 { |
|
28 /** |
|
29 * Default persistence value |
|
30 */ |
|
31 EIapDeleted, |
|
32 |
|
33 /** |
|
34 * The IAP won't be deleted at all. |
|
35 */ |
|
36 EIapPersistent, |
|
37 |
|
38 /** |
|
39 * There is an owned active connection whose IAP will be invalidated |
|
40 * when a disconnect event occurs. |
|
41 */ |
|
42 EIapExpireOnDisconnect, |
|
43 |
|
44 /** |
|
45 * There is an owned active connection being used by the browser. |
|
46 * The IAP will be invalidated when a disconnect event occurs. |
|
47 */ |
|
48 EIapNestedExpireOnDisconnect, |
|
49 |
|
50 /** |
|
51 * The IAP is invalidated only if the server is forced to terminate. |
|
52 */ |
|
53 EIapExpireOnShutdown, |
|
54 |
|
55 /** |
|
56 * The IAP is invalidated when the browser exits or a disconnect occurs. |
|
57 */ |
|
58 EIapExpireOnBrowserExit, |
|
59 |
|
60 /** |
|
61 * Transient state to mark the IAP as immediately invalidated |
|
62 */ |
|
63 EIapForcedExpiry |
|
64 |
|
65 }; |
|
66 |
|
67 |
|
68 /** |
|
69 * Possible values for the auto-disconnect timer control commands. |
|
70 * Start/stop and Reset can be combined with usual bitfield operations. |
|
71 */ |
|
72 enum TWsfAutoDisconnectCommand |
|
73 { |
|
74 /** |
|
75 * Stops the timer but does not change its current value |
|
76 */ |
|
77 EAdcStopTimer = 0x0000, |
|
78 |
|
79 /** |
|
80 * Starts the timer from its previous value |
|
81 */ |
|
82 EAdcStartTimer = 0x0001, |
|
83 |
|
84 /** |
|
85 * Resets the value |
|
86 */ |
|
87 EAdcTimerReset = 0x0002 |
|
88 }; |
|
89 |
|
90 |
|
91 |
|
92 #endif // WSFCOMMON_H |
|