58
|
1 |
/*
|
|
2 |
* Copyright (c) 2002 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: view class
|
|
15 |
*
|
|
16 |
*
|
|
17 |
*/
|
|
18 |
|
|
19 |
|
|
20 |
#ifndef CONNECTIONMONITORUIDETAILSVIEW_H
|
|
21 |
#define CONNECTIONMONITORUIDETAILSVIEW_H
|
|
22 |
|
|
23 |
// INCLUDES
|
|
24 |
#include <aknview.h>
|
|
25 |
#include <aknlists.h>
|
|
26 |
|
|
27 |
// CONSTANTS
|
|
28 |
|
|
29 |
/**
|
|
30 |
* UID of view
|
|
31 |
*/
|
|
32 |
const TUid KDetailsViewId = {3};
|
|
33 |
|
|
34 |
// FORWARD DECLARATIONS
|
|
35 |
class CConnectionMonitorUiDetailsContainer;
|
|
36 |
class CConnectionInfo;
|
|
37 |
class CConnectionInfoBase;
|
|
38 |
class CConnectionArray;
|
|
39 |
|
|
40 |
// CLASS DECLARATION
|
|
41 |
/**
|
|
42 |
* CConnectionMonitorUiDetailsView view class.
|
|
43 |
*/
|
|
44 |
class CConnectionMonitorUiDetailsView : public CAknView,
|
|
45 |
public MEikListBoxObserver
|
|
46 |
{
|
|
47 |
public: // Constructors and destructor
|
|
48 |
/**
|
|
49 |
* Constructor
|
|
50 |
* @param aConnectionArray array containing connection list
|
|
51 |
*/
|
|
52 |
CConnectionMonitorUiDetailsView(
|
|
53 |
CConnectionArray* const aConnectionArray );
|
|
54 |
|
|
55 |
/**
|
|
56 |
* EPOC second phase constructor.
|
|
57 |
*/
|
|
58 |
void ConstructL();
|
|
59 |
|
|
60 |
/**
|
|
61 |
* Destructor.
|
|
62 |
*/
|
|
63 |
~CConnectionMonitorUiDetailsView();
|
|
64 |
|
|
65 |
public: // Functions from base classes
|
|
66 |
/**
|
|
67 |
* From CAknView
|
|
68 |
*/
|
|
69 |
TUid Id() const;
|
|
70 |
|
|
71 |
/**
|
|
72 |
* From CAknView
|
|
73 |
*/
|
|
74 |
void HandleCommandL( TInt aCommand );
|
|
75 |
|
|
76 |
public: // New functions
|
|
77 |
/**
|
|
78 |
* Call SetSelectedConnection function of iContrainer
|
|
79 |
* @param aIndex index of connection in the connection array
|
|
80 |
*/
|
|
81 |
void SetSelectedConnection( TUint aIndex );
|
|
82 |
|
|
83 |
/**
|
|
84 |
* Returns index of selected connection
|
|
85 |
* @return index of selected connection in the connection array
|
|
86 |
*/
|
|
87 |
TUint GetSelectedConnection();
|
|
88 |
|
|
89 |
/**
|
|
90 |
* Returns ETrue if the refreshing stopped for the View
|
|
91 |
* @return the staus of View refreshing
|
|
92 |
*/
|
|
93 |
TBool GetViewRefreshState();
|
|
94 |
|
|
95 |
/**
|
|
96 |
* Set the View the refreshing status. Stopped or not
|
|
97 |
* @param aViewRefreshState staus of View refreshing
|
|
98 |
*/
|
|
99 |
void SetViewRefreshState( TBool aViewRefreshState );
|
|
100 |
|
|
101 |
/**
|
|
102 |
* Closes the Details View.
|
|
103 |
*/
|
|
104 |
void CloseViewL();
|
|
105 |
|
|
106 |
/**
|
|
107 |
* Activate the Main View
|
|
108 |
*/
|
|
109 |
void ActivateMainViewL();
|
|
110 |
|
|
111 |
protected:
|
|
112 |
/**
|
|
113 |
* From AknView
|
|
114 |
*/
|
|
115 |
void DoActivateL( const TVwsViewId& aPrevViewId,
|
|
116 |
TUid aCustomMessageId,
|
|
117 |
const TDesC8& aCustomMessage );
|
|
118 |
|
|
119 |
/**
|
|
120 |
* From AknView
|
|
121 |
*/
|
|
122 |
void DoDeactivate();
|
|
123 |
|
|
124 |
/**
|
|
125 |
* From MEikListBoxObserver
|
|
126 |
*/
|
|
127 |
void HandleListBoxEventL( CEikListBox* aListBox,
|
|
128 |
TListBoxEvent aEventType );
|
|
129 |
|
|
130 |
private: // Data
|
|
131 |
/**
|
|
132 |
* Container of View
|
|
133 |
*/
|
|
134 |
CConnectionMonitorUiDetailsContainer* iContainer;
|
|
135 |
|
|
136 |
/**
|
|
137 |
* Array contains connections
|
|
138 |
*/
|
|
139 |
CConnectionArray* const iConnectionArray; // Not Owned.
|
|
140 |
|
|
141 |
/**
|
|
142 |
* The index of selected connection
|
|
143 |
*/
|
|
144 |
TUint iConnectionId;
|
|
145 |
|
|
146 |
/**
|
|
147 |
* Staus of View refreshing. If the refreshing stopped its ETrue
|
|
148 |
*/
|
|
149 |
TBool iViewRefreshState;
|
|
150 |
};
|
|
151 |
|
|
152 |
#endif // CONNECTIONMONITORUIDETAILSVIEW_H
|
|
153 |
|
|
154 |
// End of File
|