omaprovisioning/provisioning/accesspointadapter/Inc/CWPAPPort.h
branchRCL_3
changeset 26 19bba8228ff0
parent 1 a9c0ce913924
equal deleted inserted replaced
25:b183ec05bd8c 26:19bba8228ff0
       
     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:     Defines a class, which holds proxy port information.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef CWPAPPORT_H
       
    23 #define CWPAPPORT_H
       
    24 
       
    25 // INCLUDES
       
    26 
       
    27 #include <MWPVisitor.h>
       
    28 #include "CWPAPItemBase.h"
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 
       
    32 class CApAccessPointItem;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37  * CWPAPPort contains port information
       
    38  */ 
       
    39 class CWPAPPort : public CWPAPItemBase, private MWPVisitor
       
    40 	{
       
    41 	public:  // Constructors and destructor
       
    42 
       
    43         /**
       
    44         * Two-phased constructor.
       
    45         * @param aCharacteristic The PORT characteristic
       
    46         */
       
    47 		static CWPAPPort* NewLC( CWPCharacteristic& aCharacteristic );
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52 		virtual ~CWPAPPort();
       
    53 
       
    54 	public: // From CWPAPItemBase 
       
    55 
       
    56 		TBool ValidateL();
       
    57 		void AddDataL( RCmConnectionMethodExt& aCmItem ); //CMManager
       
    58         TInt AddItemsL( RPointerArray<CWPAPAccesspointItem>& aItems,
       
    59                         CWPAPItemBase* aLogicalProxy,
       
    60                         CWPAPItemBase* aPhysicalProxy );
       
    61         const TDesC& Name();
       
    62         void SaveWlanDataL( TUint32 /*aIapId*/, CCommsDatabase& /*aCommsDb*/ ) {};
       
    63         void UpdateLingerL(const TUint32 /*aIapId*/){};
       
    64 
       
    65 	private: // From MWPVisitor
       
    66 
       
    67 		void VisitL(CWPCharacteristic& aCharacteristic);
       
    68 		void VisitL(CWPParameter& aParameter);
       
    69         void VisitLinkL( CWPCharacteristic& /*aLink*/ ) {};
       
    70 		
       
    71 	private:  // New functions
       
    72 		
       
    73         /**
       
    74         * Constructor.
       
    75         */
       
    76 		CWPAPPort();
       
    77 
       
    78         /**
       
    79         * By default Symbian 2nd phase constructor is private.
       
    80         */
       
    81 		void ConstructL();
       
    82 		
       
    83 		/**
       
    84 		* Helper method to set the internal values.
       
    85 		* @param aConnectionSecurity sets value for iConnectionSecurity.
       
    86 		* @param aSessionMode sets value for iSessionMode.
       
    87 		* @param aReceivedField marks the field as received
       
    88 		*/
       
    89 		void SetValues( TBool aConnectionSecurity, 
       
    90 			            TInt aSessionMode,
       
    91 			            TMarkedField aReceivedField );
       
    92 
       
    93 	private:  // Data
       
    94 
       
    95         /// ETrue if secure connection should be established
       
    96 		TBool           iConnectionSecurity;
       
    97         /// Session mode for WAP connections: connection oriented/less.
       
    98 		TInt            iSessionMode;
       
    99 		/// Pointer to port number parameter. Refs.
       
   100 		CWPParameter*   iPortNbr;
       
   101 
       
   102 	private:
       
   103 		friend class T_CWPAPProxyData;
       
   104 		friend class T_CWPAPAdapter;
       
   105 		friend class T_WPAPTestUtils;
       
   106 	};
       
   107 
       
   108 #endif // CWPAPPORT_H
       
   109 
       
   110 // End of File