Skip to content
Snippets Groups Projects
Commit 3d786a52 authored by jrabbit's avatar jrabbit
Browse files

commit current state

parent e6d7a08e
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ import ( ...@@ -9,7 +9,7 @@ import (
) )
func Version() string { func Version() string {
return "0.0.1a2" return "0.0.1a3"
} }
var CurrentTimers []Timer var CurrentTimers []Timer
var CurrentAlarms map[string]Alarm var CurrentAlarms map[string]Alarm
......
...@@ -5,15 +5,10 @@ import ( ...@@ -5,15 +5,10 @@ import (
"github.com/godbus/dbus" "github.com/godbus/dbus"
"github.com/gotk3/gotk3/glib" "github.com/gotk3/gotk3/glib"
"github.com/satori/go.uuid" "github.com/satori/go.uuid"
"time" "errors"
"encoding/hex"
) )
var CurrentTimers []Timer
var CurrentAlarms map[string]Alarm
func Init() {
CurrentAlarms = make(map[string]Alarm)
CurrentTimers = make([]Timer, 0)
}
func GetGnomeAlarms() []map[string]dbus.Variant { func GetGnomeAlarms() []map[string]dbus.Variant {
//gsettings get org.gnome.clocks alarms //gsettings get org.gnome.clocks alarms
...@@ -26,14 +21,6 @@ func GetGnomeAlarms() []map[string]dbus.Variant { ...@@ -26,14 +21,6 @@ func GetGnomeAlarms() []map[string]dbus.Variant {
fmt.Println(alarmMaps) fmt.Println(alarmMaps)
return alarmMaps return alarmMaps
} }
type Alarm struct {
Name string
Early bool
Time time.Time
Active bool
Id string
Uuid uuid.UUID
}
func (alarm Alarm) SetAlarm() string { func (alarm Alarm) SetAlarm() string {
var insert []map[string]dbus.Variant var insert []map[string]dbus.Variant
......
package main package main
import ( import (
"fmt"
"0xacab.org/jrabbit/adormit/cmd" "0xacab.org/jrabbit/adormit/cmd"
"fmt"
"os" "os"
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment