📄 mguardscsvrsession.h
字号:
/*
* ============================================================================
* Name : MGuardScSvrSession.h
* Part of : MGuardSc
* Created : 19.08.2007 by xueyw
* Description:
* Version :
* Copyright:
* ============================================================================
*/
#ifndef __MGUARDSCSVRSESSION_H__
#define __MGUARDSCSVRSESSION_H__
// CONSTANTS
const TUint KDefaultMessageSlots = 2;
//???
const TUid KServerUid3 = { 0x10005BCE }; // Server UID
//_LIT( KMGuardScSvrName,"MGuardScSvr" ); // Server name
_LIT( KMGuardServerFilename, "MGuardScSvr" );
#ifdef __WINS__
static const TUint KServerMinHeapSize = 0x1000; // 4K
static const TUint KServerMaxHeapSize = 0x10000; // 64K
#endif
// CLASS DECLARATION
/**
* RMGuardSvrSession
* This class provides the client-side interface to the server session
*/
class RMGuardSvrSession : public RSessionBase
{
public: // Constructors and destructors
/**
* RMGuardSvrSession.
* Constructs the object.
*/
RMGuardSvrSession();
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;
/**
* RequestLock.
* Issues a request for the time to the server.
* @param aTime The location for the server to write data into.
* @param aStatus The TRequestStatus object to be used for async comms.
*/
void RequestLock( TTime& aTime,TRequestStatus& aStatus );
void RequestUnlock( TTime& aTime,TRequestStatus& aStatus );
/**
* CancelRequestLock.
* Cancels any outstanding request to the server.
*/
void CancelRequestLock() const;
private: // Data
/**
* iTimeBuffer, buffer to write the time to.
*/
TPtr8 iTimeBuffer;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -