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

📄 fileserversession.h

📁 Symbian Client_Server_Application
💻 H
字号:
/*
* ==============================================================================
*  Name        :TimeServerSession.h
*  Part of     : clientserversync
*  Interface   : 
*  Description : 
*  Version     : 
* ==============================================================================
*/

#ifndef __TIMESERVERSESSION_H__
#define __TIMESERVERSESSION_H__

// INCLUDE FILES
#include <e32base.h>
#include <e32des8.h>
#include <e32cmn.h>
#include <aknquerydialog.h>


// CONSTANTS
// Number of message slots to reserve for this client server session.
// Since we only communicate synchronously here, we never have any
// outstanding asynchronous requests.
static const TUint KDefaultMessageSlots = 0;

// Server UID
const TUid KServerUid3 = { 0xe85f1760 };

_LIT( KFileServerFilename, "CSSyncServer" );

#ifdef __WINS__
static const TUint KServerMinHeapSize =  0x1000;  //  4K
static const TUint KServerMaxHeapSize = 0x10000;  // 64K
#endif

// CLASS DECLARATION
/**
* RFileServerSession
*  This class provides the client-side interface to the server session
*/
class RFileServerSession : public RSessionBase
    {
    public: // Constructors and destructors

        /**
        * RFileServerSession.
        * Constructs the object.
        */
        RFileServerSession();

    public: // New functions

        /**
        * Connect.
        * Connects to the server and create a session.
        * @return Error code.
        */
        TInt Connect();

        /**
        * Version.
        * Gets the version number.
        * @return The version.
        */
        TVersion Version() const;

        /**
        * RequestFileCreation
        * Issues a request for filecreation to the server.
        * @param None
        */
		void RequestFileCreation();
		
		/**
        * RequestFileCreation
        * Issues a request for filedeletion to the server.
        * @param None
        */
		void RequestFileDeletion();
		
		/*
		* holds the filename path
		*/
		TFileName iFileNameCreate;
		TFileName iFileNameDelete;
		
		/*
		* holds the filename
		*/
		TBuf<128> iFileName;
		
		/*
		*holds the msg to be displayed on the dialog
		*/
		TBuf<20> iDisplayTxt;
		
		/*
		* arguments passed to the server.
		*/
		TIpcArgs iIpcArgsCreate;
		TIpcArgs iIpcArgsDelete;
		
		/*
		* Dialog for querying the filename
		*/
		CAknTextQueryDialog* iDlg;
    };

#endif // __TIMESERVERSESSION_H__


// End of File

⌨️ 快捷键说明

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