C# Class RPS.FileNodes

Exibir arquivo Open project: marijnkampf/Random-Photo-Screensaver Class Usage Examples

Public Properties

Property Type Description
currentSequentialSeedId long
watchers List

Public Methods

Method Description
CancelBackgroundWorker ( ) : void
FileNodes ( Config config, Screensaver screensaver ) : System
OnExitCleanUp ( ) : void
addMetadataToDB ( long imageId, string meta ) : bool
cacheRawImage ( string rawSource, string jpgDest, bool hideFolder, bool hideFile ) : bool
checkImageCache ( string filename, long monitor, Hashtable &settings ) : string
clearFilter ( ) : void
debugMonitorInfo ( int m, SortOrder d, int o, DataRow dr, string s ) : void
deleteFromDB ( long id ) : int
deleteFromDB ( string path ) : int
exifToolCommand ( string command ) : string
exifToolGetMetadata ( string command, long imageId ) : string
exifToolMainStarted ( ) : void
exifToolWorkerStarted ( ) : void
getImageById ( long id, long offset ) : DataRow
getMetadataById ( long id ) : string
getNrImagesFilter ( ) : int
getRandomImage ( ) : DataRow
getRandomImage ( long offset ) : DataRow
getSequentialImage ( int offset ) : DataRow
getSequentialImage ( int offset, bool readOnly ) : DataRow
getSequentialImage ( long seedId, int offset ) : DataRow
getSequentialImage ( long seedId, int offset, bool readOnly ) : DataRow
processMetadata ( ) : void
purgeMediaDatabase ( ) : int
purgeNotMatchingParentFolders ( ConcurrentQueue folders ) : int
purgeNotMatchingParentFolders ( string folders ) : int
resetFilter ( ) : void
resetFoldersQueue ( ) : void
restartBackgroundWorkerImageFolder ( ) : void
runSQLByPassFilter ( string subQuery ) : DataTable
setFilterSQL ( string sql ) : void
updatePath ( long id, string path ) : void

Private Methods

Method Description
DoWorkImageFolder ( object sender, DoWorkEventArgs e ) : void
OnFileCreated ( object source, FileSystemEventArgs e ) : void
OnFileDeleted ( object source, FileSystemEventArgs e ) : void
OnFileRenamed ( object source, RenamedEventArgs e ) : void
OnFolderCreated ( object source, FileSystemEventArgs e ) : void
OnFolderDeleted ( object source, FileSystemEventArgs e ) : void
OnFolderRenamed ( object source, RenamedEventArgs e ) : void
addImage ( string filename ) : void
bwCancelled ( ) : bool
processFolders ( ) : void
progressChanged ( object sender, ProgressChangedEventArgs e ) : void
runWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void
showProgress ( ) : string

Method Details

CancelBackgroundWorker() public method

public CancelBackgroundWorker ( ) : void
return void

FileNodes() public method

public FileNodes ( Config config, Screensaver screensaver ) : System
config Config
screensaver Screensaver
return System

OnExitCleanUp() public method

public OnExitCleanUp ( ) : void
return void

addMetadataToDB() public method

public addMetadataToDB ( long imageId, string meta ) : bool
imageId long
meta string
return bool

cacheRawImage() public method

public cacheRawImage ( string rawSource, string jpgDest, bool hideFolder, bool hideFile ) : bool
rawSource string
jpgDest string
hideFolder bool
hideFile bool
return bool

checkImageCache() public method

public checkImageCache ( string filename, long monitor, Hashtable &settings ) : string
filename string
monitor long
settings System.Collections.Hashtable
return string

clearFilter() public method

public clearFilter ( ) : void
return void

debugMonitorInfo() public method

public debugMonitorInfo ( int m, SortOrder d, int o, DataRow dr, string s ) : void
m int
d SortOrder
o int
dr System.Data.DataRow
s string
return void

deleteFromDB() public method

public deleteFromDB ( long id ) : int
id long
return int

deleteFromDB() public method

public deleteFromDB ( string path ) : int
path string
return int

exifToolCommand() public method

public exifToolCommand ( string command ) : string
command string
return string

exifToolGetMetadata() public method

public exifToolGetMetadata ( string command, long imageId ) : string
command string
imageId long
return string

exifToolMainStarted() public method

public exifToolMainStarted ( ) : void
return void

exifToolWorkerStarted() public method

public exifToolWorkerStarted ( ) : void
return void

getImageById() public method

public getImageById ( long id, long offset ) : DataRow
id long
offset long
return System.Data.DataRow

getMetadataById() public method

public getMetadataById ( long id ) : string
id long
return string

getNrImagesFilter() public method

public getNrImagesFilter ( ) : int
return int

getRandomImage() public method

public getRandomImage ( ) : DataRow
return System.Data.DataRow

getRandomImage() public method

public getRandomImage ( long offset ) : DataRow
offset long
return System.Data.DataRow

getSequentialImage() public method

public getSequentialImage ( int offset ) : DataRow
offset int
return System.Data.DataRow

getSequentialImage() public method

public getSequentialImage ( int offset, bool readOnly ) : DataRow
offset int
readOnly bool
return System.Data.DataRow

getSequentialImage() public method

public getSequentialImage ( long seedId, int offset ) : DataRow
seedId long
offset int
return System.Data.DataRow

getSequentialImage() public method

public getSequentialImage ( long seedId, int offset, bool readOnly ) : DataRow
seedId long
offset int
readOnly bool
return System.Data.DataRow

processMetadata() public method

public processMetadata ( ) : void
return void

purgeMediaDatabase() public method

public purgeMediaDatabase ( ) : int
return int

purgeNotMatchingParentFolders() public method

public purgeNotMatchingParentFolders ( ConcurrentQueue folders ) : int
folders ConcurrentQueue
return int

purgeNotMatchingParentFolders() public method

public purgeNotMatchingParentFolders ( string folders ) : int
folders string
return int

resetFilter() public method

public resetFilter ( ) : void
return void

resetFoldersQueue() public method

public resetFoldersQueue ( ) : void
return void

restartBackgroundWorkerImageFolder() public method

public restartBackgroundWorkerImageFolder ( ) : void
return void

runSQLByPassFilter() public method

public runSQLByPassFilter ( string subQuery ) : DataTable
subQuery string
return System.Data.DataTable

setFilterSQL() public method

public setFilterSQL ( string sql ) : void
sql string
return void

updatePath() public method

public updatePath ( long id, string path ) : void
id long
path string
return void

Property Details

currentSequentialSeedId public_oe property

public long currentSequentialSeedId
return long

watchers public_oe property

public List watchers
return List