connectionutilities/ConnectionDialogs/inc/ConnectionInfoKey.h
changeset 0 5a93021fdf25
child 61 8b0c979bbe8c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/connectionutilities/ConnectionDialogs/inc/ConnectionInfoKey.h	Thu Dec 17 08:55:21 2009 +0200
@@ -0,0 +1,114 @@
+/*
+* Copyright (c) 2005 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:  Declaration of class CConnectionInfoKey
+*
+*/
+
+
+#ifndef __CCONNECTIONINFOKEY_H__
+#define __CCONNECTIONINFOKEY_H__
+
+
+// INCLUDES
+#include <e32base.h>
+
+
+// FORWARD DECLARATION
+class CConnectionInfo;
+
+
+// CLASS DECLARATION
+/**
+ * Connection information key class
+ */
+NONSHARABLE_CLASS( CConnectionInfoKey ) : public TKeyArrayFix
+    {
+    public:
+
+        /**
+        * SetPtr function
+        * @param aPtr   Pointer used to initialize the class pointer
+        */
+        void SetPtr( CArrayPtrFlat<CConnectionInfo>* aPtr );
+
+        /**
+        * Compare function
+        * @param aLeft  Left element to be compared
+        * @param aRight Right element to be compared
+        * @return TInt  Result of comparison of the elements
+        */
+        virtual TInt Compare( TInt aLeft, TInt aRight ) const;
+
+        /**
+        * At function
+        * @param nIndex Index of the element ot be returned
+        * @return TAny* The element at the given index
+        */
+        virtual TAny* At( TInt anIndex ) const;
+
+        /**
+        * TConnectionInfoKey constructor
+        * @return -
+        */
+        CConnectionInfoKey( TBool aIsWLANFeatureSupported );
+
+        /**
+        * ~CConnectionInfoKey() destructor
+        * @param  -
+        */
+        ~CConnectionInfoKey();
+        
+        /**
+        * NewL function
+        * @param aNameEasyWLAN  Name of Easy WLAN connection
+        * return CConnectionInfoKey*
+        */
+        static CConnectionInfoKey* NewL( TDesC &aNameEasyWLAN );
+
+        /**
+        * NewL function
+        * return CConnectionInfoKey*
+        */
+        static CConnectionInfoKey* NewL();
+
+
+    private:
+
+        /**
+        * Symbian default constructor.
+        * @param aNameEasyWLAN  Name of Easy WLAN connection
+        */      
+        void ConstructL( TDesC &aNameEasyWLAN );
+
+        /**
+        * Symbian default constructor.
+        */      
+        void ConstructL();
+
+
+    protected:
+        // Pointer to class containing info over the connection 
+        CArrayPtrFlat<CConnectionInfo> *iPtr;
+
+        // Tells if WLan feature is supported at runtime
+        TBool iIsWLANFeatureSupported;          
+
+        // Name of Easy WLAN connection
+        HBufC*  iNameEasyWLAN;
+    };
+
+
+#endif
+
+// End of File