5 namespace GameHub
.Settings
7 public enum WindowState
14 public class SavedState
: Granite
.Services
.Settings
16 public int window_width
{ get; set; }
17 public int window_height
{ get; set; }
18 public WindowState window_state
{ get; set; }
19 public int window_x
{ get; set; }
20 public int window_y
{ get; set; }
24 base(ProjectConfig
.PROJECT_NAME
+ ".saved-state");
27 private static SavedState? instance
;
28 public static unowned SavedState
get_instance()
32 instance
= new
SavedState();
38 public class UI
: Granite
.Services
.Settings
40 public bool dark_theme
{ get; set; }
44 base(ProjectConfig
.PROJECT_NAME
+ ".ui");
47 private static UI? instance
;
48 public static unowned UI
get_instance()
60 public class Steam
: Granite
.Services
.Settings
62 public bool authenticated
{ get; set; }
63 public string api_key
{ get; set; }
67 base(ProjectConfig
.PROJECT_NAME
+ ".auth.steam");
70 private static Steam? instance
;
71 public static unowned Steam
get_instance()
75 instance
= new
Steam();
81 public class GOG
: Granite
.Services
.Settings
83 public bool authenticated
{ get; set; }
84 public string access_token
{ get; set; }
85 public string refresh_token
{ get; set; }
89 base(ProjectConfig
.PROJECT_NAME
+ ".auth.gog");
92 private static GOG? instance
;
93 public static unowned GOG
get_instance()
103 public class Humble
: Granite
.Services
.Settings
105 public bool authenticated
{ get; set; }
106 public string access_token
{ get; set; }
110 base(ProjectConfig
.PROJECT_NAME
+ ".auth.humble");
113 private static Humble? instance
;
114 public static unowned Humble
get_instance()
118 instance
= new
Humble();