Reorganized project into a (hopefully) better structure

This commit is contained in:
DarthAffe committed 2015-09-19 16:24:14 +02:00
1 parent ce4e80c24b
commit fc66ac0ceb
33 files changed
+111 -99

No files matched your search

@@ -0,0 +1,13 @@
// ReSharper disable InconsistentNaming
// ReSharper disable UnusedMember.Global
namespace CUE.NET.Devices.Generic.Enums
{
/// <summary>
/// Contains list of available SDK access modes.
/// </summary>
public enum CorsairAccessMode
{
ExclusiveLightingControl = 0
};
}
@@ -0,0 +1,24 @@
// ReSharper disable InconsistentNaming
// ReSharper disable UnusedMember.Global
using System;
namespace CUE.NET.Devices.Generic.Enums
{
/// <summary>
/// Contains list of device capabilities
/// </summary>
[Flags]
public enum CorsairDeviceCaps
{
/// <summary>
/// For devices that do not support any SDK functions
/// </summary>
None = 0,
/// <summary>
/// For devices that has controlled lighting
/// </summary>
Lighting = 1
};
}
@@ -0,0 +1,16 @@
// ReSharper disable InconsistentNaming
// ReSharper disable UnusedMember.Global
namespace CUE.NET.Devices.Generic.Enums
{
/// <summary>
/// Contains list of available device types.
/// </summary>
public enum CorsairDeviceType
{
Unknown = 0,
Mouse = 1,
Keyboard = 2,
Headset = 3
};
}
+42
View File
@@ -0,0 +1,42 @@
// ReSharper disable InconsistentNaming
// ReSharper disable UnusedMember.Global
namespace CUE.NET.Devices.Generic.Enums
{
/// <summary>
/// Shared list of all errors which could happen during calling of Corsair* functions.
/// </summary>
public enum CorsairError
{
/// <summary>
/// If previously called function completed successfully.
/// </summary>
Success,
/// <summary>
/// CUE is not running or was shut down or third-party control is disabled in CUE settings. (runtime error)
/// </summary>
ServerNotFound,
/// <summary>
/// If some other client has or took over exclusive control. (runtime error)
/// </summary>
NoControl,
/// <summary>
/// If developer did not perform protocol handshake. (developer error)
/// </summary>
ProtocolHandshakeMissing,
/// <summary>
/// If developer is calling the function that is not supported by the server (either because protocol has broken by server or client or because the function is new and server is too old.
/// Check CorsairProtocolDetails for details). (developer error)
/// </summary>
IncompatibleProtocol,
/// <summary>
/// If developer supplied invalid arguments to the function (for specifics look at function descriptions). (developer error)
/// </summary>
InvalidArguments
};
}