sbDeviceEnsureSpaceForWrite Class Reference

#include <sbDeviceEnsureSpaceForWrite.h>

Public Member Functions

 sbDeviceEnsureSpaceForWrite (sbBaseDevice *aDevice, sbIDeviceLibrary *aDevLibrary, sbILibraryChangeset *aChangeset)
 
 ~sbDeviceEnsureSpaceForWrite ()
 
nsresult EnsureSpace ()
 

Detailed Description

This is a helper class that looks at the changeset and determines how many items will fit in the free space of the device. The changeset passed to the constructor is modified, removing changes that dont fit.

Definition at line 39 of file sbDeviceEnsureSpaceForWrite.h.

Constructor & Destructor Documentation

sbDeviceEnsureSpaceForWrite::sbDeviceEnsureSpaceForWrite ( sbBaseDevice aDevice,
sbIDeviceLibrary aDevLibrary,
sbILibraryChangeset aChangeset 
)

Initializes the object with the device and changeset to be analyzed

Parameters
aDeviceThe device the changeset belongs to
aDevLibraryThe device's library
aChangesetThe changeset that we're checking for available space

Definition at line 65 of file sbDeviceEnsureSpaceForWrite.cpp.

sbDeviceEnsureSpaceForWrite::~sbDeviceEnsureSpaceForWrite ( )

Cleanup data

Definition at line 76 of file sbDeviceEnsureSpaceForWrite.cpp.

Member Function Documentation

nsresult sbDeviceEnsureSpaceForWrite::EnsureSpace ( )

Ensures there's enough space for items in the changeset and removes any items that don't fit.

Definition at line 234 of file sbDeviceEnsureSpaceForWrite.cpp.

Here is the caller graph for this function:


The documentation for this class was generated from the following files: