From 952bdb64266100abc90bd4d5b15ebd6aa4fbcba1 Mon Sep 17 00:00:00 2001 From: moitoius_cp <7bd20ad30720b36bd251fb928c419f8754d57bfcCkJyHhZD> Date: Mon, 7 Jan 2008 12:16:02 +0000 Subject: [PATCH] Started prelim work on a bot that can sit in on meetings. --- .../Cosmos/Cosmos.Kernel/LinkedFormats/ELF.cs | 2 +- .../Cosmos.Tools.SkypeBot.csproj | 100 +++++++++++++++ .../Cosmos.Tools.SkypeBot.csproj.vspscc | 10 ++ .../MainForm.Designer.cs | 38 ++++++ .../Cosmos/Cosmos.Tools.SkypeBot/MainForm.cs | 19 +++ .../Cosmos/Cosmos.Tools.SkypeBot/Program.cs | 21 ++++ .../Properties/AssemblyInfo.cs | 36 ++++++ .../Properties/Resources.Designer.cs | 71 +++++++++++ .../Properties/Resources.resx | 117 ++++++++++++++++++ .../Properties/Settings.Designer.cs | 30 +++++ .../Properties/Settings.settings | 7 ++ source/IL2CPU.sln | 15 ++- 12 files changed, 463 insertions(+), 3 deletions(-) create mode 100644 source/Cosmos/Cosmos.Tools.SkypeBot/Cosmos.Tools.SkypeBot.csproj create mode 100644 source/Cosmos/Cosmos.Tools.SkypeBot/Cosmos.Tools.SkypeBot.csproj.vspscc create mode 100644 source/Cosmos/Cosmos.Tools.SkypeBot/MainForm.Designer.cs create mode 100644 source/Cosmos/Cosmos.Tools.SkypeBot/MainForm.cs create mode 100644 source/Cosmos/Cosmos.Tools.SkypeBot/Program.cs create mode 100644 source/Cosmos/Cosmos.Tools.SkypeBot/Properties/AssemblyInfo.cs create mode 100644 source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Resources.Designer.cs create mode 100644 source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Resources.resx create mode 100644 source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Settings.Designer.cs create mode 100644 source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Settings.settings diff --git a/source/Cosmos/Cosmos.Kernel/LinkedFormats/ELF.cs b/source/Cosmos/Cosmos.Kernel/LinkedFormats/ELF.cs index e3a04429a..25c8217be 100644 --- a/source/Cosmos/Cosmos.Kernel/LinkedFormats/ELF.cs +++ b/source/Cosmos/Cosmos.Kernel/LinkedFormats/ELF.cs @@ -31,7 +31,7 @@ namespace Cosmos.Kernel.LinkedFormats /// Whether or not the code was loaded. public bool Load(Stream reader, long position) { - return -1; + return false; } } } diff --git a/source/Cosmos/Cosmos.Tools.SkypeBot/Cosmos.Tools.SkypeBot.csproj b/source/Cosmos/Cosmos.Tools.SkypeBot/Cosmos.Tools.SkypeBot.csproj new file mode 100644 index 000000000..83ceb8874 --- /dev/null +++ b/source/Cosmos/Cosmos.Tools.SkypeBot/Cosmos.Tools.SkypeBot.csproj @@ -0,0 +1,100 @@ + + + + Debug + AnyCPU + 9.0.21022 + 2.0 + {B0BBD2A2-4FAA-4730-9770-ACE6D9532132} + WinExe + Properties + Cosmos.Tools.SkypeBot + Cosmos.Tools.SkypeBot + v3.5 + 512 + SAK + SAK + SAK + SAK + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + 3.5 + + + 3.5 + + + 3.5 + + + + + + + + + + Form + + + MainForm.cs + + + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + {03282B5D-B38F-469D-849A-09B0A7F4881B} + 1 + 0 + 0 + tlbimp + False + + + + + \ No newline at end of file diff --git a/source/Cosmos/Cosmos.Tools.SkypeBot/Cosmos.Tools.SkypeBot.csproj.vspscc b/source/Cosmos/Cosmos.Tools.SkypeBot/Cosmos.Tools.SkypeBot.csproj.vspscc new file mode 100644 index 000000000..feffdecaa --- /dev/null +++ b/source/Cosmos/Cosmos.Tools.SkypeBot/Cosmos.Tools.SkypeBot.csproj.vspscc @@ -0,0 +1,10 @@ +"" +{ +"FILE_VERSION" = "9237" +"ENLISTMENT_CHOICE" = "NEVER" +"PROJECT_FILE_RELATIVE_PATH" = "" +"NUMBER_OF_EXCLUDED_FILES" = "0" +"ORIGINAL_PROJECT_FILE_PATH" = "" +"NUMBER_OF_NESTED_PROJECTS" = "0" +"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" +} diff --git a/source/Cosmos/Cosmos.Tools.SkypeBot/MainForm.Designer.cs b/source/Cosmos/Cosmos.Tools.SkypeBot/MainForm.Designer.cs new file mode 100644 index 000000000..15dca69a1 --- /dev/null +++ b/source/Cosmos/Cosmos.Tools.SkypeBot/MainForm.Designer.cs @@ -0,0 +1,38 @@ +namespace Cosmos.Tools.SkypeBot +{ + partial class MainForm + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.components = new System.ComponentModel.Container(); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Text = "MainForm"; + } + + #endregion + } +} \ No newline at end of file diff --git a/source/Cosmos/Cosmos.Tools.SkypeBot/MainForm.cs b/source/Cosmos/Cosmos.Tools.SkypeBot/MainForm.cs new file mode 100644 index 000000000..5edc2eabe --- /dev/null +++ b/source/Cosmos/Cosmos.Tools.SkypeBot/MainForm.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Windows.Forms; + +namespace Cosmos.Tools.SkypeBot +{ + public partial class MainForm : Form + { + public MainForm() + { + InitializeComponent(); + } + } +} diff --git a/source/Cosmos/Cosmos.Tools.SkypeBot/Program.cs b/source/Cosmos/Cosmos.Tools.SkypeBot/Program.cs new file mode 100644 index 000000000..e49319ec0 --- /dev/null +++ b/source/Cosmos/Cosmos.Tools.SkypeBot/Program.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Windows.Forms; + +namespace Cosmos.Tools.SkypeBot +{ + static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new MainForm()); + } + } +} diff --git a/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/AssemblyInfo.cs b/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..0c6058933 --- /dev/null +++ b/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +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("Cosmos.Tools.SkypeBot")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Cosmos.Tools.SkypeBot")] +[assembly: AssemblyCopyright("Copyright © 2008")] +[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("e5476780-bb8c-46d9-aa9f-fc1ecf664d03")] + +// 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")] diff --git a/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Resources.Designer.cs b/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Resources.Designer.cs new file mode 100644 index 000000000..95b2f0e60 --- /dev/null +++ b/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.1433 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Cosmos.Tools.SkypeBot.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Cosmos.Tools.SkypeBot.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Resources.resx b/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Resources.resx new file mode 100644 index 000000000..ffecec851 --- /dev/null +++ b/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Settings.Designer.cs b/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Settings.Designer.cs new file mode 100644 index 000000000..962ced98c --- /dev/null +++ b/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:2.0.50727.1433 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Cosmos.Tools.SkypeBot.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Settings.settings b/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Settings.settings new file mode 100644 index 000000000..abf36c5d3 --- /dev/null +++ b/source/Cosmos/Cosmos.Tools.SkypeBot/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/source/IL2CPU.sln b/source/IL2CPU.sln index 42a6076f4..f2be6d5a9 100644 --- a/source/IL2CPU.sln +++ b/source/IL2CPU.sln @@ -55,9 +55,11 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.Kernel", "Cosmos\Cos EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.Kernel.LogTail", "Cosmos\Cosmos.Kernel.LogTail\Cosmos.Kernel.LogTail.csproj", "{7BAB58BF-E8A1-4623-B6BF-4B90A0505226}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cosmos.Tools.SkypeBot", "Cosmos\Cosmos.Tools.SkypeBot\Cosmos.Tools.SkypeBot.csproj", "{B0BBD2A2-4FAA-4730-9770-ACE6D9532132}" +EndProject Global GlobalSection(TeamFoundationVersionControl) = preSolution - SccNumberOfProjects = 26 + SccNumberOfProjects = 27 SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C} SccTeamFoundationServer = https://tfs04.codeplex.com/ SccLocalPath0 = . @@ -144,6 +146,10 @@ Global SccProjectTopLevelParentUniqueName25 = IL2CPU.sln SccProjectName25 = Cosmos/Cosmos.Kernel.LogTail SccLocalPath25 = Cosmos\\Cosmos.Kernel.LogTail + SccProjectUniqueName26 = Cosmos\\Cosmos.Tools.SkypeBot\\Cosmos.Tools.SkypeBot.csproj + SccProjectTopLevelParentUniqueName26 = IL2CPU.sln + SccProjectName26 = Cosmos/Cosmos.Tools.SkypeBot + SccLocalPath26 = Cosmos\\Cosmos.Tools.SkypeBot EndGlobalSection GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -245,16 +251,21 @@ Global {7BAB58BF-E8A1-4623-B6BF-4B90A0505226}.Debug|Any CPU.Build.0 = Debug|Any CPU {7BAB58BF-E8A1-4623-B6BF-4B90A0505226}.Release|Any CPU.ActiveCfg = Release|Any CPU {7BAB58BF-E8A1-4623-B6BF-4B90A0505226}.Release|Any CPU.Build.0 = Release|Any CPU + {B0BBD2A2-4FAA-4730-9770-ACE6D9532132}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B0BBD2A2-4FAA-4730-9770-ACE6D9532132}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B0BBD2A2-4FAA-4730-9770-ACE6D9532132}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B0BBD2A2-4FAA-4730-9770-ACE6D9532132}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(NestedProjects) = preSolution - {E4A9F8F0-D0DC-465A-A64A-FE56504D397E} = {0D558E33-78B0-47DB-B5EF-B7C2F3114D75} {CE50FE98-9AC4-4B4D-ADC7-31F6DCD28755} = {0D558E33-78B0-47DB-B5EF-B7C2F3114D75} + {E4A9F8F0-D0DC-465A-A64A-FE56504D397E} = {0D558E33-78B0-47DB-B5EF-B7C2F3114D75} {B168BEDD-C6A6-4E7C-B9A5-0144286E9E42} = {0D558E33-78B0-47DB-B5EF-B7C2F3114D75} {930DDE98-229B-4EBF-B41B-ACABDF48EEFB} = {0D558E33-78B0-47DB-B5EF-B7C2F3114D75} {A1F83D9F-2D44-4264-A08B-416797123018} = {0D558E33-78B0-47DB-B5EF-B7C2F3114D75} {7BAB58BF-E8A1-4623-B6BF-4B90A0505226} = {0D558E33-78B0-47DB-B5EF-B7C2F3114D75} + {B0BBD2A2-4FAA-4730-9770-ACE6D9532132} = {0D558E33-78B0-47DB-B5EF-B7C2F3114D75} EndGlobalSection EndGlobal