C# Class Banshee.Sources.DatabaseSource

Inheritance: Source, ITrackModelSource, IFilterableSource, IDurationAggregator, IFileSizeAggregator
Mostra file Open project: mono-soc-2011/banshee Class Usage Examples

Protected Properties

Property Type Description
album_model DatabaseAlbumListModel
artist_model DatabaseArtistListModel
genre_model DatabaseQueryFilterModel
prune_command HyenaSqliteCommand
rate_track_range_command HyenaSqliteCommand
track_model DatabaseTrackListModel

Private Properties

Property Type Description
DatabaseSourceInitialize void
SaveCurrentFilters void

Public Methods

Method Description
AcceptsInputFromSource ( Source source ) : bool
AcceptsUserInputFromSource ( Source source ) : bool
Activate ( ) : void
AddAllTracks ( Source source ) : bool
AddSelectedTracks ( Source source ) : bool
AddSelectedTracks ( Source source, Selection selection ) : bool
AppendFilter ( IFilterListModel filter ) : void
DatabaseSource ( string generic_name, string name, string id, int order ) : System
DatabaseSource ( string generic_name, string name, string id, int order, Source parent ) : System
Deactivate ( ) : void
DeleteTracks ( DatabaseTrackListModel model, Selection selection ) : void
DeleteTracks ( Selection selection ) : void
MergeSourceInput ( Source source, SourceMergeType mergeType ) : void
RateSelectedTracks ( DatabaseTrackListModel model, int rating ) : void
RateSelectedTracks ( int rating ) : void
Reload ( ) : void
RemoveFilter ( IFilterListModel filter ) : void
RemoveTrack ( DatabaseTrackInfo track ) : void
RemoveTrack ( int index ) : void
RemoveTracks ( DatabaseTrackListModel model, Selection selection ) : void
RemoveTracks ( Selection selection ) : void
ReplaceFilter ( IFilterListModel old_filter, IFilterListModel new_filter ) : void
Save ( ) : void
UpdateCounts ( ) : void

Protected Methods

Method Description
AddTrack ( DatabaseTrackInfo track ) : void
AddTrackRange ( DatabaseTrackListModel model, RangeCollection range ) : void
AfterInitialized ( ) : void
CreateFiltersFor ( DatabaseSource src ) : IEnumerable
CreateTrackModelFor ( DatabaseSource src ) : DatabaseTrackListModel
DatabaseSource ( ) : System
DeleteTrackRange ( DatabaseTrackListModel model, RangeCollection range ) : void
FindFirstNotRemovedTrack ( DatabaseTrackListModel model, Selection selection ) : void
HandleTracksAdded ( Source sender, TrackEventArgs args ) : void
HandleTracksChanged ( Source sender, TrackEventArgs args ) : void
HandleTracksDeleted ( Source sender, TrackEventArgs args ) : void
Initialize ( ) : void
InitializeTrackModel ( ) : void
InvalidateCaches ( ) : void
NeedsReloadWhenFieldChanged ( Hyena field ) : bool
NeedsReloadWhenFieldsChanged ( Hyena fields ) : bool
OnTracksAdded ( ) : void
OnTracksChanged ( ) : void
OnTracksDeleted ( ) : void
OnTracksRemoved ( ) : void
PruneArtistsAlbums ( ) : void
RateLimitedReload ( ) : void
RateTrackRange ( DatabaseTrackListModel model, RangeCollection range, int rating ) : void
RemoveTrackRange ( DatabaseTrackListModel model, RangeCollection range ) : void
SkipTrackIfRemoved ( ) : void
WithTrackSelection ( DatabaseTrackListModel model, Selection selection, TrackRangeHandler handler ) : void
WithTrackSelection ( DatabaseTrackListModel model, TrackRangeHandler handler ) : void

Private Methods

Method Description
DatabaseSourceInitialize ( ) : void
SaveCurrentFilters ( ) : void

Method Details

AcceptsInputFromSource() public method

public AcceptsInputFromSource ( Source source ) : bool
source Source
return bool

AcceptsUserInputFromSource() public method

public AcceptsUserInputFromSource ( Source source ) : bool
source Source
return bool

Activate() public method

public Activate ( ) : void
return void

AddAllTracks() public method

public AddAllTracks ( Source source ) : bool
source Source
return bool

AddSelectedTracks() public method

public AddSelectedTracks ( Source source ) : bool
source Source
return bool

AddSelectedTracks() public method

public AddSelectedTracks ( Source source, Selection selection ) : bool
source Source
selection Selection
return bool

AddTrack() protected method

protected AddTrack ( DatabaseTrackInfo track ) : void
track Banshee.Collection.Database.DatabaseTrackInfo
return void

AddTrackRange() protected method

protected AddTrackRange ( DatabaseTrackListModel model, RangeCollection range ) : void
model Banshee.Collection.Database.DatabaseTrackListModel
range RangeCollection
return void

AfterInitialized() protected method

protected AfterInitialized ( ) : void
return void

AppendFilter() public method

public AppendFilter ( IFilterListModel filter ) : void
filter IFilterListModel
return void

CreateFiltersFor() protected method

protected CreateFiltersFor ( DatabaseSource src ) : IEnumerable
src DatabaseSource
return IEnumerable

CreateTrackModelFor() protected method

protected CreateTrackModelFor ( DatabaseSource src ) : DatabaseTrackListModel
src DatabaseSource
return Banshee.Collection.Database.DatabaseTrackListModel

DatabaseSource() protected method

protected DatabaseSource ( ) : System
return System

DatabaseSource() public method

public DatabaseSource ( string generic_name, string name, string id, int order ) : System
generic_name string
name string
id string
order int
return System

DatabaseSource() public method

public DatabaseSource ( string generic_name, string name, string id, int order, Source parent ) : System
generic_name string
name string
id string
order int
parent Source
return System

Deactivate() public method

public Deactivate ( ) : void
return void

DeleteTrackRange() protected method

protected DeleteTrackRange ( DatabaseTrackListModel model, RangeCollection range ) : void
model DatabaseTrackListModel
range RangeCollection
return void

DeleteTracks() public method

public DeleteTracks ( DatabaseTrackListModel model, Selection selection ) : void
model DatabaseTrackListModel
selection Selection
return void

DeleteTracks() public method

public DeleteTracks ( Selection selection ) : void
selection Selection
return void

FindFirstNotRemovedTrack() protected method

protected FindFirstNotRemovedTrack ( DatabaseTrackListModel model, Selection selection ) : void
model DatabaseTrackListModel
selection Selection
return void

HandleTracksAdded() protected method

protected HandleTracksAdded ( Source sender, TrackEventArgs args ) : void
sender Source
args TrackEventArgs
return void

HandleTracksChanged() protected method

protected HandleTracksChanged ( Source sender, TrackEventArgs args ) : void
sender Source
args TrackEventArgs
return void

HandleTracksDeleted() protected method

protected HandleTracksDeleted ( Source sender, TrackEventArgs args ) : void
sender Source
args TrackEventArgs
return void

Initialize() protected method

protected Initialize ( ) : void
return void

InitializeTrackModel() protected method

protected InitializeTrackModel ( ) : void
return void

InvalidateCaches() protected method

protected InvalidateCaches ( ) : void
return void

MergeSourceInput() public method

public MergeSourceInput ( Source source, SourceMergeType mergeType ) : void
source Source
mergeType SourceMergeType
return void

NeedsReloadWhenFieldChanged() protected method

protected NeedsReloadWhenFieldChanged ( Hyena field ) : bool
field Hyena
return bool

NeedsReloadWhenFieldsChanged() protected method

protected NeedsReloadWhenFieldsChanged ( Hyena fields ) : bool
fields Hyena
return bool

OnTracksAdded() protected method

protected OnTracksAdded ( ) : void
return void

OnTracksChanged() protected method

protected OnTracksChanged ( ) : void
return void

OnTracksDeleted() protected method

protected OnTracksDeleted ( ) : void
return void

OnTracksRemoved() protected method

protected OnTracksRemoved ( ) : void
return void

PruneArtistsAlbums() protected method

protected PruneArtistsAlbums ( ) : void
return void

RateLimitedReload() protected method

protected RateLimitedReload ( ) : void
return void

RateSelectedTracks() public method

public RateSelectedTracks ( DatabaseTrackListModel model, int rating ) : void
model DatabaseTrackListModel
rating int
return void

RateSelectedTracks() public method

public RateSelectedTracks ( int rating ) : void
rating int
return void

RateTrackRange() protected method

protected RateTrackRange ( DatabaseTrackListModel model, RangeCollection range, int rating ) : void
model DatabaseTrackListModel
range RangeCollection
rating int
return void

Reload() public method

public Reload ( ) : void
return void

RemoveFilter() public method

public RemoveFilter ( IFilterListModel filter ) : void
filter IFilterListModel
return void

RemoveTrack() public method

public RemoveTrack ( DatabaseTrackInfo track ) : void
track DatabaseTrackInfo
return void

RemoveTrack() public method

public RemoveTrack ( int index ) : void
index int
return void

RemoveTrackRange() protected method

protected RemoveTrackRange ( DatabaseTrackListModel model, RangeCollection range ) : void
model DatabaseTrackListModel
range RangeCollection
return void

RemoveTracks() public method

public RemoveTracks ( DatabaseTrackListModel model, Selection selection ) : void
model DatabaseTrackListModel
selection Selection
return void

RemoveTracks() public method

public RemoveTracks ( Selection selection ) : void
selection Selection
return void

ReplaceFilter() public method

public ReplaceFilter ( IFilterListModel old_filter, IFilterListModel new_filter ) : void
old_filter IFilterListModel
new_filter IFilterListModel
return void

Save() public abstract method

public abstract Save ( ) : void
return void

SkipTrackIfRemoved() protected method

protected SkipTrackIfRemoved ( ) : void
return void

UpdateCounts() public method

public UpdateCounts ( ) : void
return void

WithTrackSelection() protected method

protected WithTrackSelection ( DatabaseTrackListModel model, Selection selection, TrackRangeHandler handler ) : void
model DatabaseTrackListModel
selection Selection
handler TrackRangeHandler
return void

WithTrackSelection() protected method

protected WithTrackSelection ( DatabaseTrackListModel model, TrackRangeHandler handler ) : void
model DatabaseTrackListModel
handler TrackRangeHandler
return void

Property Details

album_model protected_oe property

protected DatabaseAlbumListModel album_model
return DatabaseAlbumListModel

artist_model protected_oe property

protected DatabaseArtistListModel artist_model
return DatabaseArtistListModel

genre_model protected_oe property

protected DatabaseQueryFilterModel genre_model
return DatabaseQueryFilterModel

prune_command protected_oe property

protected HyenaSqliteCommand prune_command
return HyenaSqliteCommand

rate_track_range_command protected_oe property

protected HyenaSqliteCommand rate_track_range_command
return HyenaSqliteCommand

track_model protected_oe property

protected DatabaseTrackListModel track_model
return DatabaseTrackListModel