⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iapconnectprogressnotifier.h

📁 这是一个手机编程s60 基于c++的关于手机连接internet的数据库协议
💻 H
字号:
/*
* ============================================================================
*  Name     : CIAPConnectProgressNotifier from IAPConnectProgressNotifier.h
*  Part of  : Internet Access Points Example v2.0
*  Description:
*     Decalares progress notifier class.
*  Created  : 01.09.2006 by Forum Nokia
*  Version  : 2.0
*  Copyright: Forum Nokia
* ============================================================================
*/

#ifndef IAPCONNECT_PROGRESSNOTIFIER_H
#define IAPCONNECT_PROGRESSNOTIFIER_H

#include "IAPConnectStateObserver.h"

#include <e32base.h>
#include <Es_sock.h>

class CIAPConnectProgressNotifier : public CActive
    {
public:

    /*
     * NewL()
     *  
     * Create CIAPConnectProgressNotifier object
     *
     * Params:
     * MIAPConnectStateObserver* aObserver State observer interface
     * RConnection& aConnection Reference to the connection object
     *
     */
    static CIAPConnectProgressNotifier* 
        NewL(MIAPConnectStateObserver* aObserver, RConnection& aConnection);

    /*
     * NewLC()
     *  
     * Create CIAPConnectProgressNotifier object and place to cleanup stack
     *
     * MIAPConnectStateObserver* aObserver State observer interface
     * RConnection& aConnection Reference to the connection object
     *
     */
    static CIAPConnectProgressNotifier* 
        NewLC(MIAPConnectStateObserver* aObserver, RConnection& aConnection);

    /*
     * ~CIAPConnectProgressNotifier~()
     *  
     * Destructor
     *
     */
    ~CIAPConnectProgressNotifier();

    /*
     * SetState()
     *  
     * Set internal State
     *
     * Params:
     * TInt aState      State to be set
     *
     */
    void SetState(TInt aState);

    /*
     * GetState()
     *  
     * Get the internal state
     *
     * Returns:
     * TInt Internal state
     *
     */
    TInt GetState() const;

protected: // from CActive

    /*
     * DoCancel()
     *  
     * Cancel outstanding requests
     *
     */
    void DoCancel();

    /*
     * RunL()
     *  
     * Handle request completion events 
     *
     */
    void RunL();
    
private:
    
    /*
     * CIAPConnectProgressNotifier()
     *  
     * Constructor
     *
     * Params:
     * MIAPConnectStateObserver* aObserver State observer interface
     * RConnection& aConnection Reference to the connection object
     *
     */
    CIAPConnectProgressNotifier(MIAPConnectStateObserver* aObserver, 
        RConnection& aConnection);

    /*
     * ConstructL()
     *  
     * Second phase Constructor
     *
     */
    void ConstructL();

private:

    // Member variables
    
    TNifProgressBuf iProgress;
    TInt iState;
    
    RConnection& iConnection;

    // Owned by CIAPConnectAppUi
    MIAPConnectStateObserver* iObserver;    
    
    };

#endif // IAPCONNECT_PROGRESSNOTIFIER_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -