iapconnectdemosocketsobserver.h

来自「symbian关于Internet访问的代码」· C头文件 代码 · 共 63 行

H
63
字号
/*
* ============================================================================
*  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 + =
减小字号Ctrl + -
显示快捷键?