Naanou.ResourceExchange
Class DBRefresher

Field Summary
bool inProgress
System.Collections.ArrayList markDeletion
System.Collections.ArrayList markUpdate
Naanou.ResourceExchange.ResourceExchanger.SharedMount[] mounts
bool publishAll

Constructor Summary
DBRefresher(Naanou.ResourceExchange.ResourceExchanger.SharedMount[] mounts, bool publishAll)

Property Summary
bool Running

Method Summary
bool ManipulateEntry(Naanou.ResourceExchange.Entry entry, int rowCount, int rowNumber)
void MarkForDeletion(Naanou.ResourceExchange.Entry entry)
void MarkForUpdating(Naanou.ResourceExchange.Entry entry)
void RefreshDB()
void RefreshMount(Naanou.ResourceExchange.ResourceExchanger.SharedMount mount, int mounts, int mountNumber)
         Refreshes a single mount
void Start()
         Starts refreshing db in the lowest priority thread (returns asyncly)
void StartImpl()
void UpdateProgress(string action, double progress)

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString

Event Summary
Naanou.ResourceExchange.ProgressEventHandler Progress
System.EventHandler RefreshFinished


Field Detail

inProgress

private bool inProgress


markDeletion

private System.Collections.ArrayList markDeletion


markUpdate

private System.Collections.ArrayList markUpdate


mounts

private Naanou.ResourceExchange.ResourceExchanger.SharedMount[] mounts


publishAll

private bool publishAll

Constructor Detail

DBRefresher

internal DBRefresher(Naanou.ResourceExchange.ResourceExchanger.SharedMount[] mounts,
                     bool publishAll)

Property Detail

Running

internal bool Running

Method Detail

ManipulateEntry

private bool ManipulateEntry(Naanou.ResourceExchange.Entry entry,
                             int rowCount,
                             int rowNumber)


MarkForDeletion

private void MarkForDeletion(Naanou.ResourceExchange.Entry entry)


MarkForUpdating

private void MarkForUpdating(Naanou.ResourceExchange.Entry entry)


RefreshDB

private void RefreshDB()


RefreshMount

private void RefreshMount(Naanou.ResourceExchange.ResourceExchanger.SharedMount mount,
                          int mounts,
                          int mountNumber)

Refreshes a single mount

Parameters:
mount -
mountNumber - Mounts number
mounts - Number of mounts

Start

internal void Start()

Starts refreshing db in the lowest priority thread (returns asyncly)


StartImpl

private void StartImpl()


UpdateProgress

private void UpdateProgress(string action,
                            double progress)

Event Detail

Progress

internal Naanou.ResourceExchange.ProgressEventHandler Progress


RefreshFinished

internal System.EventHandler RefreshFinished