C# Class UserEfficiencyTracker.Daemon

Inheritance: Shared.BaseTracker, ITracker
Afficher le fichier Open project: sealuzh/PersonalAnalytics

Méthodes publiques

Méthode Description
CreateDatabaseTablesIfNotExist ( ) : void
Daemon ( ) : System
GetStatus ( ) : string
GetVisualizationsDay ( DateTimeOffset date ) : List
GetVisualizationsWeek ( DateTimeOffset date ) : List
IsEnabled ( ) : bool
ManualTakeSurveyNow ( ) : void

manually run survey (click on ContextMenu)

Start ( ) : void
Stop ( ) : void
UpdateDatabaseTables ( int version ) : void

Private Methods

Méthode Description
HandleDailyPopUpResponse ( DailyProductivityPopUp popup ) : void

Handles the response to the daily popup

HandleIntervalPopUpResponse ( IntervalProductivityPopUp popup ) : void

handles the response to the interval popup

PostponeIntervalSurvey ( IntervalProductivityPopUp notify ) : void

handler to postpone the survey for the selected time Hint: the selected time (e.g. postpone 1 hour) equals 1 hour of computer running (i.e. developer working) time

RunSurvey ( SurveyMode mode ) : void

runs the survey and handles the response

SaveDailySurvey ( DailyProductivityPopUp popup ) : void

Saves the daily survey result in the db & resets some items

SaveIntervalSurvey ( IntervalProductivityPopUp popup ) : void

Saves the interval-survey results in the db & resets some items

TimerTick ( object sender, EventArgs args ) : void

loop runs in a separate thread

Method Details

CreateDatabaseTablesIfNotExist() public méthode

public CreateDatabaseTablesIfNotExist ( ) : void
Résultat void

Daemon() public méthode

public Daemon ( ) : System
Résultat System

GetStatus() public méthode

public GetStatus ( ) : string
Résultat string

GetVisualizationsDay() public méthode

public GetVisualizationsDay ( DateTimeOffset date ) : List
date DateTimeOffset
Résultat List

GetVisualizationsWeek() public méthode

public GetVisualizationsWeek ( DateTimeOffset date ) : List
date DateTimeOffset
Résultat List

IsEnabled() public méthode

public IsEnabled ( ) : bool
Résultat bool

ManualTakeSurveyNow() public méthode

manually run survey (click on ContextMenu)
public ManualTakeSurveyNow ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

UpdateDatabaseTables() public méthode

public UpdateDatabaseTables ( int version ) : void
version int
Résultat void