diff -r 000000000000 -r c8830336c852 wlansecuritysettings/wlaneapsettingsui/EapPluginConfig/inc/EAPPluginConfigurationModel.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlansecuritysettings/wlaneapsettingsui/EapPluginConfig/inc/EAPPluginConfigurationModel.h Thu Dec 17 08:47:43 2009 +0200 @@ -0,0 +1,84 @@ +/* +* Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Declaration of class CEAPPluginConfigurationModel. +* +*/ + + + +#ifndef __EAPPLUGINCONFIGURATIONMODEL_H__ +#define __EAPPLUGINCONFIGURATIONMODEL_H__ + +// INCLUDES +#include +#include + + +// FORWARD DECLARATION +class REAPPluginList; + + +// CLASS DECLARATION + +/** +* UI model for WPA Security Settings UI. +* This class formats real data so it can be displayed in the listbox. +*/ +class CEAPPluginConfigurationModel : public CBase, + public MDesCArray + { + public: // Constructors and destructor + /** + * Constructor. + * @param aPlugins Plugin list. + */ + inline CEAPPluginConfigurationModel( const REAPPluginList& aPlugins ); + + + public: // from MDesCArray + /** + * Get number of elements in the descriptor array. + * @return The number of elements in the descriptor array. + */ + TInt MdcaCount() const; + + /** + * Index into the descriptor array. + * @param aIndex Index. + * @return Descriptor at position aIndex. + */ + TPtrC16 MdcaPoint( TInt aIndex ) const; + + + public: // new functions + TInt MdcaEnabledCount() const; + + + private: // types + enum + { + EBufSize = 128 ///< Formatting buffer size. + }; + + private: // data + const REAPPluginList& iPlugins; ///< Plugins. + __MUTABLE TBuf iBuf; ///< Formatting buffer. + + }; + +#include "EAPPluginConfigurationModel.inl" + +#endif // __EAPPLUGINCONFIGURATIONMODEL_H__ + +// End of File