wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsesockwrapper_s60_p.h
changeset 31 e8f4211554fb
parent 19 10810c91db26
--- a/wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsesockwrapper_s60_p.h	Fri May 14 10:30:51 2010 +0300
+++ b/wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsesockwrapper_s60_p.h	Mon May 24 21:11:39 2010 +0300
@@ -1,5 +1,5 @@
 /*
-* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
+* Copyright (c) 2009-2010 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"
@@ -12,80 +12,63 @@
 * Contributors:
 *
 * Description:
-*
+* Private implementation of wrapper for Symbian Esock library.
 */
 
-#ifndef ESOCKWRAPPER_S60_P_H_
-#define ESOCKWRAPPER_S60_P_H_
+#ifndef WLANQTUTILSESOCKWRAPPER_S60_P_H
+#define WLANQTUTILSESOCKWRAPPER_S60_P_H
 
-// INCLUDES
+// System includes
+
 #include <es_sock.h>
 
-QT_BEGIN_NAMESPACE
+// User includes
 
-// CLASS DECLARATION
+// Forward declarations
+
+// External data types
 
-/**
-* EsockWrapperPrivate class.
-*/
-class EsockWrapperPrivate: public CActive
+// Constants
+
+// Class declaration
+
+class WlanQtUtilsEsockWrapperPrivate: public CActive
 {
 
-public:  // Constructor and destructor
-    
-    /**
-    * Default constructor
-    */
-    EsockWrapperPrivate(EsockWrapper *aWrapper);
+public:
     
-    /**
-     * Destructor
-     */
-    ~EsockWrapperPrivate();
+    // Data types
 
-public: // New functions
+    WlanQtUtilsEsockWrapperPrivate(WlanQtUtilsEsockWrapper *wrapper);
     
-    /**
-    * connectIap
-    * Starts connection creation.
-    */
-    void connectIap(int aIapId);
+    ~WlanQtUtilsEsockWrapperPrivate();
+
+    void ConnectIap(int iapId);
     
-    /**
-    * dsiconnectIap
-    * Stops connection.
-    */
-    void disconnectIap();
+    void DisconnectIap();
 
-private: // Functions from base class
+protected:
     
-    /**
-    * RunL
-    * Called when the scheduled function ends.
-    */
+private:
+    
     void RunL();
     
-    /**
-    * DoCancel
-    * Cancels operations.
-    */
     void DoCancel();
         
-private: // Data
+private: // data
+
+    // Owned data
     
-    /**
-    * q_ptr pointer to ConnectionWrapper
-    * Owned by ConnectionWrapperPrivate object, instantiated in
-    * constructor.
-    */
-    EsockWrapper *q_ptr;
+    RSocketServ iSocketServer; //!< Socket server handle
+    RConnection iConnection;   //!< Connection handle
+    TBool iConnectionActive;   //!< Do we have an active connection handle?
+
+    // Not owned data
     
-    RSocketServ iSocketServer;
-    RConnection iConnection;
+    //! Public implementation to report progress to
+    WlanQtUtilsEsockWrapper *q_ptr;
+
+    // Friend classes
 };
 
-QT_END_NAMESPACE
-
-#endif /*ESOCKWRAPPER_S60_P_H_*/
-
-// End of file
+#endif // WLANQTUTILSESOCKWRAPPER_S60_P_H