19
|
1 |
/*
|
|
2 |
* Copyright (c) 2001-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 the License "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: Declaration of class CEAPPluginConfigurationModel.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
/*
|
|
19 |
* %version: 12 %
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef __EAPPLUGINCONFIGURATIONMODEL_H__
|
|
23 |
#define __EAPPLUGINCONFIGURATIONMODEL_H__
|
|
24 |
|
|
25 |
// INCLUDES
|
|
26 |
#include <e32base.h>
|
|
27 |
#include <bamdesca.h>
|
|
28 |
|
|
29 |
|
|
30 |
// FORWARD DECLARATION
|
|
31 |
class REAPPluginList;
|
|
32 |
|
|
33 |
|
|
34 |
// CLASS DECLARATION
|
|
35 |
|
|
36 |
/**
|
|
37 |
* UI model for WPA Security Settings UI.
|
|
38 |
* This class formats real data so it can be displayed in the listbox.
|
|
39 |
*/
|
|
40 |
class CEAPPluginConfigurationModel : public CBase,
|
|
41 |
public MDesCArray
|
|
42 |
{
|
|
43 |
public: // Constructors and destructor
|
|
44 |
/**
|
|
45 |
* Constructor.
|
|
46 |
* @param aPlugins Plugin list.
|
|
47 |
*/
|
|
48 |
inline CEAPPluginConfigurationModel( const REAPPluginList& aPlugins );
|
|
49 |
|
|
50 |
|
|
51 |
public: // from MDesCArray
|
|
52 |
/**
|
|
53 |
* Get number of elements in the descriptor array.
|
|
54 |
* @return The number of elements in the descriptor array.
|
|
55 |
*/
|
|
56 |
TInt MdcaCount() const;
|
|
57 |
|
|
58 |
/**
|
|
59 |
* Index into the descriptor array.
|
|
60 |
* @param aIndex Index.
|
|
61 |
* @return Descriptor at position aIndex.
|
|
62 |
*/
|
|
63 |
TPtrC16 MdcaPoint( TInt aIndex ) const;
|
|
64 |
|
|
65 |
|
|
66 |
public: // new functions
|
|
67 |
TInt MdcaEnabledCount() const;
|
|
68 |
|
|
69 |
|
|
70 |
private: // types
|
|
71 |
enum
|
|
72 |
{
|
|
73 |
EBufSize = 128 ///< Formatting buffer size.
|
|
74 |
};
|
|
75 |
|
|
76 |
private: // data
|
|
77 |
const REAPPluginList& iPlugins; ///< Plugins.
|
|
78 |
__MUTABLE TBuf<EBufSize> iBuf; ///< Formatting buffer.
|
|
79 |
|
|
80 |
};
|
|
81 |
|
|
82 |
#include "EAPPluginConfigurationModel.inl"
|
|
83 |
|
|
84 |
#endif // __EAPPLUGINCONFIGURATIONMODEL_H__
|
|
85 |
|
|
86 |
// End of File
|