Phase 06 complete: - Namespace renamed in 62 .cs files (namespace + using directives) - AssemblyName + RootNamespace updated in csproj files - FanucProgramManager.csproj → NcProgramManager.csproj - FanucProgramManager.sln → NcProgramManager.sln - FanucProgramManager.Tests/ → NcProgramManager.Tests/ - FANUCMachine.cs deleted (dead code, zero references) Fanuc-prefixed class names kept (FanucMachine, FanucProgram, IFanucMachine) — manufacturer identifiers, not project names. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
1,011 B
C#
Executable file
26 lines
1,011 B
C#
Executable file
using System;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using NcProgramManager.Cnc.Models;
|
|
|
|
namespace NcProgramManager.Cnc
|
|
{
|
|
public interface ICncMachine : IDisposable
|
|
{
|
|
string Name { get; }
|
|
ConnectionState State { get; }
|
|
|
|
event EventHandler<ConnectionState> StateChanged;
|
|
|
|
Task<CncResult<bool>> ConnectAsync(CancellationToken ct = default);
|
|
Task DisconnectAsync();
|
|
|
|
Task<CncResult<MachineSnapshot>> ReadAsync(CancellationToken ct = default);
|
|
|
|
Task<CncResult<string>> ReadActiveProgramAsync(CancellationToken ct = default);
|
|
Task<CncResult<string>> ReadProgramAsync(string path, CancellationToken ct = default);
|
|
Task<CncResult<bool>> WriteProgramAsync(string path, CncProgram program, CancellationToken ct = default);
|
|
Task<CncResult<bool>> SelectMainProgramAsync(string path, CancellationToken ct = default);
|
|
Task<CncResult<bool>> DeleteProgramAsync(string path, CancellationToken ct = default);
|
|
}
|
|
}
|