-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from NicolasConstant/DEV
Added capability to let screen shut down
- Loading branch information
Showing
25 changed files
with
1,009 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace SpotifyTools.Contracts | ||
{ | ||
public interface IAutoStartManager | ||
{ | ||
bool IsAutoStartSet(); | ||
void SetAutoStart(bool enabled); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace SpotifyTools.Contracts | ||
{ | ||
public interface IProcessAnalyser | ||
{ | ||
bool IsAppRunning(string processName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using SpotifyTools.Tools.Model; | ||
|
||
namespace SpotifyTools.Contracts | ||
{ | ||
public interface ISettingsManager<T> where T : class | ||
{ | ||
T GetConfig(); | ||
void SaveConfig(T settings); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
SpotifySleepModeStopper/Contracts/ISpotifySaveModeStopperFacade.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace SpotifyTools.Contracts | ||
{ | ||
public interface ISpotifySaveModeStopperFacade | ||
{ | ||
void ChangeScreenSleep(bool screenRemainsEnabled); | ||
void ChangeAutoStart(bool autoStartEnabled); | ||
bool IsScreenSleepEnabled(); | ||
bool IsAutoStartEnabled(); | ||
void StartListening(); | ||
void StopListening(); | ||
} | ||
} |
122 changes: 0 additions & 122 deletions
122
SpotifySleepModeStopper/Domain/SpotifySaveModeStopper.cs
This file was deleted.
Oops, something went wrong.
6 changes: 1 addition & 5 deletions
6
.../AppStatesManagement/AppStateReporting.cs → .../AppStatesManagement/AppStateReporting.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...essageManagement/DummyMessageDisplayer.cs → ...essageManagement/DummyMessageDisplayer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ain/MessageManagement/MessageDisplayer.cs → ...yer/MessageManagement/MessageDisplayer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.