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

📄 sms3rdappview.h

📁 symbian s60 3rd sms handle code
💻 H
字号:
/*
============================================================================
 Name        : SMS3rdView.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Application view
============================================================================
*/

#ifndef __SMS3RDAPPVIEW_H__
#define __SMS3RDAPPVIEW_H__

// INCLUDES
#include <coecntrl.h>
#include "SmsHandler.h"

// CLASS DECLARATION
class CSMS3rdAppView : public CCoeControl
    {
    public: // New methods
		void SendMessage();
		void SendMsg(); //Added by Kiran
		TInt GetPhoneNumberL();
		TInt GetSMSTextL();

        /**
        * NewL.
        * Two-phased constructor.
        * Create a CSMS3rdAppView 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 CSMS3rdAppView.
        */
        static CSMS3rdAppView* NewL( const TRect& aRect );

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

        /**
        * ~CSMS3rdAppView
        * Virtual Destructor.
        */
        virtual ~CSMS3rdAppView();

    public:  // Functions from base classes

        /**
        * From CCoeControl, Draw
        * Draw this CSMS3rdAppView 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();

    private: // Constructors

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

        /**
        * CSMS3rdAppView.
        * C++ default constructor.
        */
        CSMS3rdAppView();

	private:
		CSmsHandler* iSmsHandler;
		TBuf<20> PhoneNumber;
		TBuf<160> SMSText;


    };

#endif // __SMS3RDAPPVIEW_H__

// End of File

⌨️ 快捷键说明

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