|
1 /* |
|
2 * Copyright (c) 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 * |
|
16 */ |
|
17 using System; |
|
18 using System.Text; |
|
19 using System.ComponentModel; |
|
20 using System.Collections.Generic; |
|
21 using CrashItemLib.Crash; |
|
22 using CrashItemLib.Crash.Base; |
|
23 using CrashItemLib.Crash.Base.DataBinding; |
|
24 using SymbianUtils.Range; |
|
25 using SymbianStructuresLib.Uids; |
|
26 using SymbianUtils.DataBuffer; |
|
27 |
|
28 namespace CrashItemLib.Crash.Telephony |
|
29 { |
|
30 public class CITelephonyNetworkInfo : CIElement |
|
31 { |
|
32 #region Enumerations |
|
33 public enum TRegistrationMode |
|
34 { |
|
35 [Description("Unknown")] |
|
36 ERegModeUnknown = 0, |
|
37 |
|
38 [Description( "Offline" )] |
|
39 ERegModeOffline, |
|
40 |
|
41 [Description( "2G" )] |
|
42 ERegMode2g, |
|
43 |
|
44 [Description( "3G" )] |
|
45 ERegMode3g, |
|
46 |
|
47 [Description( "HSDPA" )] |
|
48 ERegModeHSDPA |
|
49 } |
|
50 #endregion |
|
51 |
|
52 #region Constructors |
|
53 internal CITelephonyNetworkInfo( CITelephony aParent ) |
|
54 : base( aParent.Container ) |
|
55 { |
|
56 iParent = aParent; |
|
57 } |
|
58 #endregion |
|
59 |
|
60 #region API |
|
61 #endregion |
|
62 |
|
63 #region Properties |
|
64 [CIDBAttributeCell( "Country Code", 100, "", "" )] |
|
65 public string Country |
|
66 { |
|
67 get { return iCountry; } |
|
68 set { iCountry = value; } |
|
69 } |
|
70 |
|
71 [CIDBAttributeCell( "Identity", 101, "", "" )] |
|
72 public string Identity |
|
73 { |
|
74 get { return iIdentity; } |
|
75 set { iIdentity = value; } |
|
76 } |
|
77 |
|
78 [CIDBAttributeCell( "Cell ID", 102, "", "" )] |
|
79 public string CellId |
|
80 { |
|
81 get { return iCellId; } |
|
82 set { iCellId = value; } |
|
83 } |
|
84 |
|
85 [CIDBAttributeCell( "Registration", 103, "", "" )] |
|
86 public TRegistrationMode RegistrationMode |
|
87 { |
|
88 get { return iRegistrationMode; } |
|
89 set { iRegistrationMode = value; } |
|
90 } |
|
91 |
|
92 [CIDBAttributeCell("CGI", 104, "", "")] |
|
93 public string CGI |
|
94 { |
|
95 get { return iCGI; } |
|
96 set { iCGI = value; } |
|
97 } |
|
98 #endregion |
|
99 |
|
100 #region Internal methods |
|
101 #endregion |
|
102 |
|
103 #region Data members |
|
104 private readonly CITelephony iParent; |
|
105 private string iCountry = string.Empty; |
|
106 private string iIdentity = string.Empty; |
|
107 private string iCellId = string.Empty; |
|
108 private string iCGI = string.Empty; //Cell Global Identity |
|
109 private TRegistrationMode iRegistrationMode = TRegistrationMode.ERegModeUnknown; |
|
110 #endregion |
|
111 } |
|
112 } |