C# 클래스 PersonalAnalytics.TrackerManager

파일 보기 프로젝트 열기: sealuzh/PersonalAnalytics 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
TaskbarIcon Hardcodet.Wpf.TaskbarNotification.TaskbarIcon

공개 메소드들

메소드 설명
Continue ( ) : void

continues all trackers (that are enabled)

GetInstance ( ) : TrackerManager

Singleton

GetTrackers ( ) : List
InitializeTaskBarIcon ( ) : void

Dreates a taskbar icon to modify its tooltip and create the context menu options

Pause ( ) : void

stops all trackers starts a reminder to remind the user to resume it

PrepareSettings ( ) : void

Initialize/Prepare Settings

Register ( ITracker t ) : void

Tracker registers its service to the TrackerManager

RegisterTrackers ( ) : List

Register trackers for the TrackerManager (i.e. monitoring tool) (add a new tracker here to make it being integrated into the monitoring tool and retrospection)

SetAppVersion ( string v ) : void

Sets the current published app version

Start ( ) : void

Initialize the TrackerManager (prepares the settings, starts every tracker, creates a connection to the database, etc.)

Stop ( bool stoppedManually = false ) : void

stops the TrackerManager (stops every tracker, saves entries, dismisses connection to the database, etc.)

비공개 메소드들

메소드 설명
CheckForStudyDataSharedReminder ( object sender, EventArgs e ) : void

On the first workday of the week, remind the user ONCE to share the collected study data with us.

ManuallyStartUserSurvey ( ) : void

gets the current instance of the userefficiency tracker and manually starts the survey there todo: ugly, hardcoded

OpenDataExportDirectory ( ) : void

Opens the directory where all the data is saved

OpenRetrospection ( ) : void

Opens the UI specified for the current retrospection

OpenSettings ( ) : void

Opens the browser to modify the settings

PauseContinueTracker ( System item ) : void

depending on the variable _isPaused, the tracker is paused or continued

PerformDatabaseUpdatesIfNecessary ( ) : void

In case the current database version != the targeted database version, perform an incremental udpate to the database (for each tracker)

SaveCurrentTimeZone ( object sender, EventArgs e ) : void

Saves the current (updated) time zone to the database (temporary workaround)

SetContextMenuOptions ( ) : void

Manually add ContextMenuOptions

SetTaskbarIconTooltip ( string message ) : void

helper method to change the tooltip text

ShutdownApplication ( ) : void

Shutdown the application only if the state is saved, database disconnected, etc.

TrayBallonTipClicked ( object s, RoutedEventArgs e ) : void

Click on a TaskbarIcon Balloon to resume the tracker todo: as soon as there are other balloons shown, we need to be able to distinguish which one

UpdateApplicationIfNecessary ( object sender, EventArgs e ) : void

Called in a regular interval to try and update the tool. Asks the user for consent prior to installing the update. In case the installation was successful, the tool will restart. source: https://msdn.microsoft.com/en-us/library/ms404263.aspx

UpdateTooltipIcon ( object sender, EventArgs e ) : void

Updates the taskbar icon tooltip text based on the timer and

UploadTrackedData ( bool isManually = true ) : void

Starts the upload wizard

메소드 상세

Continue() 공개 메소드

continues all trackers (that are enabled)
public Continue ( ) : void
리턴 void

GetInstance() 공개 정적인 메소드

Singleton
public static GetInstance ( ) : TrackerManager
리턴 TrackerManager

GetTrackers() 공개 메소드

public GetTrackers ( ) : List
리턴 List

InitializeTaskBarIcon() 공개 메소드

Dreates a taskbar icon to modify its tooltip and create the context menu options
public InitializeTaskBarIcon ( ) : void
리턴 void

Pause() 공개 메소드

stops all trackers starts a reminder to remind the user to resume it
public Pause ( ) : void
리턴 void

PrepareSettings() 공개 메소드

Initialize/Prepare Settings
public PrepareSettings ( ) : void
리턴 void

Register() 공개 메소드

Tracker registers its service to the TrackerManager
public Register ( ITracker t ) : void
t ITracker
리턴 void

RegisterTrackers() 공개 메소드

Register trackers for the TrackerManager (i.e. monitoring tool) (add a new tracker here to make it being integrated into the monitoring tool and retrospection)
public RegisterTrackers ( ) : List
리턴 List

SetAppVersion() 공개 메소드

Sets the current published app version
public SetAppVersion ( string v ) : void
v string
리턴 void

Start() 공개 메소드

Initialize the TrackerManager (prepares the settings, starts every tracker, creates a connection to the database, etc.)
public Start ( ) : void
리턴 void

Stop() 공개 메소드

stops the TrackerManager (stops every tracker, saves entries, dismisses connection to the database, etc.)
public Stop ( bool stoppedManually = false ) : void
stoppedManually bool
리턴 void

프로퍼티 상세

TaskbarIcon 공개적으로 프로퍼티

public TaskbarIcon,Hardcodet.Wpf.TaskbarNotification TaskbarIcon
리턴 Hardcodet.Wpf.TaskbarNotification.TaskbarIcon