newapp11view2.h

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

H
99
字号
/*
============================================================================
 Name        : CNewApp11View2 from NewApp11View2.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Declares view for application.
============================================================================
*/

#ifndef NEWAPP11VIEW2_H
#define NEWAPP11VIEW2_H

// INCLUDES
#include <aknview.h>

#include "UINotifier.h"


// CONSTANTS
// UID of view
const TUid KView2Id = {2};

// FORWARD DECLARATIONS
class CNewApp11Container2;


class 	CSocketsEngine;
// CLASS DECLARATION

/**
*  CNewApp11View2 view class.
* 
*/
class CNewApp11View2 : public CAknView
    {
    public: // Constructors and destructor

        /**
        * EPOC default constructor.
        */
        void ConstructL();

        /**
        * Destructor.
        */
        ~CNewApp11View2();

    public: // Functions from base classes
                        
		/**
        * From CAknView returns Uid of View
        * @return TUid uid of the view
        */
        TUid Id() const;

        /**
        * From MEikMenuObserver delegate commands from the menu
        * @param aCommand a command emitted by the menu 
        * @return void
        */
        void HandleCommandL(TInt aCommand);

        /**
        * From CAknView reaction if size change
        * @return void
        */
        void HandleClientRectChange();

		void  ConnectServ();
		void  SendToServer();

    private:

        /**
        * From CAknView activate the view
        * @param aPrevViewId 
        * @param aCustomMessageId 
        * @param aCustomMessage 
        * @return void
        */
        void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId,
            const TDesC8& aCustomMessage);

        /**
        * From CAknView deactivate the view (free resources)
        * @return void
        */
        void DoDeactivate();

    private: // Data
        CNewApp11Container2* iContainer;
		CSocketsEngine  *iSocketsEngine;
    };

#endif


⌨️ 快捷键说明

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