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

📄 iapconnectdemosocketsobserver.h

📁 symbian联网接入点的示例代码.新增,设置接入点.
💻 H
字号:
/*
* ============================================================================
*  Name     : MIAPConnectDemoSocketsObserver from IAPConnectDemoObserver.h
*  Part of  : Internet Access Points Example v2.0
*  Created  : 01.09.2006 by Forum Nokia
*  Version  : 2.0
*  Copyright: Forum Nokia
* ============================================================================
*/

#ifndef IAPCONNECTDEMOSOCKETSOBSERVER_H
#define IAPCONNECTDEMOSOCKETSOBSERVER_H

// CLASS DECLARATION

/**
* MIAPConnectDemoSocketsObserver
* This class specifies the error notification interface for demo sockets 
* reader/writer.
*/
class MIAPConnectDemoSocketsObserver
    {
    public: // Enumerations

        /**
        * TDemoErrorType.
        * Error types encountered when reading/writing to a sockets.
        */
        enum TDemoErrorType
            {
            EDisconnected,
            EConnectionFailed,
            EGeneralReadError,
            EGeneralWriteError,
            ETimeOutOnWrite,
            ETimeOut,
            EWriteFailed
            };

    public: // New functions

        /**
        * ReportError.
        * Reports a communication error.
        * @param aErrorType Error type.
        * @param aErrorCode Associated error code.
        */
        virtual void ReportErrorL( const TDemoErrorType& aErrorType, 
		const TInt& aErrorCode ) = 0;

        /**
        * ResponseReceived.
        * Data has been received on the socket and read into a buffer.
        * @param aBuffer The data buffer.
        */
        virtual void ResponseReceivedL( const TDesC8& aBuffer ) = 0;
      
    };

#endif // IAPCONNECTDEMOSOCKETSOBSERVER_H

// End of File

⌨️ 快捷键说明

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