diff --git a/Artemis/Artemis.sln b/Artemis/Artemis.sln index 180e87f3f..69fb5b679 100644 --- a/Artemis/Artemis.sln +++ b/Artemis/Artemis.sln @@ -11,6 +11,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ColorBox", "ColorBox\ColorB EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LogiLed2Artemis", "LogiLed2Artemis\LogiLed2Artemis.vcxproj", "{D2EDB8F3-F0CB-4670-B472-0B46D5800D2C}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Artemis86Wrapper", "Artemis86Wrapper\Artemis86Wrapper.csproj", "{47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution CD_ROM|Any CPU = CD_ROM|Any CPU @@ -146,6 +148,36 @@ Global {D2EDB8F3-F0CB-4670-B472-0B46D5800D2C}.SingleImage|x64.Build.0 = Release|x64 {D2EDB8F3-F0CB-4670-B472-0B46D5800D2C}.SingleImage|x86.ActiveCfg = Release|Win32 {D2EDB8F3-F0CB-4670-B472-0B46D5800D2C}.SingleImage|x86.Build.0 = Release|Win32 + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.CD_ROM|Any CPU.ActiveCfg = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.CD_ROM|Any CPU.Build.0 = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.CD_ROM|x64.ActiveCfg = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.CD_ROM|x64.Build.0 = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.CD_ROM|x86.ActiveCfg = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.CD_ROM|x86.Build.0 = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Debug|x64.ActiveCfg = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Debug|x64.Build.0 = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Debug|x86.ActiveCfg = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Debug|x86.Build.0 = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.DVD-5|Any CPU.ActiveCfg = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.DVD-5|Any CPU.Build.0 = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.DVD-5|x64.ActiveCfg = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.DVD-5|x64.Build.0 = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.DVD-5|x86.ActiveCfg = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.DVD-5|x86.Build.0 = Debug|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Release|Any CPU.Build.0 = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Release|x64.ActiveCfg = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Release|x64.Build.0 = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Release|x86.ActiveCfg = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.Release|x86.Build.0 = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.SingleImage|Any CPU.ActiveCfg = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.SingleImage|Any CPU.Build.0 = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.SingleImage|x64.ActiveCfg = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.SingleImage|x64.Build.0 = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.SingleImage|x86.ActiveCfg = Release|Any CPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2}.SingleImage|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Artemis/Artemis86Wrapper/App.config b/Artemis/Artemis86Wrapper/App.config new file mode 100644 index 000000000..efb4d02fd --- /dev/null +++ b/Artemis/Artemis86Wrapper/App.config @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Artemis/Artemis86Wrapper/Artemis86Wrapper.csproj b/Artemis/Artemis86Wrapper/Artemis86Wrapper.csproj new file mode 100644 index 000000000..3c7bbe96f --- /dev/null +++ b/Artemis/Artemis86Wrapper/Artemis86Wrapper.csproj @@ -0,0 +1,95 @@ + + + + + Debug + AnyCPU + {47A9BBFD-4BEA-4D7D-8AB7-896E760B2CF2} + Exe + Properties + Artemis86Wrapper + Artemis86Wrapper + v4.6.1 + 512 + true + + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + false + true + + + x86 + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + {03282B5D-B38F-469D-849A-09B0A7F4881B} + 1 + 0 + 0 + tlbimp + False + True + + + + + False + .NET Framework 3.5 SP1 + false + + + + + \ No newline at end of file diff --git a/Artemis/Artemis86Wrapper/Program.cs b/Artemis/Artemis86Wrapper/Program.cs new file mode 100644 index 000000000..a6fc53b57 --- /dev/null +++ b/Artemis/Artemis86Wrapper/Program.cs @@ -0,0 +1,16 @@ +using System; + +namespace Artemis86Wrapper +{ + internal class Program + { + private static void Main(string[] args) + { + Console.WriteLine("Artemis x86 wrapper"); + var skypeManager = new SkypeManager(); + skypeManager.Start(); + Console.WriteLine("Press any key to quit"); + Console.ReadKey(); + } + } +} \ No newline at end of file diff --git a/Artemis/Artemis86Wrapper/Properties/AssemblyInfo.cs b/Artemis/Artemis86Wrapper/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..76c84f589 --- /dev/null +++ b/Artemis/Artemis86Wrapper/Properties/AssemblyInfo.cs @@ -0,0 +1,39 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. + +[assembly: AssemblyTitle("Artemis86Wrapper")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Artemis86Wrapper")] +[assembly: AssemblyCopyright("Copyright © 2016")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. + +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM + +[assembly: Guid("47a9bbfd-4bea-4d7d-8ab7-896e760b2cf2")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] + +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/Artemis/Artemis86Wrapper/SkypeManager.cs b/Artemis/Artemis86Wrapper/SkypeManager.cs new file mode 100644 index 000000000..28e3bf88e --- /dev/null +++ b/Artemis/Artemis86Wrapper/SkypeManager.cs @@ -0,0 +1,36 @@ +using System; +using System.Timers; +using SKYPE4COMLib; + +namespace Artemis86Wrapper +{ + public class SkypeManager + { + private readonly Timer _loopTimer; + + public SkypeManager() + { + _loopTimer = new Timer(5000); + _loopTimer.Elapsed += UpdateSkype; + } + + public Skype Skype { get; set; } + + public void Start() + { + Skype = new Skype(); + _loopTimer.Start(); + } + + public void Stop() + { + _loopTimer.Stop(); + Skype = null; + } + + private void UpdateSkype(object sender, ElapsedEventArgs e) + { + Console.WriteLine("Missed messages: " + Skype.Messages.Count); + } + } +} \ No newline at end of file