?? tmserversession.h
字號:
/* Copyright (c) 2006, Forum Nokia. All rights reserved */
#ifndef __TMSERVERSESSION_H__
#define __TMSERVERSESSION_H__
// INCLUDE FILES
#include <e32base.h>
#include "ClientServerCommon.h"
// CONSTANTS
_LIT( KTmServerFilename, "TMServer" );
// 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
* @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
* @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
* @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;
/**
* SetAll.
* Passes the remote server address, port and type info
* to our server to be stored
* @param anAddress The remote server address info to be stored
* @param aPort The remote server port info to be stored
* @param aType The remote server type info to be stored
*/
IMPORT_C void SetAll(const TDesC& anAddress, const TDesC& aPort,
const TDesC& aType) const;
/**
* GetServerAll.
* Issues a request to our server to fetch the stored address, port and
* type info of the remote server
* @param anAddress The return value for the address
* @param aPort The return value for the port
* @param aType The return value for the type
*/
IMPORT_C void GetAll(TDes& anAddress, TDes& aPort, TDes& aType) const;
};
#endif // __TMSERVERSESSION_H__
// End of File
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -