Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Waste::Bin Class Reference

#include <Wastebin.h>

Collaboration diagram for Waste::Bin:

Collaboration graph
[legend]
List of all members.

Public Types

typedef bool(* EnumerateWastebinCallbackType )(const WastebinFile &)

Public Member Functions

 Bin (const wxString &sWastebinPath)
bool Empty ()
int GetCount ()
void Enumerate (const EnumerateWastebinCallbackType fnCallback)
virtual void Dump ()
int Throw (File &dli)
void Delete (int nItemId)
bool Restore (int nItemId, wxString &sPathName)
 Restore a file from the Wastebin to the file system.


Private Member Functions

void OpenDatabase (const wxString &sWastebinDatabasePathName)

Private Attributes

wxString m_sWastebinPath
wxString m_sWastebinFilesPath
wx::DBI::StatementCache m_stc

Member Typedef Documentation

typedef bool(* Waste::Bin::EnumerateWastebinCallbackType)(const WastebinFile&)
 

Definition at line 152 of file Wastebin.h.


Constructor & Destructor Documentation

Waste::Bin::Bin const wxString &  sWastebinPath  ) 
 


Member Function Documentation

void Waste::Bin::Delete int  nItemId  ) 
 

virtual void Waste::Bin::Dump  )  [virtual]
 

bool Waste::Bin::Empty  ) 
 

void Waste::Bin::Enumerate const EnumerateWastebinCallbackType  fnCallback  ) 
 

int Waste::Bin::GetCount  ) 
 

void Waste::Bin::OpenDatabase const wxString &  sWastebinDatabasePathName  )  [private]
 

bool Waste::Bin::Restore int  nItemId,
wxString &  sPathName
 

Restore a file from the Wastebin to the file system.

Parameters:
nItemId The item index in the Wastebin.
sPathName The full path and name of the restored file
Exceptions:
\return 
Note that the restored name may not be the original name. This happens if there is a file with the same name in the destination folder.

int Waste::Bin::Throw File dli  ) 
 


Member Data Documentation

wx::DBI::StatementCache Waste::Bin::m_stc [private]
 

Definition at line 188 of file Wastebin.h.

wxString Waste::Bin::m_sWastebinFilesPath [private]
 

Definition at line 187 of file Wastebin.h.

wxString Waste::Bin::m_sWastebinPath [private]
 

Definition at line 186 of file Wastebin.h.


The documentation for this class was generated from the following file:
Generated on Wed Jan 25 08:15:01 2006 for Sherpa by doxygen 1.3.6