CBaServBackupSession Class Reference
class CBaServBackupSession : public CSession2
|
Nested Classes and Structures
Constructor & Destructor Documentation
CBaServBackupSession()
IMPORT_C
|
CBaServBackupSession
|
(
|
)
|
[protected]
|
~CBaServBackupSession()
IMPORT_C
|
~CBaServBackupSession
|
(
|
)
|
|
Member Functions Documentation
BackupOperationEventReadyL()
void
|
BackupOperationEventReadyL
|
(
|
)
|
[private]
|
CleanupCloseAllFiles(TAny *)
void
|
CleanupCloseAllFiles
|
(
|
TAny
*
|
aPtr
|
)
|
[private, static]
|
CloseAllFilesL(const RMessage2 &)
Asks the server to close all files. This function may leave in case the server is busy. If the requesting client is the current busy client and it has already requested CloseAll, this request will be ignored.
-
leave
-
KErrServerBusy if the requesting client is not the busy client. Plus other system-wide errors.
Parameters
const
RMessage2
& aMessage
|
The reference to the message containing the client request: file lock.
|
CloseFileL()
void
|
CloseFileL
|
(
|
)
|
[private]
|
Handle the client's request to close a file. The request will be ignored if the requesting client the current busy client and the server is under CloseAll operation.
-
leave
-
KErrServerBusy if the server is busy with the other client, plus other system-wide errors.
ConstructL()
IMPORT_C void
|
ConstructL
|
(
|
)
|
[protected, virtual]
|
CreateL()
IMPORT_C void
|
CreateL
|
(
|
)
|
[protected, virtual]
|
Completes the construction of this
CBaServBackupSession
session by just doing a base call class. It also notify the server that a new session has been created.
DoCloseAllFilesL(const RMessage2 &)
Function called by both base and derived backup sessions in order to start asynchronous file lock notifications. The requesting client is set to the current busy client.
-
leave
-
KErrServerBusy if the requesting client is not the current busy client or the server is under CloseAll operation. KErrAlreadyExists if the same client has sent CloseAll request. Plus other system-wide errors.
DoRestartAll()
void
|
DoRestartAll
|
(
|
)
|
[private]
|
DoServiceL(TCompletionType &)
GetBackupOperationEventL(const RMessagePtr2 &)
void
|
GetBackupOperationEventL
|
(
|
const
RMessagePtr2
&
|
aPtr
|
)
|
[private]
|
GetBackupOperationStateL()
void
|
GetBackupOperationStateL
|
(
|
)
|
[private]
|
GetEventL()
void
|
GetEventL
|
(
|
)
|
[private]
|
GetFileNameL(TDes &)
void
|
GetFileNameL
|
(
|
TDes
&
|
aFileName
|
)
|
[private]
|
HandleError(TInt)
IMPORT_C void
|
HandleError
|
(
|
TInt
|
aError
|
)
|
[virtual]
|
Allows the session to handle the error.
HandleEventReadyL()
void
|
HandleEventReadyL
|
(
|
)
|
[private]
|
NotifyBackupOperationL()
void
|
NotifyBackupOperationL
|
(
|
)
|
[private]
|
NotifyLockChangeCancelL()
void
|
NotifyLockChangeCancelL
|
(
|
)
|
[private]
|
NotifyLockChangeL()
void
|
NotifyLockChangeL
|
(
|
)
|
[private]
|
Handles the client's request of notification of a file lock change.
-
leave
-
KErrServerBusy if the server is under CloseAll operation, KLeaveWithoutAlert if the requested file has been registered. Plus other system-wide errors.
RestartAll()
IMPORT_C void
|
RestartAll
|
(
|
)
|
[protected, virtual]
|
Asks the server to signal all clients of getting the lock of their respective files.
RestartFileL()
void
|
RestartFileL
|
(
|
)
|
[private]
|
ServiceL(const RMessage2 &)
IMPORT_C void
|
ServiceL
|
(
|
const
RMessage2
&
|
aMessage
|
)
|
[protected, virtual]
|
Handles the servicing of client requests passed to the backup server.
SetClosedFiles(CArrayFix< TClosedFile > *)
SignalBackupOperation(const TBackupOperationAttributes &)
SignalReleaseAllFileLocksL(MBackupObserver::TFileLockFlags)
SignalReleaseFileLockL(MBackupObserver::TFileLockFlags, const TDesC &)
SignalRetakeAllFileLocks()
void
|
SignalRetakeAllFileLocks
|
(
|
)
|
|
SignalRetakeFileLocks(const TDesC &)
void
|
SignalRetakeFileLocks
|
(
|
const
TDesC
&
|
aFileName
|
)
|
|
StopNotifications()
void
|
StopNotifications
|
(
|
)
|
[private]
|
UniqueClientId()
TInt
|
UniqueClientId
|
(
|
)
|
const [protected, inline]
|
Member Enumerations Documentation
Enum TLockType
Enumerators
ENull
|
|
ERelease
|
|
ETake
|
|
EPendingReleaseReadOnly
|
|
EPendingReleaseNoAccess
|
|
EPendingTake
|
|
Member Data Documentation
TBackupOperationAttributes
iBackupOperationAttributes
RMessagePtr2
iBackupOperationMessagePtr
TBool
iBackupOperationObserverPresent
TBool
|
iBackupOperationObserverPresent
|
[private]
|
BSUL::CClientMessage * iClientMessage
CArrayFix< TClosedFile > * iClosedFiles
CDesCArray * iFileLockObservers
CBaServBackupMessageQueue * iMessageQueue
RMessagePtr2
iNotificationPullMsg
CReRegistrationTimer * iReRegistrationTimer
CReRegistrationTimer *
|
iReRegistrationTimer
|
[private]
|
CDesCArray * iReleasedFiles
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.