C# Class FSClient.SimpleContactPluginBaseAsync

Inheritance: IContactPlugin
Afficher le fichier Open project: mitchcapper/FSClient

Protected Properties

Свойство Type Description
completed_task System.Threading.Tasks.Task
number_to_alias string>.Dictionary
number_to_xfer string>.Dictionary
search_box FSClient.Controls.OurAutoCompleteBox

Méthodes publiques

Méthode Description
CallRightClickMenu ( Call call, System.Windows.Controls.ContextMenu menu ) : void
ContactRightClickMenu ( ) : IEnumerable
HandleSearchBox ( OurAutoCompleteBox box ) : bool
Initialize ( ) : void
ResolveNumber ( string number, NumberResolved on_resolved ) : void
XFERRightClickMenu ( Call call, System.Windows.Controls.ContextMenu menu ) : void

Méthodes protégées

Méthode Description
CanDeleteContact ( ) : bool
CanDeleteXFER ( ) : bool
DefaultEditValue ( Call call ) : string
DeleteNumberAsync ( string number ) : System.Threading.Tasks.Task
DeleteXFERAsync ( string number ) : System.Threading.Tasks.Task
EditAliasAsync ( Call c, String number, String default_value ) : Task
IsValidAlias ( String str ) : string
IsValidXFERAlias ( String str ) : string
IsValidXFERNumber ( String str ) : string
LoadDatabaseAsync ( string>.Dictionary number_to_alias_db ) : string>>.Task
LoadXFERDatabaseAsync ( string>.Dictionary number_to_xfer_db ) : string>>.Task
ModifyRightClickMenu ( Call call, System.Windows.Controls.ContextMenu menu ) : void
ModifyXFERRightClickMenu ( Call call, System.Windows.Controls.ContextMenu menu ) : void
NormalizeNumber ( string number ) : string
UpdateDatabaseAsync ( string number, string alias ) : System.Threading.Tasks.Task
UpdateXFERDatabaseAsync ( string number, string xfer_name ) : System.Threading.Tasks.Task
_TryResolveNewNumber ( string number, NumberResolved on_resolved ) : void
call_current_contact ( ) : void
del_xfer_click ( object sender, RoutedEventArgs e ) : void
edit_xfer_click ( object sender, RoutedEventArgs e ) : void
item_Click ( object sender, RoutedEventArgs e ) : void
refresh_search_box ( ) : void
search_box_PreviewKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void

Private Methods

Méthode Description
add_xfer_click ( object sender, RoutedEventArgs e ) : void
call_on_account_item_SubmenuOpened ( object sender, RoutedEventArgs e ) : void
contact_call_click ( object sender, RoutedEventArgs e ) : void
delete_item_click ( object sender, RoutedEventArgs e ) : void
search_box_ContextMenuOpening ( object sender, System.Windows.Controls.ContextMenuEventArgs e ) : void
search_box_MouseDoubleClick ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

Method Details

CallRightClickMenu() public méthode

public CallRightClickMenu ( Call call, System.Windows.Controls.ContextMenu menu ) : void
call Call
menu System.Windows.Controls.ContextMenu
Résultat void

CanDeleteContact() protected méthode

protected CanDeleteContact ( ) : bool
Résultat bool

CanDeleteXFER() protected méthode

protected CanDeleteXFER ( ) : bool
Résultat bool

ContactRightClickMenu() public méthode

public ContactRightClickMenu ( ) : IEnumerable
Résultat IEnumerable

DefaultEditValue() protected méthode

protected DefaultEditValue ( Call call ) : string
call Call
Résultat string

DeleteNumberAsync() protected méthode

protected DeleteNumberAsync ( string number ) : System.Threading.Tasks.Task
number string
Résultat System.Threading.Tasks.Task

DeleteXFERAsync() protected méthode

protected DeleteXFERAsync ( string number ) : System.Threading.Tasks.Task
number string
Résultat System.Threading.Tasks.Task

EditAliasAsync() protected méthode

protected EditAliasAsync ( Call c, String number, String default_value ) : Task
c Call
number String
default_value String
Résultat Task

HandleSearchBox() public méthode

public HandleSearchBox ( OurAutoCompleteBox box ) : bool
box FSClient.Controls.OurAutoCompleteBox
Résultat bool

Initialize() public méthode

public Initialize ( ) : void
Résultat void

IsValidAlias() protected méthode

protected IsValidAlias ( String str ) : string
str String
Résultat string

IsValidXFERAlias() protected méthode

protected IsValidXFERAlias ( String str ) : string
str String
Résultat string

IsValidXFERNumber() protected méthode

protected IsValidXFERNumber ( String str ) : string
str String
Résultat string

LoadDatabaseAsync() protected abstract méthode

protected abstract LoadDatabaseAsync ( string>.Dictionary number_to_alias_db ) : string>>.Task
number_to_alias_db string>.Dictionary
Résultat string>>.Task

LoadXFERDatabaseAsync() protected abstract méthode

protected abstract LoadXFERDatabaseAsync ( string>.Dictionary number_to_xfer_db ) : string>>.Task
number_to_xfer_db string>.Dictionary
Résultat string>>.Task

ModifyRightClickMenu() protected méthode

protected ModifyRightClickMenu ( Call call, System.Windows.Controls.ContextMenu menu ) : void
call Call
menu System.Windows.Controls.ContextMenu
Résultat void

ModifyXFERRightClickMenu() protected méthode

protected ModifyXFERRightClickMenu ( Call call, System.Windows.Controls.ContextMenu menu ) : void
call Call
menu System.Windows.Controls.ContextMenu
Résultat void

NormalizeNumber() protected méthode

protected NormalizeNumber ( string number ) : string
number string
Résultat string

ResolveNumber() public méthode

public ResolveNumber ( string number, NumberResolved on_resolved ) : void
number string
on_resolved NumberResolved
Résultat void

UpdateDatabaseAsync() protected abstract méthode

protected abstract UpdateDatabaseAsync ( string number, string alias ) : System.Threading.Tasks.Task
number string
alias string
Résultat System.Threading.Tasks.Task

UpdateXFERDatabaseAsync() protected abstract méthode

protected abstract UpdateXFERDatabaseAsync ( string number, string xfer_name ) : System.Threading.Tasks.Task
number string
xfer_name string
Résultat System.Threading.Tasks.Task

XFERRightClickMenu() public méthode

public XFERRightClickMenu ( Call call, System.Windows.Controls.ContextMenu menu ) : void
call Call
menu System.Windows.Controls.ContextMenu
Résultat void

_TryResolveNewNumber() protected abstract méthode

protected abstract _TryResolveNewNumber ( string number, NumberResolved on_resolved ) : void
number string
on_resolved NumberResolved
Résultat void

call_current_contact() protected méthode

protected call_current_contact ( ) : void
Résultat void

del_xfer_click() protected méthode

protected del_xfer_click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Résultat void

edit_xfer_click() protected méthode

protected edit_xfer_click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Résultat void

item_Click() protected méthode

protected item_Click ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
Résultat void

refresh_search_box() protected méthode

protected refresh_search_box ( ) : void
Résultat void

search_box_PreviewKeyUp() protected méthode

protected search_box_PreviewKeyUp ( object sender, System.Windows.Input.KeyEventArgs e ) : void
sender object
e System.Windows.Input.KeyEventArgs
Résultat void

Property Details

completed_task protected_oe static_oe property

protected static Task,System.Threading.Tasks completed_task
Résultat System.Threading.Tasks.Task

number_to_alias protected_oe property

protected Dictionary number_to_alias
Résultat string>.Dictionary

number_to_xfer protected_oe property

protected Dictionary number_to_xfer
Résultat string>.Dictionary

search_box protected_oe property

protected OurAutoCompleteBox,FSClient.Controls search_box
Résultat FSClient.Controls.OurAutoCompleteBox