soc.h

来自「symbian第二版秘密收发短信(不响铃不震动)的例子实现。」· C头文件 代码 · 共 58 行

H
58
字号
#include <ES_SOCK.H>
#include <e32base.h>
#include <gsmubuf.h>
#include <Gsmumsg.h>

class RFs;

class CSMSEngine:public CActive
	{
	public:

 		/**
        * NewL.
        * Two-phased constructor.
        * Create a CSMSEngine object
        * @return a pointer to the created instance of CSMSEngine.
        */
        static CSMSEngine* NewL();

        /**
        * NewLC.
        * Two-phased constructor.
        * Create a CSMSEngine object
        * @return A pointer to the created instance of CSMSEngine.
        */
        static CSMSEngine* NewLC();
        /**
        * ~CSMSEngine
        * Virtual Destructor.
        */
        virtual ~CSMSEngine();
        
	private:
        /**
        * CSMSEngine.
        * C++ default constructor.
        */
        CSMSEngine();
        
        void ConstructL();
        //From CActive
		void RunL();
		void DoCancel();

	public:
		void SocketListen();

	private://Data

		CSmsMessage* iSmsMessage;
		RSocketServ iSocketServer;
		RSocket iSocket;
		RFs iFs;
		TBool iRead;
		TPckgBuf<TUint> iPckgBuf;
		TBuf<255> iBuf;
};

⌨️ 快捷键说明

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