?? tmserversession.h
字號:
/* Copyright (c) 2005, Forum Nokia. All rights reserved */
#ifndef __TMSERVERSESSION_H__
#define __TMSERVERSESSION_H__
// INCLUDE FILES
#include <e32base.h>
#include "ClientServerCommon.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;
_LIT( KTmServerFilename, "TMServer" );
#ifdef __WINS__
static const TUint KServerMinHeapSize = 0x1000; // 4K
static const TUint KServerMaxHeapSize = 0x10000; // 64K
#endif
// CLASS DECLARATION
/**
* RTmServerSession
* This class provides the client-side interface to the server session
*/
class RTmServerSession : public RSessionBase
{
public: // Constructors and destructors
/**
* RTmServerSession.
* Constructs the object.
*/
IMPORT_C RTmServerSession();
public: // New functions
/**
* Connect.
* Connects to the server and create a session.
* @return Error code.
*/
IMPORT_C TInt Connect();
/**
* Version.
* Gets the version number.
* @return The version.
*/
inline TVersion Version() const;
/**
* SetServerAddress.
* Passes the remote server address to our server to be stored in an encrypted file
* @param anAddress The remote server address to be stored
*/
IMPORT_C void SetServerAddress(const TDesC& anAddress ) const;
/**
* GetServerAddress.
* Issues a request to our server to fetch the stored address of the remote server
* @param anAddress The return value
*/
IMPORT_C void GetServerAddress(TDes& anAddress ) const;
/**
* SetServerPort.
* Passes the remote server port to our server to be stored in an encrypted file
* @param aPort The remote server port to be stored
*/
IMPORT_C void SetServerPort(const TDesC& aPort ) const;
/**
* GetServerPort.
* Issues a request to our server to fetch the stored port of the remote server
* @param aPort The return value
*/
IMPORT_C void GetServerPort(TDes& aPort ) const;
/**
* SetServerType.
* Passes the remote server type info (currently "JSP" or "PHP") to our server to be stored in an encrypted file
* @param aType The remote server type info to be stored
*/
IMPORT_C void SetServerType(const TDesC& aType ) const;
/**
* GetServerType.
* Issues a request to our server to fetch the stored type info of the remote server
* @param aType The return value
*/
IMPORT_C void GetServerType(TDes& aType ) const;
};
#endif // __TMSERVERSESSION_H__
// End of File
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -