Changed project names

This commit is contained in:
Marco Batzinger 2021-01-22 10:55:33 +01:00
parent b4c4aa4010
commit a29e57e66d
130 changed files with 501 additions and 504 deletions

View file

@ -0,0 +1,16 @@
using System.Printing;
using AmagnoVirtualPrinter.Agent.Core.Interfaces;
namespace AmagnoVirtualPrinter.Agent.Core.Model
{
public struct JobInfo : IJobInfo
{
public int JobId { get; set; }
public string Name { get; set; }
public string DomainName { get; set; }
public string MachineName { get; set; }
public string UserName { get; set; }
public PrintJobStatus Status { get; set; }
public string DeviceName { get; set; }
}
}

View file

@ -0,0 +1,19 @@
using System;
namespace AmagnoVirtualPrinter.Agent.Core.Model
{
public class PostScriptConversionException : Exception
{
public PostScriptConversionException()
{
}
public PostScriptConversionException(string message) : base(message)
{
}
public PostScriptConversionException(string message, Exception inner) : base(message, inner)
{
}
}
}

View file

@ -0,0 +1,9 @@
namespace AmagnoVirtualPrinter.Agent.Core.Model
{
public struct PostScriptRenderOptions
{
public double? UserRenderDpi { get; set; }
public PostScriptRenderPdfOptions PdfOptions { get; set; }
public PostScriptRenderTiffOptions TiffOptions { get; set; }
}
}

View file

@ -0,0 +1,8 @@
namespace AmagnoVirtualPrinter.Agent.Core.Model
{
public struct PostScriptRenderPdfOptions
{
public bool Enabled { set; get; }
public bool Archivable { get; set; }
}
}

View file

@ -0,0 +1,7 @@
namespace AmagnoVirtualPrinter.Agent.Core.Model
{
public struct PostScriptRenderTiffOptions
{
public bool Enabled { set; get; }
}
}

View file

@ -0,0 +1,13 @@
using JetBrains.Annotations;
namespace AmagnoVirtualPrinter.Agent.Core.Model
{
public static class PrintExts
{
[NotNull]
public static string ToIni(this PrintStatus status)
{
return status.ToString().ToLowerInvariant();
}
}
}

View file

@ -0,0 +1,15 @@
namespace AmagnoVirtualPrinter.Agent.Core.Model
{
public enum PrintStatus
{
Undefined = 0,
Paused,
Resumed,
Complete,
Canceled
}
}

View file

@ -0,0 +1,20 @@
using System;
using AmagnoVirtualPrinter.Agent.Core.Interfaces;
using JetBrains.Annotations;
namespace AmagnoVirtualPrinter.Agent.Core.Model
{
public class ProgressUpdateArgs : EventArgs
{
public ProgressUpdateArgs([NotNull] IJob job, uint val)
{
Job = job;
Value = val;
}
[NotNull]
public IJob Job { get; }
public uint Value { get; }
}
}

View file

@ -0,0 +1,48 @@
using System;
using System.IO;
using System.Linq;
using AmagnoVirtualPrinter.Agent.Core.Enums;
using AmagnoVirtualPrinter.Agent.Core.Interfaces;
using JetBrains.Annotations;
namespace AmagnoVirtualPrinter.Agent.Core.Model
{
public class RegistryConfig : IExConfig
{
public string Postconverter { get; set; }
public string Preconverter { get; set; }
public string OutputDirectory { get; set; }
public string FileNameMask { get; set; }
public short PrinterPort { get; set; }
public Tuple<string, string> ResolvedPreconverter
{
get { return GetResolvedArgs(Preconverter); }
}
public Tuple<string, string> ResolvedPostconverter
{
get { return GetResolvedArgs(Postconverter); }
}
public string ResolvedOutputDirectory
{
get { return string.IsNullOrWhiteSpace(OutputDirectory) ? "" : Path.GetFullPath(OutputDirectory); }
}
public IntermediateFormat IntermediateFormat { get; set; }
[NotNull]
private static Tuple<string, string> GetResolvedArgs([NotNull]string text)
{
const string ending = ".exe";
var parts = text.Split(new[] { ending }, StringSplitOptions.RemoveEmptyEntries);
return Tuple.Create(Path.GetFullPath(parts.First() + ending), parts.Last().Trim());
}
}
}

View file

@ -0,0 +1,13 @@
using AmagnoVirtualPrinter.Agent.Core.Interfaces;
namespace AmagnoVirtualPrinter.Agent.Core.Model
{
public struct SessionInfo : ISessionInfo
{
public int Id { get; set; }
public string Desktop { get; set; }
public string Sid { get; set; }
}
}

View file

@ -0,0 +1,15 @@
using AmagnoVirtualPrinter.Agent.Core.Interfaces;
namespace AmagnoVirtualPrinter.Agent.Core.Model
{
public class UserRegistryConfig : IUserConfig
{
public bool RedirectEnabled { get; set; }
public string RedirectPrinter { get; set; }
public double? UserRenderDpi { get; set; }
public string Format { get; set; }
}
}