--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/omaprovisioning/provisioning/IMAdapter/Inc/CWPPecAdapter.h Thu Dec 17 09:07:52 2009 +0200
@@ -0,0 +1,112 @@
+/*
+* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "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:
+* Handles wireless village settings in provisioning.
+*
+*/
+
+
+#ifndef CWPPECADAPTER_H
+#define CWPPECADAPTER_H
+
+// INCLUDES
+#include <CWPAdapter.h>
+#include <MWPContextExtension.h>
+#include "WPIMUtil.h"
+
+// FORWARD DECLARATIONS
+class CWPCharacteristic;
+class CWPIMSAPItem;
+class CApAccessPointItem;
+
+// CLASS DECLARATION
+
+/**
+ * CWPPecAdapter handles PEC settings.
+ *
+ * @lib WPWAPAdapter
+ * @since 2.0
+ */
+class CWPPecAdapter : public CWPAdapter, private MWPContextExtension
+ {
+ public: // Constructors and destructor
+
+ /**
+ * Two-phased constructor.
+ */
+ static CWPPecAdapter* NewL();
+
+ /**
+ * Destructor.
+ */
+ virtual ~CWPPecAdapter();
+
+ public : // from CWPAdapter
+
+ TInt ItemCount() const;
+ const TDesC16& SummaryTitle(TInt aIndex) const;
+ const TDesC16& SummaryText(TInt aIndex) const;
+ void SaveL( TInt aItem );
+ TBool CanSetAsDefault( TInt aItem ) const;
+ void SetAsDefaultL( TInt aItem );
+ TInt DetailsL( TInt aItem, MWPPairVisitor& aVisitor );
+ void VisitL(CWPCharacteristic& aElement);
+ void VisitL(CWPParameter& aElement);
+ void VisitLinkL(CWPCharacteristic& aLink );
+ TInt ContextExtension( MWPContextExtension*& aExtension );
+
+ public: // from MWPContextExtension
+ const TDesC8& SaveDataL( TInt aIndex ) const;
+ void DeleteL( const TDesC8& aSaveData );
+ TUint32 Uid() const;
+
+ public: // New functions
+ /**
+ * C++ default constructor.
+ */
+ CWPPecAdapter();
+
+ /**
+ * By default Symbian 2nd phase constructor is private.
+ */
+ void ConstructL();
+
+ private:
+
+ void SaveL( TInt aIndex, TIMPSAccessGroup aAccessGroup );
+
+ private: // Data
+
+ // The application id of the current characteristic
+ TPtrC iAppID;
+
+ // Current data, owns.
+ TData* iCurrentData;
+
+ // The settings items, owns.
+ RPointerArray<TData> iDatas;
+
+ // Default name for service access point, owns.
+ HBufC* iDefaultName;
+
+ // Title for wireless village settings, owns.
+ HBufC* iWVTitle;
+
+ // Id of SAP item to be set as default
+ TUint32 iSAPIdForDefault;
+ };
+
+#endif // CWPPECADAPTER_H
+
+// End of File
\ No newline at end of file