MBackupObserver Class Reference

#include <babackup.h>

class MBackupObserver
Public Member Enumerations
enumTFileLockFlags { ETakeLock, EReleaseLockReadOnly, EReleaseLockNoAccess }
Public Member Functions
pure virtual voidChangeFileLockL(const TDesC &, TFileLockFlags)

Detailed Description

Backup server wrapper observer interface.

MBackupObserver defines the interface to be implemented by any code that will hold file locks or may attempt to access files regardless of other device state e.g. a phone app may always attempt to access the contacts database for caller id

Member Enumeration Documentation

Enum TFileLockFlags

Flags indicating how to change a file lock.

EnumeratorValueDescription
ETakeLock0

Owner can reopen/resume writing to the file.

EReleaseLockReadOnly0x01

Owner should stop writing to the file.

EReleaseLockNoAccess0x02

Owner should close the file.

Member Function Documentation

ChangeFileLockL ( const TDesC &, TFileLockFlags )

voidChangeFileLockL(const TDesC &aFileName,
TFileLockFlagsaFlags
)[pure virtual]

Called by the server to request the file owner to change the lock on the specified file.

ParameterDescription
aFileNameFilename of affected file
aFlagsFlag indicating how to change the file lock