#include <sbDeviceEnsureSpaceForWrite.h>
Public Member Functions | |
sbDeviceEnsureSpaceForWrite (sbBaseDevice *aDevice, sbIDeviceLibrary *aDevLibrary, sbILibraryChangeset *aChangeset) | |
~sbDeviceEnsureSpaceForWrite () | |
nsresult | EnsureSpace () |
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.
sbDeviceEnsureSpaceForWrite::sbDeviceEnsureSpaceForWrite | ( | sbBaseDevice * | aDevice, |
sbIDeviceLibrary * | aDevLibrary, | ||
sbILibraryChangeset * | aChangeset | ||
) |
Initializes the object with the device and changeset to be analyzed
aDevice | The device the changeset belongs to |
aDevLibrary | The device's library |
aChangeset | The 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.
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.