Skip to content

Commit

Permalink
[MouseWithoutBorders] - moved "Common.Receiver.cs" into "Receiver.cs" -
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeclayton committed Nov 2, 2024
1 parent 235c044 commit e47d25b
Show file tree
Hide file tree
Showing 9 changed files with 453 additions and 446 deletions.
8 changes: 5 additions & 3 deletions src/modules/MouseWithoutBorders/App/Class/Common.Clipboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ namespace MouseWithoutBorders
{
internal partial class Common
{
private const uint BIG_CLIPBOARD_DATA_TIMEOUT = 30000;
internal const uint BIG_CLIPBOARD_DATA_TIMEOUT = 30000;
private const uint MAX_CLIPBOARD_DATA_SIZE_CAN_BE_SENT_INSTANTLY_TCP = 1024 * 1024; // 1MB
private const uint MAX_CLIPBOARD_FILE_SIZE_CAN_BE_SENT = 100 * 1024 * 1024; // 100MB
private const int TEXT_HEADER_SIZE = 12;
Expand All @@ -47,7 +47,9 @@ internal partial class Common
private static long lastClipboardEventTime;
private static string lastMachineWithClipboardData;
private static string lastDragDropFile;
private static long clipboardCopiedTime;
#pragma warning disable SA1307 // Accessible fields should begin with upper-case letter
internal static long clipboardCopiedTime;
#pragma warning restore SA1307

internal static readonly char[] Comma = new char[] { ',' };
internal static readonly char[] Star = new char[] { '*' };
Expand Down Expand Up @@ -333,7 +335,7 @@ internal static void ReceiveClipboardDataUsingTCP(DATA data, bool image, TcpSk t
break;

default:
ProcessPackage(data, tcp);
Receiver.ProcessPackage(data, tcp);
if (++unexpectedCount > 100)
{
Logger.Log("ReceiveClipboardDataUsingTCP: unexpectedCount > 100!");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ internal static void DragDropStep06()

internal static void DragDropStep08(DATA package)
{
GetNameOfMachineWithClipboardData(package);
Receiver.GetNameOfMachineWithClipboardData(package);
Logger.LogDebug("DragDropStep08: ClipboardDragDrop Received. machine with drag file was set");
}

Expand Down
2 changes: 1 addition & 1 deletion src/modules/MouseWithoutBorders/App/Class/Common.Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ internal static void MouseEvent(MOUSEDATA e, int dx, int dy)
}
}

private static bool IsSwitchingByMouseEnabled()
internal static bool IsSwitchingByMouseEnabled()
{
return (EasyMouseOption)Setting.Values.EasyMouse == EasyMouseOption.Enable || InputHook.EasyMouseKeyDown;
}
Expand Down
10 changes: 7 additions & 3 deletions src/modules/MouseWithoutBorders/App/Class/Common.MachineStuff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ internal partial class Common
private const int SKIP_PIXELS = 1;
private const int JUMP_PIXELS = 2;

private static ID desMachineID;
#pragma warning disable SA1307 // Accessible fields should begin with upper-case letter
internal static ID desMachineID;
#pragma warning restore SA1307
internal static string DesMachineName = string.Empty;
private static ID newDesMachineID;
private static ID newDesMachineIdEx;
#pragma warning disable SA1307 // Accessible fields should begin with upper-case letter
internal static ID newDesMachineIdEx;
#pragma warning restore SA1307
private static ID dropMachineID;

private static long lastJump = Common.GetTick();
Expand Down Expand Up @@ -720,7 +724,7 @@ internal static void RemoveDeadMachines()
}
}

private static string AddToMachinePool(DATA package)
internal static string AddToMachinePool(DATA package)
{
// Log("********** AddToMachinePool called: " + package.src.ToString(CultureInfo.InvariantCulture));

Expand Down
Loading

0 comments on commit e47d25b

Please sign in to comment.