wlanutilities/wlanqtutilities/wrapper/inc/wlanqtutilsesockwrapper_s60_p.h
changeset 19 10810c91db26
child 31 e8f4211554fb
equal deleted inserted replaced
3:ff3b37722600 19:10810c91db26
       
     1 /*
       
     2 * Copyright (c) 2009 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef ESOCKWRAPPER_S60_P_H_
       
    19 #define ESOCKWRAPPER_S60_P_H_
       
    20 
       
    21 // INCLUDES
       
    22 #include <es_sock.h>
       
    23 
       
    24 QT_BEGIN_NAMESPACE
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 * EsockWrapperPrivate class.
       
    30 */
       
    31 class EsockWrapperPrivate: public CActive
       
    32 {
       
    33 
       
    34 public:  // Constructor and destructor
       
    35     
       
    36     /**
       
    37     * Default constructor
       
    38     */
       
    39     EsockWrapperPrivate(EsockWrapper *aWrapper);
       
    40     
       
    41     /**
       
    42      * Destructor
       
    43      */
       
    44     ~EsockWrapperPrivate();
       
    45 
       
    46 public: // New functions
       
    47     
       
    48     /**
       
    49     * connectIap
       
    50     * Starts connection creation.
       
    51     */
       
    52     void connectIap(int aIapId);
       
    53     
       
    54     /**
       
    55     * dsiconnectIap
       
    56     * Stops connection.
       
    57     */
       
    58     void disconnectIap();
       
    59 
       
    60 private: // Functions from base class
       
    61     
       
    62     /**
       
    63     * RunL
       
    64     * Called when the scheduled function ends.
       
    65     */
       
    66     void RunL();
       
    67     
       
    68     /**
       
    69     * DoCancel
       
    70     * Cancels operations.
       
    71     */
       
    72     void DoCancel();
       
    73         
       
    74 private: // Data
       
    75     
       
    76     /**
       
    77     * q_ptr pointer to ConnectionWrapper
       
    78     * Owned by ConnectionWrapperPrivate object, instantiated in
       
    79     * constructor.
       
    80     */
       
    81     EsockWrapper *q_ptr;
       
    82     
       
    83     RSocketServ iSocketServer;
       
    84     RConnection iConnection;
       
    85 };
       
    86 
       
    87 QT_END_NAMESPACE
       
    88 
       
    89 #endif /*ESOCKWRAPPER_S60_P_H_*/
       
    90 
       
    91 // End of file