wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsesockwrapper_s60_p.h
changeset 31 e8f4211554fb
parent 19 10810c91db26
equal deleted inserted replaced
30:ab513c8439db 31:e8f4211554fb
     1 /*
     1 /*
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 * Private implementation of wrapper for Symbian Esock library.
    16 */
    16 */
    17 
    17 
    18 #ifndef ESOCKWRAPPER_S60_P_H_
    18 #ifndef WLANQTUTILSESOCKWRAPPER_S60_P_H
    19 #define ESOCKWRAPPER_S60_P_H_
    19 #define WLANQTUTILSESOCKWRAPPER_S60_P_H
    20 
    20 
    21 // INCLUDES
    21 // System includes
       
    22 
    22 #include <es_sock.h>
    23 #include <es_sock.h>
    23 
    24 
    24 QT_BEGIN_NAMESPACE
    25 // User includes
    25 
    26 
    26 // CLASS DECLARATION
    27 // Forward declarations
    27 
    28 
    28 /**
    29 // External data types
    29 * EsockWrapperPrivate class.
    30 
    30 */
    31 // Constants
    31 class EsockWrapperPrivate: public CActive
    32 
       
    33 // Class declaration
       
    34 
       
    35 class WlanQtUtilsEsockWrapperPrivate: public CActive
    32 {
    36 {
    33 
    37 
    34 public:  // Constructor and destructor
    38 public:
    35     
    39     
    36     /**
    40     // Data types
    37     * Default constructor
    41 
    38     */
    42     WlanQtUtilsEsockWrapperPrivate(WlanQtUtilsEsockWrapper *wrapper);
    39     EsockWrapperPrivate(EsockWrapper *aWrapper);
       
    40     
    43     
    41     /**
    44     ~WlanQtUtilsEsockWrapperPrivate();
    42      * Destructor
       
    43      */
       
    44     ~EsockWrapperPrivate();
       
    45 
    45 
    46 public: // New functions
    46     void ConnectIap(int iapId);
    47     
    47     
    48     /**
    48     void DisconnectIap();
    49     * connectIap
    49 
    50     * Starts connection creation.
    50 protected:
    51     */
       
    52     void connectIap(int aIapId);
       
    53     
    51     
    54     /**
    52 private:
    55     * dsiconnectIap
       
    56     * Stops connection.
       
    57     */
       
    58     void disconnectIap();
       
    59 
       
    60 private: // Functions from base class
       
    61     
    53     
    62     /**
       
    63     * RunL
       
    64     * Called when the scheduled function ends.
       
    65     */
       
    66     void RunL();
    54     void RunL();
    67     
    55     
    68     /**
       
    69     * DoCancel
       
    70     * Cancels operations.
       
    71     */
       
    72     void DoCancel();
    56     void DoCancel();
    73         
    57         
    74 private: // Data
    58 private: // data
       
    59 
       
    60     // Owned data
    75     
    61     
    76     /**
    62     RSocketServ iSocketServer; //!< Socket server handle
    77     * q_ptr pointer to ConnectionWrapper
    63     RConnection iConnection;   //!< Connection handle
    78     * Owned by ConnectionWrapperPrivate object, instantiated in
    64     TBool iConnectionActive;   //!< Do we have an active connection handle?
    79     * constructor.
    65 
    80     */
    66     // Not owned data
    81     EsockWrapper *q_ptr;
       
    82     
    67     
    83     RSocketServ iSocketServer;
    68     //! Public implementation to report progress to
    84     RConnection iConnection;
    69     WlanQtUtilsEsockWrapper *q_ptr;
       
    70 
       
    71     // Friend classes
    85 };
    72 };
    86 
    73 
    87 QT_END_NAMESPACE
    74 #endif // WLANQTUTILSESOCKWRAPPER_S60_P_H
    88 
       
    89 #endif /*ESOCKWRAPPER_S60_P_H_*/
       
    90 
       
    91 // End of file