📄 bluegpsserversession.h
字号:
/*****************************************************************************
COPYRIGHT All rights reserved Sony Ericsson Mobile Communications AB 2003.
The software is the copyrighted work of Sony Ericsson Mobile Communications AB.
The use of the software is subject to the terms of the end-user license
agreement which accompanies or is included with the software. The software is
provided "as is" and Sony Ericsson specifically disclaim any warranty or
condition whatsoever regarding merchantability or fitness for a specific
purpose, title or non-infringement. No warranty of any kind is made in
relation to the condition, suitability, availability, accuracy, reliability,
merchantability and/or non-infringement of the software provided herein.
*****************************************************************************/
#if !defined(__BlueGPSServerSession_H__)
#define __BlueGPSServerSession_H__
#include "BlueGPSClientServer.h"
#include "BlueGPSServer.h"
class CBlueGPSClientSession;
class CBlueGPSServer;
//**********************************
// CBlueGPSServerSession
//**********************************
// Session for the BlueGPS server, to a single client-side session
class CBlueGPSServerSession : public CSession
{
public:
// construct/destruct/close session
static CBlueGPSServerSession* NewL( RThread& aClient, /*const */CBlueGPSServer* aServer );
private:
CBlueGPSServerSession( RThread& aClient );
~CBlueGPSServerSession();
void ConstructL( CBlueGPSServer* aServer );
public:
void CloseSession();
// service request
void ServiceL( const RMessage& aMessage );
void DispatchMessageL( const RMessage& aMessage );
void WriteGPSInfo( const TBlueGPSInfo& aInfo );
void Write( const TAny* aPtr, const TDesC8& aDes, TInt aOffset = 0 );
void PanicClient( TInt aPanic ) const;
void CBlueGPSServerSession::WriteConnectStatus( const TBool& aConnected );
private:
CBlueGPSServer *iServer; // pointer to owning server
TBlueGPSInfo iInfo;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -