Swi::RInstallServerSession Class Reference

class Swi::RInstallServerSession : public RSessionBase

Session to communicate with SWIS in order to initiate installation or uninstallation.

Inherits from

Public Member Functions
IMPORT_C TInt Cancel ()
IMPORT_C TInt Connect ()
void InstallL (const TIpcArgs &, TRequestStatus &)
IMPORT_C TInt Restore (const TIpcArgs &)
IMPORT_C TInt RestoreCommit ()
IMPORT_C TInt RestoreFile (const TIpcArgs &)
void Uninstall ( TIpcArgs &, TRequestStatus &)
Inherited Functions
RHandleBase::Attributes()const
RHandleBase::BTraceId()const
RHandleBase::Close()
RHandleBase::DoExtendedClose()
RHandleBase::Duplicate(const RThread &,TOwnerType)
RHandleBase::FullName()const
RHandleBase::FullName(TDes &)const
RHandleBase::Handle()const
RHandleBase::HandleInfo(THandleInfo *)
RHandleBase::Name()const
RHandleBase::NotifyDestruction(TRequestStatus &)
RHandleBase::Open(const TFindHandleBase &,TOwnerType)
RHandleBase::OpenByName(const TDesC &,TOwnerType,TInt)
RHandleBase::RHandleBase()
RHandleBase::RHandleBase(TInt)
RHandleBase::SetHandle(TInt)
RHandleBase::SetHandleNC(TInt)
RSessionBase::CreateSession(RServer2,const TVersion &)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt)
RSessionBase::CreateSession(RServer2,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TIpcSessionType,const TSecurityPolicy *,TRequestStatus *)
RSessionBase::CreateSession(const TDesC &,const TVersion &,TInt,TRequestStatus *)
RSessionBase::Open(RMessagePtr2,TInt,TOwnerType)
RSessionBase::Open(RMessagePtr2,TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Open(TInt,TOwnerType)
RSessionBase::Open(TInt,const TSecurityPolicy &,TOwnerType)
RSessionBase::Send(TInt)const
RSessionBase::Send(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt)const
RSessionBase::SendReceive(TInt,TRequestStatus &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &)const
RSessionBase::SendReceive(TInt,const TIpcArgs &,TRequestStatus &)const
RSessionBase::SetReturnedHandle(TInt)
RSessionBase::SetReturnedHandle(TInt,RHandleBase &)
RSessionBase::SetReturnedHandle(TInt,const TSecurityPolicy &)
RSessionBase::ShareAuto()
RSessionBase::ShareProtected()
Inherited Enumerations
RHandleBase:TAttributes
RSessionBase:TAttachMode
Inherited Attributes
RHandleBase::iHandle

Member Functions Documentation

Cancel()

IMPORT_C TInt Cancel ( )

Cancel current activity of SWIS. This is meaningful during file installation phase only because to cancel installation planning it is only necessary to cancel a dialog box.

Connect()

IMPORT_C TInt Connect ( )

Connect to the server, attempt to start it if it is not yet running

InstallL(const TIpcArgs &, TRequestStatus &)

void InstallL ( const TIpcArgs & aArgs,
TRequestStatus & aStatus
)

Start installation. SWIS will ask SISHelper for package data so it is not necessary to pass any additional arguments.

Parameters

const TIpcArgs & aArgs
TRequestStatus & aStatus A request status which indicates the completion status of the asynchronous request.

Restore(const TIpcArgs &)

IMPORT_C TInt Restore ( const TIpcArgs & aArgs )

Start restoration of a package

Parameters

const TIpcArgs & aArgs Contains the UID of the package being restored and the associated metadata

RestoreCommit()

IMPORT_C TInt RestoreCommit ( )

Commits the files submitted in this package

RestoreFile(const TIpcArgs &)

IMPORT_C TInt RestoreFile ( const TIpcArgs & aArgs )

Restores a single system file

Parameters

const TIpcArgs & aArgs Contains the destination filename of the file to be restored and a file handle to its data

Uninstall(TIpcArgs &, TRequestStatus &)

void Uninstall ( TIpcArgs & args,
TRequestStatus & aStatus
)

Start uninstallation

Parameters

TIpcArgs & args
TRequestStatus & aStatus A request status which indicates the completion status of the asynchronous request.