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

📄 cssyncdocument.h

📁 Symbian Client_Server_Application
💻 H
字号:

/*
* ==============================================================================
*  Name        :CSSyncDocument.h
*  Part of     : clientserversync
*  Interface   : 
*  Description : 
*  Version     : 
* ==============================================================================
*/

#ifndef __CSSYNCDOCUMENT_H__
#define __CSSYNCDOCUMENT_H__

// INCLUDES
#include <akndoc.h>
#include "FileServerSession.h"

// FORWARD DECLARATIONS
class CCSSyncAppUi;
class CEikApplication;


// CLASS DECLARATION

/**
* CCSSyncDocument application class.
* An instance of class CCSSyncDocument is the Document part of the
* AVKON application framework for the CSSync example application.
*/
class CCSSyncDocument : public CAknDocument
    {
    public: // Constructors and destructor

        /**
        * NewL.
        * Two-phased constructor.
        * Construct a CCSSyncDocument for the AVKON application aApp
        * using two phase construction, and return a pointer
        * to the created object.
        * @param aApp Application creating this document.
        * @return A pointer to the created instance of CCSSyncDocument.
        */
        static CCSSyncDocument* NewL( CEikApplication& aApp );

        /**
        * NewLC.
        * Two-phased constructor.
        * Construct a CCSSyncDocument for the AVKON application aApp
        * using two phase construction, and return a pointer
        * to the created object.
        * @param aApp Application creating this document.
        * @return A pointer to the created instance of CCSSyncDocument.
        */
        static CCSSyncDocument* NewLC( CEikApplication& aApp );

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

    public: 
  	/**
        * CreateFile
        * Passes the pathname of the file to be created to the server.
        */
	void CreateFile();    

	/**
        * DeleteFile
        * Passes the pathname of the file to be deleted to the server.
        */
	void DeleteFile();

        /**
        * CreateAppUiL
        * From CEikDocument, CreateAppUiL.
        * Create a CCSSyncAppUi object and return a pointer to it.
        * The object returned is owned by the Uikon framework.
        * @return Pointer to created instance of AppUi.
        */
        CEikAppUi* CreateAppUiL();

    private: // Constructors

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

        /**
        * CCSSyncDocument.
        * C++ default constructor.
        * @param aApp Application creating this document.
        */
        CCSSyncDocument( CEikApplication& aApp );
private: // Data

        /**
        * iServer, interface to the File Server.
        */
        RFileServerSession iServer;
    };

#endif // __CSSYNCDOCUMENT_H__

// End of File

⌨️ 快捷键说明

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