CBaBackupServer Class Reference
class CBaBackupServer : public CServer2 |
Nested Classes and Structures
Constructor & Destructor Documentation
CBaBackupServer(TInt)
IMPORT_C | CBaBackupServer | ( | TInt | aPriority | ) | [protected] |
~CBaBackupServer()
IMPORT_C | ~CBaBackupServer | ( | ) | |
Member Functions Documentation
CloseAllFilesL(MBackupObserver::TFileLockFlags)
Handles the closing of all files by signaling the new file lock flag, aFlag, to all client.
CloseFileL(MBackupObserver::TFileLockFlags, const TDesC &)
CompleteClosingFiles(CArrayFix< CBaServBackupSession::TClosedFile > *)
Allows any subclass of CBaBackupServer of completing the closing of files. The server will lose the ownership of aClosedFiles object, which implies it is up to this virtual function to deal with it in order to avoid a memory leak.
ConstructL()
IMPORT_C void | ConstructL | ( | ) | [virtual] |
Completes the server construction by adding the server to the active scheduler and creating a CShutdownServer object.
DecrementRegisteredFilesCount(TInt)
void | DecrementRegisteredFilesCount | ( | TInt | aNumberFiles = 1 | ) | |
HaveAllCloseAllFilesClientsReRegistered()
IMPORT_C TBool | HaveAllCloseAllFilesClientsReRegistered | ( | ) | |
Allows application framework backup code to check if all registerd files have beem updated
IncrementFilesReRegistrationCount()
void | IncrementFilesReRegistrationCount | ( | ) | |
IncrementRegisteredFilesCount()
void | IncrementRegisteredFilesCount | ( | ) | |
IsBackupOperationRunning()
TBool
| IsBackupOperationRunning | ( | ) | const [inline] |
IsClientBusy(TUint32)
Returns ETrue if the client using the server corresponds has aUniqueClientId as unique id oterwise EFalse
IsCloseAllOperationRunning()
TBool
| IsCloseAllOperationRunning | ( | ) | |
IsOtherClientBusy(TUint32)
IMPORT_C TBool | IsOtherClientBusy | ( | TUint32 | aUniqueClientId | ) | const [virtual] |
Returns ETrue if the client using the server is not the one identified by aUniqueClientId oterwise EFalse
NewSessionL(const TVersion &, const RMessage2 &)
Creates a server-side client CBaServBackupSession session object by checking first if the version of the server is compatible with the client.
RestartAll()
IMPORT_C void | RestartAll | ( | ) | [virtual] |
Signals to all clients of getting the lock of their respective files.
RestartFile(const TDesC &)
void | RestartFile | ( | const TDesC & | aFileName | ) | |
RunError(TInt)
IMPORT_C TInt | RunError | ( | TInt | aError | ) | [virtual] |
Handle an error from CBaServBackupSession::ServiceL() A bad descriptor error implies a badly programmed client, so panic it; otherwise report the error to the client
SetBackupOperationRunning(TBool)
void | SetBackupOperationRunning | ( | TBool | aBackupOperationRunning | ) | [inline] |
Parameters
TBool aBackupOperationRunning | |
SetBusy(TUint32)
IMPORT_C void | SetBusy | ( | TUint32 | aUniqueClientId | ) | |
Sets the server to be busy with the aUniqueClientId client.
SetCloseAllOperationRunningState(TBool)
IMPORT_C void | SetCloseAllOperationRunningState | ( | TBool | aRunning | ) | |
SignalBackupOperation(const TBackupOperationAttributes &)
Signals to all clients the aBackupOperationAttributes.
StartCloseAllFilesOperationTimer(const RMessagePtr2 &)
void | StartCloseAllFilesOperationTimer | ( | const RMessagePtr2 & | aPtr | ) | |
This timer will only be created in cases of no derived backup server
Member Data Documentation
TBool
iBackupOperationRunning
TBool
| iBackupOperationRunning | [private] |
CBaServCloseAllOperationTimer * iCloseAllFilesOperationTimer
CBaServCloseAllOperationTimer * | iCloseAllFilesOperationTimer | [private] |
TBool
iCloseAllOperationRunning
TBool
| iCloseAllOperationRunning | [private] |
CBaBackupServerExt * iExtension
TInt16
iRegisteredFilesCount
TInt16
| iRegisteredFilesCount | [private] |
TInt
iSessionCount
TInt
| iSessionCount | [private] |
TInt16
iSessionLockReRegistrationCount
TInt16
| iSessionLockReRegistrationCount | [private] |
CShutdownServer * iShutdown
CShutdownServer * | iShutdown | [private] |
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.