|
1 /* |
|
2 * Copyright (c) 2004 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: Represents a connection |
|
15 * |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CSDCONNECTIONINFO_H_INCLUDED |
|
21 #define CSDCONNECTIONINFO_H_INCLUDED |
|
22 |
|
23 // INCLUDES |
|
24 #include <rconnmon.h> |
|
25 #include <stdlib.h> |
|
26 #include "ConnectionInfoBase.h" |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 // CLASS DECLARATION |
|
33 |
|
34 /** |
|
35 * Represents a connection. |
|
36 */ |
|
37 class CCsdConnectionInfo : public CConnectionInfoBase |
|
38 { |
|
39 public: |
|
40 /** |
|
41 * Static constructor |
|
42 * @param aConnectionId The id of the given connection. |
|
43 * @param aMonitor for refreshing details |
|
44 * @param aConnectionBearerType the bearer type of connection |
|
45 * @param aActiveWrapper the for refreshing |
|
46 */ |
|
47 static CCsdConnectionInfo* NewL( TInt aConnectionId, |
|
48 RConnectionMonitor* const aConnectionMonitor, |
|
49 TConnMonBearerType aConnectionBearerType, |
|
50 CActiveWrapper* aActiveWrapper ); |
|
51 |
|
52 /** |
|
53 * Destructor |
|
54 */ |
|
55 virtual ~CCsdConnectionInfo(); |
|
56 public: |
|
57 |
|
58 /** |
|
59 * Give back a copy of connection. |
|
60 */ |
|
61 virtual CConnectionInfoBase* DeepCopyL(); |
|
62 |
|
63 /** |
|
64 * Refresh required details of connection. |
|
65 */ |
|
66 virtual void RefreshDetailsL(); |
|
67 |
|
68 /** |
|
69 * Refresh iListBoxItemText text, connection ListBox has a reference to |
|
70 * this text. |
|
71 */ |
|
72 virtual void RefreshConnectionListBoxItemTextL(); |
|
73 |
|
74 /** |
|
75 * Refresh details array of connection. DetailsListBox has a reference |
|
76 * to this array. |
|
77 */ |
|
78 virtual void RefreshDetailsArrayL(); |
|
79 |
|
80 /** |
|
81 * Gives back the icon id of connection type |
|
82 * @return the icon id of connection type |
|
83 */ |
|
84 virtual TUint GetIconId() const; |
|
85 |
|
86 protected: |
|
87 /** |
|
88 * Constructor |
|
89 * @param aConnectionId The id of the given connection. |
|
90 * @param aMonitor for refreshing details |
|
91 * @param aConnectionBearerType the bearer type of connection |
|
92 * @param aActiveWrapper the for refreshing |
|
93 */ |
|
94 CCsdConnectionInfo( TInt aConnectionId, |
|
95 RConnectionMonitor* const aConnectionMonitor, |
|
96 TConnMonBearerType aConnectionBearerType, |
|
97 CActiveWrapper* aActiveWrapper ); |
|
98 |
|
99 /** |
|
100 * Second phase construction |
|
101 */ |
|
102 void ConstructL(); |
|
103 |
|
104 protected: |
|
105 /** |
|
106 * Creates an array with requrired details of connection to |
|
107 * the listbox which visulaize details of connection. This member |
|
108 * is called at initialization. |
|
109 */ |
|
110 virtual void ToArrayDetailsL(); |
|
111 |
|
112 /** |
|
113 * Creates a string from dialup number of the connection. |
|
114 * @return string representation count of sharigs of the connection. |
|
115 */ |
|
116 HBufC* ToStringDialupNumberLC() const; |
|
117 |
|
118 private: |
|
119 |
|
120 protected: // Data members |
|
121 |
|
122 TBuf<KTelNumber> iDialupNumber; ///< DialupNumber of connection |
|
123 |
|
124 }; |
|
125 |
|
126 |
|
127 #endif // CSDCONNECTIONINFO_H_INCLUDED |
|
128 |
|
129 // Enf of File |