C# Class UserEfficiencyTracker.Daemon

Inheritance: Shared.BaseTracker, ITracker
Mostra file Open project: sealuzh/PersonalAnalytics

Public Methods

Method 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

Method 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 method

public CreateDatabaseTablesIfNotExist ( ) : void
return void

Daemon() public method

public Daemon ( ) : System
return System

GetStatus() public method

public GetStatus ( ) : string
return string

GetVisualizationsDay() public method

public GetVisualizationsDay ( DateTimeOffset date ) : List
date DateTimeOffset
return List

GetVisualizationsWeek() public method

public GetVisualizationsWeek ( DateTimeOffset date ) : List
date DateTimeOffset
return List

IsEnabled() public method

public IsEnabled ( ) : bool
return bool

ManualTakeSurveyNow() public method

manually run survey (click on ContextMenu)
public ManualTakeSurveyNow ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

UpdateDatabaseTables() public method

public UpdateDatabaseTables ( int version ) : void
version int
return void