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

📄 readandwriteappui.h

📁 在symbian下读和写文件源代码
💻 H
字号:
/*
============================================================================
 Name        : ReadAndWriteAppUi.h
 Author      : 
 Version     :
 Copyright   : Your copyright notice
 Description : Main application UI class (controller)
============================================================================
*/

#ifndef __READANDWRITEAPPUI_H__
#define __READANDWRITEAPPUI_H__

// INCLUDES
#include <aknappui.h>


// FORWARD DECLARATIONS
class CReadAndWriteAppView;


// CLASS DECLARATION
/**
* CReadAndWriteAppUi application UI class.
* Interacts with the user through the UI and request message processing
* from the handler class
*/
class CReadAndWriteAppUi : public CAknAppUi
    {
    public: // Constructors and destructor

        /**
        * ConstructL.
        * 2nd phase constructor.
        */
        void ConstructL();

        /**
        * CReadAndWriteAppUi.
        * C++ default constructor. This needs to be public due to
        * the way the framework constructs the AppUi
        */
        CReadAndWriteAppUi();

		void ConvertToUnicode(TDes16 &aUnicode, const TDesC8 &aForeign);

		void ConvertFromUnicode(TDes8 &aForeign, const TDesC16 &aUnicode);

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

    private:  // Functions from base classes

        /**
        * From CEikAppUi, HandleCommandL.
        * Takes care of command handling.
        * @param aCommand Command to be handled.
        */
        void HandleCommandL( TInt aCommand );

        /**
        *  HandleStatusPaneSizeChange.
        *  Called by the framework when the application status pane
 		*  size is changed.
        */

		void HandleStatusPaneSizeChange();
		void Read(TDes16&  readbuf);
		void GetType(const TDesC& mybuf,const TDesC& identifier,TDes& type);
		void Write(const TDesC &keystring,const TDesC &writestringbuf);
		void Write(const TDesC &keystring,TInt writeint);
		void Save(const TDesC &savestringbuf);
        
    private: // Data

        /**
        * The application view
        * Owned by CReadAndWriteAppUi
        */
        CReadAndWriteAppView* iAppView;
		TBuf<100> buf;
		TBuf<100> fullbuf;
		TBuf<20> buf1;
		TBuf<20> buf2;
		TBuf<20> buf3;  
		TBuf<20> buf4;
        
    };

#endif // __READANDWRITEAPPUI_H__

// End of File

⌨️ 快捷键说明

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