CPbapServer Class Reference

class CPbapServer : public CPolicyServer

PBAP server

Inherits from

Public Member Functions
~CPbapServer()
voidAddSession()
voidDropSession()
voidHandlePasswordRetrieved(TInt, const TDesC &)
CPbapServer *NewL()
voidReleaseObex()
voidSetPasswordL(HBufC *)
voidStartObexL()
Private Member Functions
CPbapServer()
voidAbortIndication()
voidBuildVirtualFolderTreeL()
voidCancelExport()
voidCancelIndicationCallback()
voidCleanupGetRequest()
voidCleanupOnDisconnect()
voidConstructL()
CContactDatabase &ContactDB()
CPbapContactDbViews &ContactDbViews()
voidCreateLogEngineClientL()
voidDoGetRequestIndicationL(CObexBaseObject *)
voidDoRestartObex()
voidDoUpdateAvailabilityL(TPbapAvailability)
voidErrorIndication(TInt)
MPbapErrorReporter &ErrorReporter()
voidExportCallHistoryL(const CLogEvent &, TVCardVersion, TUint64)
voidExportContactL(TContactItemId, TVCardVersion, TUint64)
voidExportEmptyVCardL(TVCardVersion)
voidExportListingBeginL()
voidExportListingEndL()
voidExportListingEntryL(TInt, const TDesC &)
voidExportNewMissedCallsL(TInt)
voidExportPhonebookSizeL(TInt)
MPbapExporter &Exporter()
CPbapVCardExporterUtil &ExporterUtil()
voidFinaliseExportL()
voidGetCompleteIndication()
TInt GetPacketIndication()
voidGetRequestIndication(CObexBaseObject *)
voidGetUserPasswordL(const TDesC &)
CPbapLogWrapper &LogClient()
CSession2 *NewSessionL(const TVersion &, const RMessage2 &)
voidObexConnectIndication(const TObexConnectInfo &, const TDesC8 &)
voidObexDisconnectIndication(const TDesC8 &)
voidOpenContactsDbL()
voidPutCompleteIndication()
TInt PutPacketIndication()
voidPutRequestIndication()
voidRegisterWithSdpL(TUint)
voidReleaseSdpRegistration()
voidReportObexError(TInt)
CVirtualFolders *ResolvePath(TDes &, TBool)
TInt RestartObex(TAny *)
voidSendNotFoundError()
voidSendPreconditionFailedError()
voidSendServiceUnavailableError()
voidSetPathIndication(const CObex::TSetPathInfo &, const TDesC8 &)
voidStartExport()
CVirtualFolders *TelecomSubTreeL()
voidTransportDownIndication()
voidTransportUpIndication()
voidUpdateAvailability(TPbapAvailability)
Inherited Functions
CActive::CActive(TInt)
CActive::Cancel()
CActive::Deque()
CActive::IsActive()const
CActive::IsAdded()const
CActive::Priority()const
CActive::SetActive()
CActive::SetPriority(TInt)
CActive::~CActive()
CBase::CBase()
CBase::Delete(CBase *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CPolicyServer::CPolicyServer(TInt,const TPolicy &,TServerType)
CPolicyServer::CheckFailedL(const RMessage2 &,TInt,const TSecurityInfo &)
CPolicyServer::CustomFailureActionL(const RMessage2 &,TInt,const TSecurityInfo &)
CPolicyServer::CustomSecurityCheckL(const RMessage2 &,TInt &,TSecurityInfo &)
CPolicyServer::Extension_(TUint,TAny *&,TAny *)
CPolicyServer::ProcessError(const RMessage2 &,TInt)
CPolicyServer::ProcessL(const RMessage2 &)
CServer2::CServer2(TInt,TServerType)
CServer2::DoCancel()
CServer2::DoConnect(const RMessage2 &)
CServer2::Message()const
CServer2::ReStart()
CServer2::Server()const
CServer2::SetMaster(const CServer2 *)
CServer2::SetPinClientDescriptors(TBool)
CServer2::Start(const TDesC &)
CServer2::StartL(const TDesC &)
CServer2::~CServer2()
Inherited Enumerations
CActive:TPriority
CPolicyServer:TCustomResult
CPolicyServer:TFailureAction
CPolicyServer:TSpecialCase
CServer2:TPanic
CServer2:TServerType
Private Attributes
TBool iActiveSession
RBuf8 iAppHeaderDetails
CAsyncCallBack *iAsyncRestartObex
RBufWriteStream iBufStreamer
CPbapContactDbViews *iContactViews
CContactDatabase *iContacts
CVirtualFolders *iCurrentFolder
TBool iExportInProgress
CVirtualFolders *iFolderTree
RFs iFs
CVirtualFolders *iGetRequestFolder
CPbapLogWrapper *iLogWrapper
CObexServer *iObex
CBufFlat *iOutboundBuffer
CObexBufObject *iOutboundObject
HBufC *iPassword
CPbapAuthPasswordGetter *iPasswordGetter
RBTPhysicalLinkAdapter iPhysLinkAdaptor
RSdpDatabase iSdpDatabase
TSdpServRecordHandle iSdpRecordHandle
RSdp iSdpServer
CPbapServerShutdown *iShutdown
RSocketServ iSocketServ
CPbapVCardExporterUtil *iVCardExporter
Inherited Attributes
CActive::iStatus
CServer2::iSessionIter

Constructor & Destructor Documentation

CPbapServer()

CPbapServer()[private]

~CPbapServer()

~CPbapServer()

Member Functions Documentation

AbortIndication()

voidAbortIndication()[private, virtual]

AddSession()

voidAddSession()

a new session is being created Cancel the shutdown timer if it was running

BuildVirtualFolderTreeL()

voidBuildVirtualFolderTreeL()[private]

CancelExport()

voidCancelExport()[private, virtual]

CancelIndicationCallback()

voidCancelIndicationCallback()[private, virtual]

CleanupGetRequest()

voidCleanupGetRequest()[private]

CleanupOnDisconnect()

voidCleanupOnDisconnect()[private]

ConstructL()

voidConstructL()[private]

ContactDB()

CContactDatabase &ContactDB()const [private, virtual]

ContactDbViews()

CPbapContactDbViews &ContactDbViews()[private, virtual]

CreateLogEngineClientL()

voidCreateLogEngineClientL()[private]

DoGetRequestIndicationL(CObexBaseObject *)

voidDoGetRequestIndicationL(CObexBaseObject *aRequiredObject)[private]

Parameters

CObexBaseObject * aRequiredObject

DoRestartObex()

voidDoRestartObex()[private]

DoUpdateAvailabilityL(TPbapAvailability)

voidDoUpdateAvailabilityL(TPbapAvailabilityaAvailablility)[private]

Parameters

TPbapAvailability aAvailablility

DropSession()

voidDropSession()

a session is being destroyed. Start the shutdown timer if it is the last session.

ErrorIndication(TInt)

voidErrorIndication(TIntaError)[private, virtual]

Parameters

TInt aError

ErrorReporter()

MPbapErrorReporter &ErrorReporter()[private, virtual]

ExportCallHistoryL(const CLogEvent &, TVCardVersion, TUint64)

voidExportCallHistoryL(const CLogEvent &aEvent,
TVCardVersionaFormat,
TUint64aFilter
)[private, virtual]

Parameters

const CLogEvent & aEvent
TVCardVersion aFormat
TUint64 aFilter

ExportContactL(TContactItemId, TVCardVersion, TUint64)

voidExportContactL(TContactItemIdaContactId,
TVCardVersionaFormat,
TUint64aFilter
)[private, virtual]

Parameters

TContactItemId aContactId
TVCardVersion aFormat
TUint64 aFilter

ExportEmptyVCardL(TVCardVersion)

voidExportEmptyVCardL(TVCardVersionaFormat)[private, virtual]

Parameters

TVCardVersion aFormat

ExportListingBeginL()

voidExportListingBeginL()[private, virtual]

ExportListingEndL()

voidExportListingEndL()[private, virtual]

ExportListingEntryL(TInt, const TDesC &)

voidExportListingEntryL(TIntaHandle,
const TDesC &aName
)[private, virtual]

Parameters

TInt aHandle
const TDesC & aName

ExportNewMissedCallsL(TInt)

voidExportNewMissedCallsL(TIntaCount)[private, virtual]

Parameters

TInt aCount

ExportPhonebookSizeL(TInt)

voidExportPhonebookSizeL(TIntaCount)[private, virtual]

Parameters

TInt aCount

Exporter()

MPbapExporter &Exporter()[private, virtual]

ExporterUtil()

CPbapVCardExporterUtil &ExporterUtil()[private, virtual]

FinaliseExportL()

voidFinaliseExportL()[private, virtual]

GetCompleteIndication()

voidGetCompleteIndication()[private, virtual]

GetPacketIndication()

TInt GetPacketIndication()[private, virtual]

GetRequestIndication(CObexBaseObject *)

voidGetRequestIndication(CObexBaseObject *aRequiredObject)[private, virtual]

Parameters

CObexBaseObject * aRequiredObject

GetUserPasswordL(const TDesC &)

voidGetUserPasswordL(const TDesC &aRealm)[private, virtual]

Parameters

const TDesC & aRealm

HandlePasswordRetrieved(TInt, const TDesC &)

voidHandlePasswordRetrieved(TIntaError,
const TDesC &aPassword
)

Parameters

TInt aError
const TDesC & aPassword

LogClient()

CPbapLogWrapper &LogClient()const [private, virtual]

NewL()

CPbapServer *NewL()[static]

NewSessionL(const TVersion &, const RMessage2 &)

CSession2 *NewSessionL(const TVersion &aVersion,
const RMessage2 &aMessage
)const [private, virtual]

create new session

Parameters

const TVersion & aVersion
const RMessage2 & aMessage

ObexConnectIndication(const TObexConnectInfo &, const TDesC8 &)

voidObexConnectIndication(const TObexConnectInfo &aRemoteInfo,
const TDesC8 &aInfo
)[private, virtual]

Parameters

const TObexConnectInfo & aRemoteInfo
const TDesC8 & aInfo

ObexDisconnectIndication(const TDesC8 &)

voidObexDisconnectIndication(const TDesC8 &aInfo)[private, virtual]

Parameters

const TDesC8 & aInfo

OpenContactsDbL()

voidOpenContactsDbL()[private]

PutCompleteIndication()

voidPutCompleteIndication()[private, virtual]

PutPacketIndication()

TInt PutPacketIndication()[private, virtual]

PutRequestIndication()

voidPutRequestIndication()[private, virtual]

RegisterWithSdpL(TUint)

voidRegisterWithSdpL(TUintaRfcommChannel)[private]

Parameters

TUint aRfcommChannel

ReleaseObex()

voidReleaseObex()

ReleaseSdpRegistration()

voidReleaseSdpRegistration()[private]

ReportObexError(TInt)

voidReportObexError(TIntaSymbianError)[private]

Parameters

TInt aSymbianError

ResolvePath(TDes &, TBool)

CVirtualFolders *ResolvePath(TDes &aPathInObjectOut,
TBoolaAbsolute
)const [private]

Return folder which request will be operating on, and modify passed in path descriptor to contain only the file name

Parameters

TDes & aPathInObjectOut
TBool aAbsolute

RestartObex(TAny *)

TInt RestartObex(TAny *aAny)[private, static]

Parameters

TAny * aAny

SendNotFoundError()

voidSendNotFoundError()[private, virtual]

SendPreconditionFailedError()

voidSendPreconditionFailedError()[private, virtual]

SendServiceUnavailableError()

voidSendServiceUnavailableError()[private, virtual]

SetPasswordL(HBufC *)

voidSetPasswordL(HBufC *aPassword)

Parameters

HBufC * aPassword

SetPathIndication(const CObex::TSetPathInfo &, const TDesC8 &)

voidSetPathIndication(const CObex::TSetPathInfo &aPathInfo,
const TDesC8 &aInfo
)[private, virtual]

Parameters

const CObex::TSetPathInfo & aPathInfo
const TDesC8 & aInfo

StartExport()

voidStartExport()[private, virtual]

StartObexL()

voidStartObexL()

TelecomSubTreeL()

CVirtualFolders *TelecomSubTreeL()[private]

TransportDownIndication()

voidTransportDownIndication()[private, virtual]

TransportUpIndication()

voidTransportUpIndication()[private, virtual]

UpdateAvailability(TPbapAvailability)

voidUpdateAvailability(TPbapAvailabilityaAvailablility)[private]

Parameters

TPbapAvailability aAvailablility

Member Data Documentation

TBool iActiveSession

TBool iActiveSession[private]

RBuf8 iAppHeaderDetails

RBuf8 iAppHeaderDetails[private]

CAsyncCallBack * iAsyncRestartObex

CAsyncCallBack *iAsyncRestartObex[private]

RBufWriteStream iBufStreamer

RBufWriteStream iBufStreamer[private]

CPbapContactDbViews * iContactViews

CPbapContactDbViews *iContactViews[private]

CContactDatabase * iContacts

CContactDatabase *iContacts[private]

CVirtualFolders * iCurrentFolder

CVirtualFolders *iCurrentFolder[private]

TBool iExportInProgress

TBool iExportInProgress[private]

CVirtualFolders * iFolderTree

CVirtualFolders *iFolderTree[private]

RFs iFs

RFs iFs[private]

CVirtualFolders * iGetRequestFolder

CVirtualFolders *iGetRequestFolder[private]

CPbapLogWrapper * iLogWrapper

CPbapLogWrapper *iLogWrapper[private]

CObexServer * iObex

CObexServer *iObex[private]

CBufFlat * iOutboundBuffer

CBufFlat *iOutboundBuffer[private]

CObexBufObject * iOutboundObject

CObexBufObject *iOutboundObject[private]

HBufC * iPassword

HBufC *iPassword[private]

CPbapAuthPasswordGetter * iPasswordGetter

CPbapAuthPasswordGetter *iPasswordGetter[private]

RBTPhysicalLinkAdapter iPhysLinkAdaptor

RBTPhysicalLinkAdapter iPhysLinkAdaptor[private]

RSdpDatabase iSdpDatabase

RSdpDatabase iSdpDatabase[private]

TSdpServRecordHandle iSdpRecordHandle

TSdpServRecordHandle iSdpRecordHandle[private]

RSdp iSdpServer

RSdp iSdpServer[private]

CPbapServerShutdown * iShutdown

CPbapServerShutdown *iShutdown[private]

RSocketServ iSocketServ

RSocketServ iSocketServ[private]

CPbapVCardExporterUtil * iVCardExporter

CPbapVCardExporterUtil *iVCardExporter[private]