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

📄 datagramtestappview.h

📁 symbian下面收发消息的APIs
💻 H
字号:
/*
* ==============================================================================
*  Name        : DatagramTestappview.h
*  Part of     : DatagramTest
*  Interface   : 
*  Description : 
*  Version     : 
*
*  Copyright (c) 2007 Symbian Ltd.  All rights reserved.
* ==============================================================================
*/

#ifndef __DATAGRAMTESTAPPVIEW_H__
#define __DATAGRAMTESTAPPVIEW_H__

// INCLUDES
#include <coecntrl.h>
#include "smsdatagramreceiver.h"
#include "smsdatagramsender.h"

// CLASS DECLARATION
class CDatagramTestAppView : public CCoeControl, public MSmsDatagramReceiverObserver
						, public MSmsDatagramSenderObserver
    {
    public: // New methods

        /**
        * NewL.
        * Two-phased constructor.
        * Create a CDatagramTestAppView object, which will draw itself to aRect.
        * @param aRect The rectangle this view will be drawn to.
        * @return a pointer to the created instance of CDatagramTestAppView.
        */
        static CDatagramTestAppView* NewL( const TRect& aRect );

        /**
        * NewLC.
        * Two-phased constructor.
        * Create a CDatagramTestAppView object, which will draw itself
        * to aRect.
        * @param aRect Rectangle this view will be drawn to.
        * @return A pointer to the created instance of CDatagramTestAppView.
        */
        static CDatagramTestAppView* NewLC( const TRect& aRect );

        /**
        * ~CDatagramTestAppView
        * Virtual Destructor.
        */
        virtual ~CDatagramTestAppView();
        
    public: // New functions
        
        void AddMessageL( const TDesC& aMsg ) const;   
        
        virtual void MsgReceivedL(TDesC& aMsg);
		virtual void MsgSentL(TDesC& aMsg);
        
    private:  // Functions from base classes

        /**
        * From CCoeControl, Draw
        * Draw this CDatagramTestAppView to the screen.
        * @param aRect the rectangle of this view that needs updating
        */
        void Draw( const TRect& aRect ) const;

        /**
        * From CoeControl, SizeChanged.
        * Called by framework when the view size is changed.
        */
        virtual void SizeChanged();
        
       /**
        * From CoeControl,CountComponentControls.
        */
        TInt CountComponentControls() const;

       /**
        * From CCoeControl,ComponentControl.
        */
        CCoeControl* ComponentControl(TInt aIndex) const;        

        /**
        * From CoeControl, HandleResourceChange.
        * Called by framework when the view layout is changed.
        */
        virtual void HandleResourceChange(TInt aType);
        
        
     


		
    private: // Constructors

        /**
        * ConstructL
        * 2nd phase constructor.
        * Perform the second phase construction of a
        * CDatagramTestAppView object.
        * @param aRect The rectangle this view will be drawn to.
        */
        void ConstructL(const TRect& aRect);

        /**
        * CDatagramTestAppView.
        * C++ default constructor.
        */
        CDatagramTestAppView();
        
  private:      
            /**
        * Editor window for messages and state of test
        * Owned
        */
        CEikEdwin* iEdwin;    

    };

#endif // __DATAGRAMTESTAPPVIEW_H__

// End of File

⌨️ 快捷键说明

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