Documentation
¶
Index ¶
- type DNDManager
- func (d *DNDManager) CheckShortcutsSetup() (bool, error)
- func (d *DNDManager) Disable() error
- func (d *DNDManager) Enable() error
- func (d *DNDManager) IsEnabled() (bool, error)
- func (d *DNDManager) SendBreakNotification(workDuration time.Duration) error
- func (d *DNDManager) SendEndOfDayNotification(totalTime time.Duration, targetHours float64) error
- func (d *DNDManager) SendIdleNotification(idleDuration time.Duration) error
- func (d *DNDManager) SendSessionCompleteNotification(duration time.Duration, project string) error
- func (d *DNDManager) TestNotifications() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNDManager ¶
type DNDManager struct {
// contains filtered or unexported fields
}
DNDManager handles Do Not Disturb functionality across platforms
func NewDNDManager ¶
func NewDNDManager(notificationManager *notifications.NotificationManager) *DNDManager
NewDNDManager creates a new DND manager
func (*DNDManager) CheckShortcutsSetup ¶
func (d *DNDManager) CheckShortcutsSetup() (bool, error)
CheckShortcutsSetup verifies if the required Focus mode shortcuts are available
func (*DNDManager) Disable ¶
func (d *DNDManager) Disable() error
Disable disables Do Not Disturb mode
func (*DNDManager) IsEnabled ¶
func (d *DNDManager) IsEnabled() (bool, error)
IsEnabled returns true if Do Not Disturb is currently enabled
func (*DNDManager) SendBreakNotification ¶
func (d *DNDManager) SendBreakNotification(workDuration time.Duration) error
SendBreakNotification sends a break reminder notification
func (*DNDManager) SendEndOfDayNotification ¶
func (d *DNDManager) SendEndOfDayNotification(totalTime time.Duration, targetHours float64) error
SendEndOfDayNotification sends an end-of-day reminder notification
func (*DNDManager) SendIdleNotification ¶
func (d *DNDManager) SendIdleNotification(idleDuration time.Duration) error
SendIdleNotification sends an idle detection notification
func (*DNDManager) SendSessionCompleteNotification ¶
func (d *DNDManager) SendSessionCompleteNotification(duration time.Duration, project string) error
SendSessionCompleteNotification sends a session completion notification
func (*DNDManager) TestNotifications ¶
func (d *DNDManager) TestNotifications() error
TestNotifications sends a test notification to verify the system is working
Click to show internal directories.
Click to hide internal directories.