williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@4
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@4
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description: Definition module for Connection Method Manager
|
williamr@2
|
15 |
*
|
williamr@2
|
16 |
*/
|
williamr@2
|
17 |
|
williamr@2
|
18 |
#ifndef CMMANAGERDEF_H
|
williamr@2
|
19 |
#define CMMANAGERDEF_H
|
williamr@2
|
20 |
|
williamr@2
|
21 |
// System includes
|
williamr@4
|
22 |
#include <e32def.h>
|
williamr@2
|
23 |
#include <e32std.h>
|
williamr@2
|
24 |
|
williamr@2
|
25 |
namespace CMManager
|
williamr@2
|
26 |
{
|
williamr@2
|
27 |
/**
|
williamr@2
|
28 |
* Metadata items
|
williamr@2
|
29 |
*/
|
williamr@2
|
30 |
enum TSnapMetadataField
|
williamr@2
|
31 |
{
|
williamr@2
|
32 |
/**
|
williamr@2
|
33 |
* If set this destination is for internet usage.
|
williamr@2
|
34 |
* There can be only one such destination.
|
williamr@2
|
35 |
* (TBool - default: EFalse)
|
williamr@2
|
36 |
* @deprecated
|
williamr@2
|
37 |
*/
|
williamr@2
|
38 |
ESnapMetadataInternet = 0x00000001,
|
williamr@2
|
39 |
|
williamr@2
|
40 |
/**
|
williamr@2
|
41 |
* If set this destination is highlighted by default
|
williamr@2
|
42 |
* in the Agent dialog.
|
williamr@2
|
43 |
* (TBool - default: EFalse)
|
williamr@2
|
44 |
*/
|
williamr@2
|
45 |
ESnapMetadataHighlight = 0x00000002,
|
williamr@2
|
46 |
|
williamr@2
|
47 |
/**
|
williamr@2
|
48 |
* If set this destination is hidden in the
|
williamr@2
|
49 |
* Agent dialog.
|
williamr@2
|
50 |
* (TBool - default: EFalse)
|
williamr@2
|
51 |
*/
|
williamr@2
|
52 |
ESnapMetadataHiddenAgent = 0x00000004,
|
williamr@2
|
53 |
/**
|
williamr@2
|
54 |
* This set of flags identifies the fixed destinations which have localised names.
|
williamr@2
|
55 |
* The possible values for this flag-set are the enums of TLocalisedDestinations.
|
williamr@2
|
56 |
*/
|
williamr@2
|
57 |
ESnapMetadataDestinationIsLocalised = 0x000000F0,
|
williamr@2
|
58 |
|
williamr@2
|
59 |
/**
|
williamr@2
|
60 |
* This set of flags identifies the fixed destinations for fixed
|
williamr@2
|
61 |
* purposes.
|
williamr@2
|
62 |
* The possible values for this flag-set are the enums of TSnapPurpose.
|
williamr@2
|
63 |
*/
|
williamr@2
|
64 |
ESnapMetadataPurpose = 0x00000F00
|
williamr@2
|
65 |
};
|
williamr@2
|
66 |
|
williamr@2
|
67 |
/**
|
williamr@2
|
68 |
* This is the enum set of the TSnapMetadataField's ESnapMetadataDestinationIsLocalised
|
williamr@2
|
69 |
*/
|
williamr@2
|
70 |
enum TLocalisedDestinations
|
williamr@2
|
71 |
{
|
williamr@2
|
72 |
/**
|
williamr@2
|
73 |
* Used to sign that the destination is not localised at all
|
williamr@2
|
74 |
*/
|
williamr@2
|
75 |
ENotLocalisedDest = 0x00000000,
|
williamr@2
|
76 |
|
williamr@2
|
77 |
/**
|
williamr@2
|
78 |
* Used to sign that the destination is localised as 'Internet'
|
williamr@2
|
79 |
*/
|
williamr@2
|
80 |
ELocalisedDestInternet = 0x00000001,
|
williamr@2
|
81 |
|
williamr@2
|
82 |
/**
|
williamr@2
|
83 |
* Used to sign that the destination is localised as 'Wap'
|
williamr@2
|
84 |
*/
|
williamr@2
|
85 |
ELocalisedDestWap = 0x00000002,
|
williamr@2
|
86 |
|
williamr@2
|
87 |
/**
|
williamr@2
|
88 |
* Used to sign that the destination is localised as 'MMS'
|
williamr@2
|
89 |
*/
|
williamr@2
|
90 |
ELocalisedDestMMS = 0x00000003,
|
williamr@2
|
91 |
|
williamr@2
|
92 |
/**
|
williamr@2
|
93 |
* Used to sign that the destination is localised as 'Intranet'
|
williamr@2
|
94 |
*/
|
williamr@2
|
95 |
ELocalisedDestIntranet = 0x00000004
|
williamr@2
|
96 |
};
|
williamr@2
|
97 |
|
williamr@2
|
98 |
/**
|
williamr@2
|
99 |
* This is the enum set of the TSnapMetadataField's ESnapMetadataPurpose
|
williamr@2
|
100 |
*/
|
williamr@2
|
101 |
enum TSnapPurpose
|
williamr@2
|
102 |
{
|
williamr@2
|
103 |
ESnapPurposeUnknown = 0x00000000,
|
williamr@2
|
104 |
|
williamr@2
|
105 |
/**
|
williamr@2
|
106 |
* Used to sign that the destination is identified as 'Internet'
|
williamr@2
|
107 |
*/
|
williamr@2
|
108 |
ESnapPurposeInternet = 0x00000001,
|
williamr@2
|
109 |
|
williamr@2
|
110 |
/**
|
williamr@2
|
111 |
* Used to sign that the destination is identified as 'Operator'
|
williamr@2
|
112 |
*/
|
williamr@2
|
113 |
ESnapPurposeOperator = 0x00000002,
|
williamr@2
|
114 |
|
williamr@2
|
115 |
/**
|
williamr@2
|
116 |
* Used to sign that the destination is identified as 'MMS'
|
williamr@2
|
117 |
*/
|
williamr@2
|
118 |
ESnapPurposeMMS = 0x00000003,
|
williamr@2
|
119 |
|
williamr@2
|
120 |
/**
|
williamr@2
|
121 |
* Used to sign that the destination is identified as 'Intranet'
|
williamr@2
|
122 |
*/
|
williamr@2
|
123 |
ESnapPurposeIntranet = 0x00000004
|
williamr@2
|
124 |
};
|
williamr@2
|
125 |
|
williamr@2
|
126 |
/**
|
williamr@2
|
127 |
* Protection Levels
|
williamr@2
|
128 |
*/
|
williamr@2
|
129 |
enum TProtectionLevel
|
williamr@2
|
130 |
{
|
williamr@2
|
131 |
EProtLevel0 = 0, /**<
|
williamr@2
|
132 |
* No protection
|
williamr@2
|
133 |
*/
|
williamr@2
|
134 |
|
williamr@2
|
135 |
EProtLevel1 = 1, /**<
|
williamr@2
|
136 |
* A destination and its contents
|
williamr@2
|
137 |
*/
|
williamr@2
|
138 |
|
williamr@2
|
139 |
EProtLevel2 = 2, /**<
|
williamr@2
|
140 |
* A destination
|
williamr@2
|
141 |
*/
|
williamr@2
|
142 |
|
williamr@2
|
143 |
EProtLevel3 = 3 /**<
|
williamr@2
|
144 |
* Note: Level 3 - Set the ECmProtected attr on
|
williamr@2
|
145 |
* connection method
|
williamr@2
|
146 |
*/
|
williamr@2
|
147 |
};
|
williamr@2
|
148 |
|
williamr@2
|
149 |
const TInt KDataMobilitySelectionPolicyPriorityWildCard = 256;
|
williamr@2
|
150 |
} // namespace CMManager
|
williamr@2
|
151 |
|
williamr@2
|
152 |
/**
|
williamr@2
|
153 |
* TBearerPriority is a representation of a bearer priority defined in
|
williamr@2
|
154 |
* commsdat
|
williamr@2
|
155 |
*
|
williamr@2
|
156 |
* @lib cmmanager.lib
|
williamr@2
|
157 |
* @since S60 v3.2
|
williamr@2
|
158 |
*/
|
williamr@2
|
159 |
NONSHARABLE_CLASS( TBearerPriority )
|
williamr@2
|
160 |
{
|
williamr@2
|
161 |
public:
|
williamr@2
|
162 |
|
williamr@2
|
163 |
HBufC* iServiceType; /**<
|
williamr@2
|
164 |
* Name of the service table to identify
|
williamr@2
|
165 |
* type of bearer
|
williamr@2
|
166 |
*/
|
williamr@2
|
167 |
|
williamr@2
|
168 |
TUint32 iPriority; /**<
|
williamr@2
|
169 |
* Priority of the bearer.
|
williamr@2
|
170 |
* Values must be unique within the table
|
williamr@2
|
171 |
*/
|
williamr@2
|
172 |
|
williamr@2
|
173 |
TUint32 iUIPriority; /**<
|
williamr@2
|
174 |
* Priority of this bearer type when shown
|
williamr@2
|
175 |
* in UI for configuring a new IAP.
|
williamr@2
|
176 |
* Values must be unique within the table
|
williamr@2
|
177 |
*/
|
williamr@2
|
178 |
};
|
williamr@2
|
179 |
|
williamr@2
|
180 |
#endif // CMMANAGERDEF_H
|