enginenotifier.h

来自「一个很不错的Symbian程序源代码,里面有图片和一些对话框」· C头文件 代码 · 共 57 行

H
57
字号
/* Copyright (c) 2004, Nokia. All rights reserved */


#ifndef __ENGINENOTIFIER_H__
#define __ENGINENOTIFIER_H__

// CLASS DECLARATION

/**
* MEngineNotifier.
* This class specifies the error notification interface.
*/
class MEngineNotifier
    {
    public: // Enumerations

        /**
        * TErrorType.
        * Error types encountered when reading/writing to a sockets.
        *  - EDisconnected.      A disconnected error has been encountered.
        *  - ETimeOutOnWrite.    A write operation has failed to complete
        *                        within a predetermined period.
        *  - EGeneralReadError.  A general error has been encountered
        *                        during a read.
        *  - EGeneralWriteError. A general error has been encountered
        *                        during a write
        */
        enum TErrorType
            {
            EDisconnected,
            ETimeOutOnWrite,
            EGeneralReadError,
            EGeneralWriteError
            };

    public: // New functions

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

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

#endif // __ENGINENOTIFIER_H__

// End of File

⌨️ 快捷键说明

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