From 9ee3b6273e68eabdc6d36e0ef5d384022148ef78 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky <mataes2007@gmail.com> Date: Sun, 26 Jul 2015 06:47:54 +0000 Subject: NewAwaySys: common project git-svn-id: http://svn.miranda-ng.org/main/trunk@14705 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewAwaySysMod/NewAwaySys.vcxproj | 28 ++ plugins/NewAwaySysMod/NewAwaySys.vcxproj.filters | 4 + plugins/NewAwaySysMod/NewAwaySys_10.vcxproj | 221 ------------- .../NewAwaySysMod/NewAwaySys_10.vcxproj.filters | 112 ------- plugins/NewAwaySysMod/NewAwaySys_12.vcxproj | 225 -------------- .../NewAwaySysMod/NewAwaySys_12.vcxproj.filters | 115 ------- plugins/NewAwaySysMod/NewAwaySys_14.vcxproj | 225 -------------- .../NewAwaySysMod/NewAwaySys_14.vcxproj.filters | 115 ------- plugins/NewAwaySysMod/src/AwayOpt.cpp | 2 +- plugins/NewAwaySysMod/src/AwaySys.cpp | 2 +- plugins/NewAwaySysMod/src/CString.cpp | 2 +- plugins/NewAwaySysMod/src/Client.cpp | 2 +- plugins/NewAwaySysMod/src/Common.h | 345 --------------------- plugins/NewAwaySysMod/src/ContactList.cpp | 2 +- plugins/NewAwaySysMod/src/GroupCheckbox.cpp | 2 +- plugins/NewAwaySysMod/src/MsgEventAdded.cpp | 2 +- plugins/NewAwaySysMod/src/MsgTree.cpp | 2 +- plugins/NewAwaySysMod/src/Notification.cpp | 2 +- plugins/NewAwaySysMod/src/Options.cpp | 2 +- plugins/NewAwaySysMod/src/Properties.cpp | 2 +- plugins/NewAwaySysMod/src/Properties.h | 2 +- plugins/NewAwaySysMod/src/ReadAwayMsg.cpp | 2 +- plugins/NewAwaySysMod/src/Services.cpp | 2 +- plugins/NewAwaySysMod/src/SetAwayMsg.cpp | 2 +- plugins/NewAwaySysMod/src/stdafx.h | 341 ++++++++++++++++++++ 25 files changed, 388 insertions(+), 1373 deletions(-) create mode 100644 plugins/NewAwaySysMod/NewAwaySys.vcxproj create mode 100644 plugins/NewAwaySysMod/NewAwaySys.vcxproj.filters delete mode 100644 plugins/NewAwaySysMod/NewAwaySys_10.vcxproj delete mode 100644 plugins/NewAwaySysMod/NewAwaySys_10.vcxproj.filters delete mode 100644 plugins/NewAwaySysMod/NewAwaySys_12.vcxproj delete mode 100644 plugins/NewAwaySysMod/NewAwaySys_12.vcxproj.filters delete mode 100644 plugins/NewAwaySysMod/NewAwaySys_14.vcxproj delete mode 100644 plugins/NewAwaySysMod/NewAwaySys_14.vcxproj.filters delete mode 100644 plugins/NewAwaySysMod/src/Common.h create mode 100644 plugins/NewAwaySysMod/src/stdafx.h (limited to 'plugins/NewAwaySysMod') diff --git a/plugins/NewAwaySysMod/NewAwaySys.vcxproj b/plugins/NewAwaySysMod/NewAwaySys.vcxproj new file mode 100644 index 0000000000..88bfcda7f0 --- /dev/null +++ b/plugins/NewAwaySysMod/NewAwaySys.vcxproj @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <ItemGroup Label="ProjectConfigurations"> + <ProjectConfiguration Include="Debug|Win32"> + <Configuration>Debug</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Debug|x64"> + <Configuration>Debug</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|Win32"> + <Configuration>Release</Configuration> + <Platform>Win32</Platform> + </ProjectConfiguration> + <ProjectConfiguration Include="Release|x64"> + <Configuration>Release</Configuration> + <Platform>x64</Platform> + </ProjectConfiguration> + </ItemGroup> + <PropertyGroup Label="Globals"> + <ProjectGuid>{6A516E27-AC50-5374-756B-A1558DB2EFA9}</ProjectGuid> + <ProjectName>NewAwaySys</ProjectName> + </PropertyGroup> + <ImportGroup Label="PropertySheets"> + <Import Project="$(ProjectDir)..\..\build\vc.common\plugin.props" /> + </ImportGroup> +</Project> \ No newline at end of file diff --git a/plugins/NewAwaySysMod/NewAwaySys.vcxproj.filters b/plugins/NewAwaySysMod/NewAwaySys.vcxproj.filters new file mode 100644 index 0000000000..de5ad9f66c --- /dev/null +++ b/plugins/NewAwaySysMod/NewAwaySys.vcxproj.filters @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$(ProjectDir)..\..\build\vc.common\common.filters" /> +</Project> \ No newline at end of file diff --git a/plugins/NewAwaySysMod/NewAwaySys_10.vcxproj b/plugins/NewAwaySysMod/NewAwaySys_10.vcxproj deleted file mode 100644 index 4b86efd32d..0000000000 --- a/plugins/NewAwaySysMod/NewAwaySys_10.vcxproj +++ /dev/null @@ -1,221 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|Win32"> - <Configuration>Debug</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <PropertyGroup Label="Globals"> - <ProjectGuid>{6A516E27-AC50-5374-756B-A1558DB2EFA9}</ProjectGuid> - <ProjectName>NewAwaySys</ProjectName> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - <WholeProgramOptimization>true</WholeProgramOptimization> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - <WholeProgramOptimization>true</WholeProgramOptimization> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup> - <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\Plugins\</OutDir> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)64\Plugins\</OutDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\Obj\$(ProjectName)\</IntDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\</IntDir> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\Plugins\</OutDir> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)64\Plugins\</OutDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\Obj\$(ProjectName)\</IntDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\</IntDir> - <IgnoreImportLibrary>true</IgnoreImportLibrary> - </PropertyGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <ClCompile> - <Optimization>Disabled</Optimization> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> - <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin10\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <ClCompile> - <Optimization>Disabled</Optimization> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> - <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin10\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <ClCompile> - <Optimization>Full</Optimization> - <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <StringPooling>true</StringPooling> - <ExceptionHandling>Sync</ExceptionHandling> - <BufferSecurityCheck>false</BufferSecurityCheck> - <FunctionLevelLinking>false</FunctionLevelLinking> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <FavorSizeOrSpeed>Size</FavorSizeOrSpeed> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <OptimizeReferences>true</OptimizeReferences> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin10\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <Optimization>Full</Optimization> - <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <StringPooling>true</StringPooling> - <ExceptionHandling>Sync</ExceptionHandling> - <BufferSecurityCheck>false</BufferSecurityCheck> - <FunctionLevelLinking>false</FunctionLevelLinking> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <FavorSizeOrSpeed>Size</FavorSizeOrSpeed> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <OptimizeReferences>true</OptimizeReferences> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin10\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemGroup> - <ClCompile Include="src\AwayOpt.cpp" /> - <ClCompile Include="src\AwaySys.cpp"> - <PrecompiledHeader>Create</PrecompiledHeader> - </ClCompile> - <ClCompile Include="src\Client.cpp" /> - <ClCompile Include="src\ContactList.cpp" /> - <ClCompile Include="src\CString.cpp" /> - <ClCompile Include="src\GroupCheckbox.cpp" /> - <ClCompile Include="src\MsgEventAdded.cpp" /> - <ClCompile Include="src\MsgTree.cpp" /> - <ClCompile Include="src\Notification.cpp" /> - <ClCompile Include="src\Options.cpp" /> - <ClCompile Include="src\Properties.cpp" /> - <ClCompile Include="src\ReadAwayMsg.cpp" /> - <ClCompile Include="src\Services.cpp" /> - <ClCompile Include="src\SetAwayMsg.cpp" /> - </ItemGroup> - <ItemGroup> - <ClInclude Include="src\Common.h" /> - <ClInclude Include="src\ContactList.h" /> - <ClInclude Include="src\CString.h" /> - <ClInclude Include="src\MsgTree.h" /> - <ClInclude Include="src\Options.h" /> - <ClInclude Include="src\Path.h" /> - <ClInclude Include="src\Properties.h" /> - <ClInclude Include="src\resource.h" /> - <ClInclude Include="src\Services.h" /> - <ClInclude Include="src\version.h" /> - </ItemGroup> - <ItemGroup> - <None Include="copying.txt" /> - <None Include="nas_readme.txt" /> - </ItemGroup> - <ItemGroup> - <ResourceCompile Include="res\NewAwaySys.rc" /> - <ResourceCompile Include="res\version.rc" /> - </ItemGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - </ImportGroup> -</Project> \ No newline at end of file diff --git a/plugins/NewAwaySysMod/NewAwaySys_10.vcxproj.filters b/plugins/NewAwaySysMod/NewAwaySys_10.vcxproj.filters deleted file mode 100644 index e0b96faa3c..0000000000 --- a/plugins/NewAwaySysMod/NewAwaySys_10.vcxproj.filters +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <UniqueIdentifier>{116110a1-b9f8-4995-aab2-1de50eab806f}</UniqueIdentifier> - <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> - </Filter> - <Filter Include="Header Files"> - <UniqueIdentifier>{7c639270-1dc0-403f-a6ba-7da092e1f885}</UniqueIdentifier> - <Extensions>h;hpp;hxx;hm;inl</Extensions> - </Filter> - <Filter Include="Resource Files"> - <UniqueIdentifier>{bbdb7c3b-6f74-434a-b577-46de841df2af}</UniqueIdentifier> - <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions> - </Filter> - <Filter Include="Documentation"> - <UniqueIdentifier>{b1737ff9-4769-4f5b-b414-ee0f5256de7f}</UniqueIdentifier> - </Filter> - </ItemGroup> - <ItemGroup> - <ClCompile Include="src\AwayOpt.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\AwaySys.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Client.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\ContactList.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\MsgEventAdded.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\MsgTree.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Notification.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Properties.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\ReadAwayMsg.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Services.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\SetAwayMsg.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\CString.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Options.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\GroupCheckbox.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - </ItemGroup> - <ItemGroup> - <ClInclude Include="src\Common.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\ContactList.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\MsgTree.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Path.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Properties.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\resource.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Services.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\version.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\CString.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Options.h"> - <Filter>Header Files</Filter> - </ClInclude> - </ItemGroup> - <ItemGroup> - <None Include="copying.txt"> - <Filter>Documentation</Filter> - </None> - <None Include="nas_readme.txt"> - <Filter>Documentation</Filter> - </None> - </ItemGroup> - <ItemGroup> - <ResourceCompile Include="res\NewAwaySys.rc"> - <Filter>Resource Files</Filter> - </ResourceCompile> - <ResourceCompile Include="res\version.rc"> - <Filter>Resource Files</Filter> - </ResourceCompile> - </ItemGroup> -</Project> \ No newline at end of file diff --git a/plugins/NewAwaySysMod/NewAwaySys_12.vcxproj b/plugins/NewAwaySysMod/NewAwaySys_12.vcxproj deleted file mode 100644 index 8587ee92cb..0000000000 --- a/plugins/NewAwaySysMod/NewAwaySys_12.vcxproj +++ /dev/null @@ -1,225 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|Win32"> - <Configuration>Debug</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <PropertyGroup Label="Globals"> - <ProjectGuid>{6A516E27-AC50-5374-756B-A1558DB2EFA9}</ProjectGuid> - <ProjectName>NewAwaySys</ProjectName> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - <WholeProgramOptimization>true</WholeProgramOptimization> - <PlatformToolset>v120_xp</PlatformToolset> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - <WholeProgramOptimization>true</WholeProgramOptimization> - <PlatformToolset>v120_xp</PlatformToolset> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - <PlatformToolset>v120_xp</PlatformToolset> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - <PlatformToolset>v120_xp</PlatformToolset> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup> - <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\Plugins\</OutDir> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)64\Plugins\</OutDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\Obj\$(ProjectName)\</IntDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\</IntDir> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\Plugins\</OutDir> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)64\Plugins\</OutDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\Obj\$(ProjectName)\</IntDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\</IntDir> - <IgnoreImportLibrary>true</IgnoreImportLibrary> - </PropertyGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <ClCompile> - <Optimization>Disabled</Optimization> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> - <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin12\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <ClCompile> - <Optimization>Disabled</Optimization> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> - <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin12\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <ClCompile> - <Optimization>Full</Optimization> - <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <StringPooling>true</StringPooling> - <ExceptionHandling>Sync</ExceptionHandling> - <BufferSecurityCheck>false</BufferSecurityCheck> - <FunctionLevelLinking>false</FunctionLevelLinking> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <FavorSizeOrSpeed>Size</FavorSizeOrSpeed> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <OptimizeReferences>true</OptimizeReferences> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin12\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <Optimization>Full</Optimization> - <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <StringPooling>true</StringPooling> - <ExceptionHandling>Sync</ExceptionHandling> - <BufferSecurityCheck>false</BufferSecurityCheck> - <FunctionLevelLinking>false</FunctionLevelLinking> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <FavorSizeOrSpeed>Size</FavorSizeOrSpeed> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <OptimizeReferences>true</OptimizeReferences> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin12\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemGroup> - <ClCompile Include="src\AwayOpt.cpp" /> - <ClCompile Include="src\AwaySys.cpp"> - <PrecompiledHeader>Create</PrecompiledHeader> - </ClCompile> - <ClCompile Include="src\Client.cpp" /> - <ClCompile Include="src\ContactList.cpp" /> - <ClCompile Include="src\CString.cpp" /> - <ClCompile Include="src\GroupCheckbox.cpp" /> - <ClCompile Include="src\MsgEventAdded.cpp" /> - <ClCompile Include="src\MsgTree.cpp" /> - <ClCompile Include="src\Notification.cpp" /> - <ClCompile Include="src\Options.cpp" /> - <ClCompile Include="src\Properties.cpp" /> - <ClCompile Include="src\ReadAwayMsg.cpp" /> - <ClCompile Include="src\Services.cpp" /> - <ClCompile Include="src\SetAwayMsg.cpp" /> - </ItemGroup> - <ItemGroup> - <ClInclude Include="src\Common.h" /> - <ClInclude Include="src\ContactList.h" /> - <ClInclude Include="src\CString.h" /> - <ClInclude Include="src\MsgTree.h" /> - <ClInclude Include="src\Options.h" /> - <ClInclude Include="src\Path.h" /> - <ClInclude Include="src\Properties.h" /> - <ClInclude Include="src\resource.h" /> - <ClInclude Include="src\Services.h" /> - <ClInclude Include="src\version.h" /> - </ItemGroup> - <ItemGroup> - <None Include="copying.txt" /> - <None Include="nas_readme.txt" /> - </ItemGroup> - <ItemGroup> - <ResourceCompile Include="res\NewAwaySys.rc" /> - <ResourceCompile Include="res\version.rc" /> - </ItemGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - </ImportGroup> -</Project> \ No newline at end of file diff --git a/plugins/NewAwaySysMod/NewAwaySys_12.vcxproj.filters b/plugins/NewAwaySysMod/NewAwaySys_12.vcxproj.filters deleted file mode 100644 index 7bc41c18c7..0000000000 --- a/plugins/NewAwaySysMod/NewAwaySys_12.vcxproj.filters +++ /dev/null @@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <UniqueIdentifier>{116110a1-b9f8-4995-aab2-1de50eab806f}</UniqueIdentifier> - <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> - </Filter> - <Filter Include="Header Files"> - <UniqueIdentifier>{7c639270-1dc0-403f-a6ba-7da092e1f885}</UniqueIdentifier> - <Extensions>h;hpp;hxx;hm;inl</Extensions> - </Filter> - <Filter Include="Resource Files"> - <UniqueIdentifier>{bbdb7c3b-6f74-434a-b577-46de841df2af}</UniqueIdentifier> - <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions> - </Filter> - <Filter Include="Documentation"> - <UniqueIdentifier>{b1737ff9-4769-4f5b-b414-ee0f5256de7f}</UniqueIdentifier> - </Filter> - <Filter Include="Source Files\CommonLibs"> - <UniqueIdentifier>{ce0f339c-23a2-46b5-9000-81e923ac9be6}</UniqueIdentifier> - </Filter> - </ItemGroup> - <ItemGroup> - <ClCompile Include="src\AwayOpt.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\AwaySys.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Client.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\ContactList.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\MsgEventAdded.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\MsgTree.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Notification.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Properties.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\ReadAwayMsg.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Services.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\SetAwayMsg.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\CString.cpp"> - <Filter>Source Files\CommonLibs</Filter> - </ClCompile> - <ClCompile Include="src\GroupCheckbox.cpp"> - <Filter>Source Files\CommonLibs</Filter> - </ClCompile> - <ClCompile Include="src\Options.cpp"> - <Filter>Source Files\CommonLibs</Filter> - </ClCompile> - </ItemGroup> - <ItemGroup> - <ClInclude Include="src\Common.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\ContactList.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\MsgTree.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Path.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Properties.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\resource.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Services.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\version.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\CString.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Options.h"> - <Filter>Header Files</Filter> - </ClInclude> - </ItemGroup> - <ItemGroup> - <None Include="copying.txt"> - <Filter>Documentation</Filter> - </None> - <None Include="nas_readme.txt"> - <Filter>Documentation</Filter> - </None> - </ItemGroup> - <ItemGroup> - <ResourceCompile Include="res\NewAwaySys.rc"> - <Filter>Resource Files</Filter> - </ResourceCompile> - <ResourceCompile Include="res\version.rc"> - <Filter>Resource Files</Filter> - </ResourceCompile> - </ItemGroup> -</Project> \ No newline at end of file diff --git a/plugins/NewAwaySysMod/NewAwaySys_14.vcxproj b/plugins/NewAwaySysMod/NewAwaySys_14.vcxproj deleted file mode 100644 index a7bed0f93b..0000000000 --- a/plugins/NewAwaySysMod/NewAwaySys_14.vcxproj +++ /dev/null @@ -1,225 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup Label="ProjectConfigurations"> - <ProjectConfiguration Include="Debug|Win32"> - <Configuration>Debug</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Debug|x64"> - <Configuration>Debug</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|Win32"> - <Configuration>Release</Configuration> - <Platform>Win32</Platform> - </ProjectConfiguration> - <ProjectConfiguration Include="Release|x64"> - <Configuration>Release</Configuration> - <Platform>x64</Platform> - </ProjectConfiguration> - </ItemGroup> - <PropertyGroup Label="Globals"> - <ProjectGuid>{6A516E27-AC50-5374-756B-A1558DB2EFA9}</ProjectGuid> - <ProjectName>NewAwaySys</ProjectName> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - <WholeProgramOptimization>true</WholeProgramOptimization> - <PlatformToolset>v140_xp</PlatformToolset> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - <WholeProgramOptimization>true</WholeProgramOptimization> - <PlatformToolset>v140_xp</PlatformToolset> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - <PlatformToolset>v140_xp</PlatformToolset> - </PropertyGroup> - <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> - <ConfigurationType>DynamicLibrary</ConfigurationType> - <CharacterSet>Unicode</CharacterSet> - <PlatformToolset>v140_xp</PlatformToolset> - </PropertyGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> - <ImportGroup Label="ExtensionSettings"> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets"> - <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> - </ImportGroup> - <PropertyGroup Label="UserMacros" /> - <PropertyGroup> - <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\Plugins\</OutDir> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)64\Plugins\</OutDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">$(SolutionDir)$(Configuration)\Obj\$(ProjectName)\</IntDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">$(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\</IntDir> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\Plugins\</OutDir> - <OutDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)64\Plugins\</OutDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">$(SolutionDir)$(Configuration)\Obj\$(ProjectName)\</IntDir> - <IntDir Condition="'$(Configuration)|$(Platform)'=='Release|x64'">$(SolutionDir)$(Configuration)64\Obj\$(ProjectName)\</IntDir> - <IgnoreImportLibrary>true</IgnoreImportLibrary> - </PropertyGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> - <ClCompile> - <Optimization>Disabled</Optimization> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> - <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin14\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> - <ClCompile> - <Optimization>Disabled</Optimization> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks> - <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin14\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> - <ClCompile> - <Optimization>Full</Optimization> - <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <StringPooling>true</StringPooling> - <ExceptionHandling>Sync</ExceptionHandling> - <BufferSecurityCheck>false</BufferSecurityCheck> - <FunctionLevelLinking>false</FunctionLevelLinking> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <FavorSizeOrSpeed>Size</FavorSizeOrSpeed> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <OptimizeReferences>true</OptimizeReferences> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin14\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> - <ClCompile> - <Optimization>Full</Optimization> - <InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion> - <AdditionalIncludeDirectories>..\..\include;..\ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> - <PreprocessorDefinitions>NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <StringPooling>true</StringPooling> - <ExceptionHandling>Sync</ExceptionHandling> - <BufferSecurityCheck>false</BufferSecurityCheck> - <FunctionLevelLinking>false</FunctionLevelLinking> - <PrecompiledHeader>Use</PrecompiledHeader> - <WarningLevel>Level3</WarningLevel> - <FavorSizeOrSpeed>Size</FavorSizeOrSpeed> - <PrecompiledHeaderFile>Common.h</PrecompiledHeaderFile> - </ClCompile> - <Link> - <GenerateDebugInformation>true</GenerateDebugInformation> - <ImportLibrary>$(IntDir)$(TargetName).lib</ImportLibrary> - <OptimizeReferences>true</OptimizeReferences> - <EnableCOMDATFolding>true</EnableCOMDATFolding> - <SubSystem>Windows</SubSystem> - <RandomizedBaseAddress>false</RandomizedBaseAddress> - <AdditionalLibraryDirectories>$(ProfileDir)..\..\bin14\lib</AdditionalLibraryDirectories> - <AdditionalDependencies>comctl32.lib;%(AdditionalDependencies)</AdditionalDependencies> - </Link> - <ResourceCompile> - <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions> - <AdditionalIncludeDirectories>..\..\include\msapi</AdditionalIncludeDirectories> - </ResourceCompile> - </ItemDefinitionGroup> - <ItemGroup> - <ClCompile Include="src\AwayOpt.cpp" /> - <ClCompile Include="src\AwaySys.cpp"> - <PrecompiledHeader>Create</PrecompiledHeader> - </ClCompile> - <ClCompile Include="src\Client.cpp" /> - <ClCompile Include="src\ContactList.cpp" /> - <ClCompile Include="src\CString.cpp" /> - <ClCompile Include="src\GroupCheckbox.cpp" /> - <ClCompile Include="src\MsgEventAdded.cpp" /> - <ClCompile Include="src\MsgTree.cpp" /> - <ClCompile Include="src\Notification.cpp" /> - <ClCompile Include="src\Options.cpp" /> - <ClCompile Include="src\Properties.cpp" /> - <ClCompile Include="src\ReadAwayMsg.cpp" /> - <ClCompile Include="src\Services.cpp" /> - <ClCompile Include="src\SetAwayMsg.cpp" /> - </ItemGroup> - <ItemGroup> - <ClInclude Include="src\Common.h" /> - <ClInclude Include="src\ContactList.h" /> - <ClInclude Include="src\CString.h" /> - <ClInclude Include="src\MsgTree.h" /> - <ClInclude Include="src\Options.h" /> - <ClInclude Include="src\Path.h" /> - <ClInclude Include="src\Properties.h" /> - <ClInclude Include="src\resource.h" /> - <ClInclude Include="src\Services.h" /> - <ClInclude Include="src\version.h" /> - </ItemGroup> - <ItemGroup> - <None Include="copying.txt" /> - <None Include="nas_readme.txt" /> - </ItemGroup> - <ItemGroup> - <ResourceCompile Include="res\NewAwaySys.rc" /> - <ResourceCompile Include="res\version.rc" /> - </ItemGroup> - <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> - <ImportGroup Label="ExtensionTargets"> - </ImportGroup> -</Project> \ No newline at end of file diff --git a/plugins/NewAwaySysMod/NewAwaySys_14.vcxproj.filters b/plugins/NewAwaySysMod/NewAwaySys_14.vcxproj.filters deleted file mode 100644 index 7bc41c18c7..0000000000 --- a/plugins/NewAwaySysMod/NewAwaySys_14.vcxproj.filters +++ /dev/null @@ -1,115 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> - <ItemGroup> - <Filter Include="Source Files"> - <UniqueIdentifier>{116110a1-b9f8-4995-aab2-1de50eab806f}</UniqueIdentifier> - <Extensions>cpp;c;cxx;rc;def;r;odl;idl;hpj;bat</Extensions> - </Filter> - <Filter Include="Header Files"> - <UniqueIdentifier>{7c639270-1dc0-403f-a6ba-7da092e1f885}</UniqueIdentifier> - <Extensions>h;hpp;hxx;hm;inl</Extensions> - </Filter> - <Filter Include="Resource Files"> - <UniqueIdentifier>{bbdb7c3b-6f74-434a-b577-46de841df2af}</UniqueIdentifier> - <Extensions>ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe</Extensions> - </Filter> - <Filter Include="Documentation"> - <UniqueIdentifier>{b1737ff9-4769-4f5b-b414-ee0f5256de7f}</UniqueIdentifier> - </Filter> - <Filter Include="Source Files\CommonLibs"> - <UniqueIdentifier>{ce0f339c-23a2-46b5-9000-81e923ac9be6}</UniqueIdentifier> - </Filter> - </ItemGroup> - <ItemGroup> - <ClCompile Include="src\AwayOpt.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\AwaySys.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Client.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\ContactList.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\MsgEventAdded.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\MsgTree.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Notification.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Properties.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\ReadAwayMsg.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\Services.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\SetAwayMsg.cpp"> - <Filter>Source Files</Filter> - </ClCompile> - <ClCompile Include="src\CString.cpp"> - <Filter>Source Files\CommonLibs</Filter> - </ClCompile> - <ClCompile Include="src\GroupCheckbox.cpp"> - <Filter>Source Files\CommonLibs</Filter> - </ClCompile> - <ClCompile Include="src\Options.cpp"> - <Filter>Source Files\CommonLibs</Filter> - </ClCompile> - </ItemGroup> - <ItemGroup> - <ClInclude Include="src\Common.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\ContactList.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\MsgTree.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Path.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Properties.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\resource.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Services.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\version.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\CString.h"> - <Filter>Header Files</Filter> - </ClInclude> - <ClInclude Include="src\Options.h"> - <Filter>Header Files</Filter> - </ClInclude> - </ItemGroup> - <ItemGroup> - <None Include="copying.txt"> - <Filter>Documentation</Filter> - </None> - <None Include="nas_readme.txt"> - <Filter>Documentation</Filter> - </None> - </ItemGroup> - <ItemGroup> - <ResourceCompile Include="res\NewAwaySys.rc"> - <Filter>Resource Files</Filter> - </ResourceCompile> - <ResourceCompile Include="res\version.rc"> - <Filter>Resource Files</Filter> - </ResourceCompile> - </ItemGroup> -</Project> \ No newline at end of file diff --git a/plugins/NewAwaySysMod/src/AwayOpt.cpp b/plugins/NewAwaySysMod/src/AwayOpt.cpp index 23811933df..b9b17ac23e 100644 --- a/plugins/NewAwaySysMod/src/AwayOpt.cpp +++ b/plugins/NewAwaySysMod/src/AwayOpt.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "Common.h" +#include "stdafx.h" #include "MsgTree.h" #include "Properties.h" #include "Path.h" diff --git a/plugins/NewAwaySysMod/src/AwaySys.cpp b/plugins/NewAwaySysMod/src/AwaySys.cpp index 39fd513119..b67a5b9cfe 100644 --- a/plugins/NewAwaySysMod/src/AwaySys.cpp +++ b/plugins/NewAwaySysMod/src/AwaySys.cpp @@ -29,7 +29,7 @@ was no point in rewriting it all. */ -#include "Common.h" +#include "stdafx.h" #include "m_genmenu.h" #include "m_idle.h" #include "m_statusplugins.h" diff --git a/plugins/NewAwaySysMod/src/CString.cpp b/plugins/NewAwaySysMod/src/CString.cpp index da36abd4d6..ebfefce299 100644 --- a/plugins/NewAwaySysMod/src/CString.cpp +++ b/plugins/NewAwaySysMod/src/CString.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "Common.h" +#include "stdafx.h" #define STR_GROWBY 64 diff --git a/plugins/NewAwaySysMod/src/Client.cpp b/plugins/NewAwaySysMod/src/Client.cpp index 6790efa6b2..bc733d00c6 100644 --- a/plugins/NewAwaySysMod/src/Client.cpp +++ b/plugins/NewAwaySysMod/src/Client.cpp @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "Common.h" +#include "stdafx.h" #include "MsgTree.h" #include "Properties.h" diff --git a/plugins/NewAwaySysMod/src/Common.h b/plugins/NewAwaySysMod/src/Common.h deleted file mode 100644 index cc744ea932..0000000000 --- a/plugins/NewAwaySysMod/src/Common.h +++ /dev/null @@ -1,345 +0,0 @@ -/* - New Away System - plugin for Miranda IM - Copyright (c) 2005-2007 Chervov Dmitry - Copyright (c) 2004-2005 Iksaif Entertainment - Copyright (c) 2002-2003 Goblineye Entertainment - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -*/ - -#pragma once - -#define _CRT_SECURE_NO_WARNINGS - -#define MIRANDA_VER 0x0A00 - -#include <windows.h> -#include <windowsx.h> -#include <stdio.h> -#include <stdlib.h> -#include <malloc.h> -#include <CommCtrl.h> -#include <commdlg.h> -#include <Uxtheme.h> -#include <vsstyle.h> - -#include <time.h> -#include <shellapi.h> -#include <crtdbg.h> -#include <tchar.h> -#include <stdarg.h> - -#include "newpluginapi.h" -#include "m_clist.h" -#include "m_system.h" -#include "m_database.h" -#include "m_clistint.h" -#include "m_langpack.h" -#include "m_protosvc.h" -#include "m_options.h" -#include "m_netlib.h" -#include "..\..\protocols\IcqOscarJ\src\icq_constants.h" -#include "m_skin.h" -#include "m_awaymsg.h" -#include "m_utils.h" -#include "m_system_cpp.h" -#include "m_history.h" -#include "m_icolib.h" -#include "m_message.h" -#include "m_userinfo.h" -#include "m_icq.h" -#include "win2k.h" - -#include "resource.h" - -#include "m_variables.h" -#include "m_toptoolbar.h" -#include "m_popup.h" -#include "m_metacontacts.h" - -#include "CString.h" -#include "Options.h" - -#define CBSCHECK_UNCHECKED 1 -#define CBSCHECK_CHECKED 5 -#define CBSCHECK_MIXED 9 -#define CBSSTATE_NORMAL 0 -#define CBSSTATE_HOT 1 -#define CBSSTATE_PRESSED 2 -#define CBSSTATE_DISABLED 3 - -#define VAR_AWAYSINCE_TIME _T("nas_awaysince_time") -#define VAR_AWAYSINCE_DATE _T("nas_awaysince_date") -#define VAR_STATDESC _T("nas_statdesc") -#define VAR_MYNICK _T("nas_mynick") -#define VAR_REQUESTCOUNT _T("nas_requestcount") -#define VAR_MESSAGENUM _T("nas_messagecount") -#define VAR_TIMEPASSED _T("nas_timepassed") -#define VAR_PREDEFINEDMESSAGE _T("nas_predefinedmessage") -#define VAR_PROTOCOL _T("nas_protocol") - -#define SENDSMSG_EVENT_MSG 0x1 -#define SENDSMSG_EVENT_URL 0x2 -#define SENDSMSG_EVENT_FILE 0x4 - -#define AWAY_MSGDATA_MAX 8000 - -// Flags for status database settings -#define SF_OFF 0x1 -#define SF_ONL 0x2 -#define SF_AWAY 0x4 -#define SF_NA 0x8 -#define SF_OCC 0x10 -#define SF_DND 0x20 -#define SF_FFC 0x40 -#define SF_INV 0x80 -#define SF_OTP 0x100 -#define SF_OTL 0x200 -#define SF_OTHER 0x80000000 - -#define MOREOPTDLG_DEF_DONTPOPDLG (SF_ONL | SF_INV) -#define MOREOPTDLG_DEF_USEBYDEFAULT 0 - -// Event flags (used for "reply on event" options) -#define EF_MSG 1 -#define EF_URL 2 -#define EF_FILE 4 - -#define AUTOREPLY_DEF_REPLY 0 -#define AUTOREPLY_DEF_REPLYONEVENT (EF_MSG | EF_URL | EF_FILE) -#define AUTOREPLY_DEF_PREFIX TranslateT("Miranda NG autoreply >\r\n%extratext%") -#define AUTOREPLY_DEF_DISABLEREPLY (SF_ONL | SF_INV) - -#define AUTOREPLY_IDLE_WINDOWS 0 -#define AUTOREPLY_IDLE_MIRANDA 1 -#define AUTOREPLY_DEF_IDLEREPLYVALUE AUTOREPLY_IDLE_WINDOWS - -#define AUTOREPLY_MAXPREFIXLEN 8000 - -#define VAL_USEDEFAULT 2 // undefined value for ignore/autoreply/notification settings in the db; must be 2 for proper ContactSettings support - -// Set Away Message dialog flags -#define DF_SAM_SHOWMSGTREE 1 -#define DF_SAM_SHOWCONTACTTREE 2 -#define DF_SAM_DEFDLGFLAGS DF_SAM_SHOWMSGTREE - -// WriteAwayMsgInDB option flags: -#define WRITE_LMSG 1 -#define WRITE_RMSG 2 -#define WRITE_INTERPRET 4 -#define WRITE_CMSG 8 - -#define TOGGLE_SOE_COMMAND LPGENT("Toggle autoreply on/off") -#define DISABLE_SOE_COMMAND LPGENT("Toggle autoreply off") -#define ENABLE_SOE_COMMAND LPGENT("Toggle autoreply on") - -#define STR_XSTATUSDESC TranslateT("extended status") - -#define MOD_NAME "NewAwaySys" -#define LOG_ID MOD_NAME // LogService log ID -#define LOG_PREFIX MOD_NAME ": " // netlib.log prefix for all NAS' messages - -#define DB_SETTINGSVER "SettingsVer" - -#ifndef _countof -#define _countof(s) (sizeof(s) / sizeof(*s)) -#endif - -#define UM_ICONSCHANGED (WM_USER + 121) - -// IDD_READAWAYMSG user-defined message constants -#define UM_RAM_AWAYMSGACK (WM_USER + 10) - -// IDD_SETAWAYMSG user-defined message constants -#define UM_SAM_SPLITTERMOVED (WM_USER + 1) -#define UM_SAM_SAVEDLGSETTINGS (WM_USER + 2) -#define UM_SAM_APPLYANDCLOSE (WM_USER + 3) -#define UM_SAM_KILLTIMER (WM_USER + 4) -#define UM_SAM_REPLYSETTINGCHANGED (WM_USER + 5) -#define UM_SAM_PROTOSTATUSCHANGED (WM_USER + 6) // wParam = (char*)szProto - -#define UM_CLICK (WM_USER + 100) - -#define SAM_DB_DLGPOSX "SAMDlgPosX" -#define SAM_DB_DLGPOSY "SAMDlgPosY" -#define SAM_DB_DLGSIZEX "SAMDlgSizeX" -#define SAM_DB_DLGSIZEY "SAMDlgSizeY" -#define SAM_DB_MSGSPLITTERPOS "SAMMsgSplitterPos" -#define SAM_DB_CONTACTSPLITTERPOS "SAMContactSplitterPos" - -#define DB_MESSAGECOUNT "MessageCount" -#define DB_REQUESTCOUNT "RequestCount" -#define DB_SENDCOUNT "SendCount" -#define MESSAGES_DB_MSGTREEDEF "MsgTreeDef" - -#define MSGTREE_RECENT_OTHERGROUP _T("Other") - -// GetMsgFormat flags -#define GMF_PERSONAL 1 // is also used to get global status message, when hContact = NULL (szProto = NULL) -#define GMF_PROTOORGLOBAL 2 -#define GMF_LASTORDEFAULT 4 // this flag doesn't require hContact or szProto -#define GMF_TEMPORARY 8 // doesn't require status -#define GMF_ANYCURRENT (GMF_TEMPORARY | GMF_PERSONAL | GMF_PROTOORGLOBAL) - -// SetMsgFormat flags -#define SMF_PERSONAL 1 // is also used to set global status message, when hContact = NULL (szProto = NULL) -#define SMF_LAST 2 -#define SMF_TEMPORARY 4 // doesn't require status - -// VAR_PARSE_DATA flags -#define VPF_XSTATUS 1 // use "extended status" instead of the usual status description in %nas_statdesc%, and XStatus message in %nas_message% - -// options dialog -#define OPT_TITLE LPGENT("Away System") -#define OPT_MAINGROUP LPGEN("Status") -#define OPT_POPUPGROUP LPGEN("Popups") - -#define MRM_MAX_GENERATED_TITLE_LEN 35 // maximum length of automatically generated title for recent messages - -int ICQStatusToGeneralStatus(int bICQStat); // TODO: get rid of these protocol-specific functions, if possible - -#define MS_AWAYSYS_SETCONTACTSTATMSG "AwaySys/SetContactStatMsg" - -#define MS_AWAYSYS_AUTOREPLY_TOGGLE "AwaySys/AutoreplyToggle" -#define MS_AWAYSYS_AUTOREPLY_ON "AwaySys/AutoreplyOn" -#define MS_AWAYSYS_AUTOREPLY_OFF "AwaySys/AutoreplyOff" -#define MS_AWAYSYS_AUTOREPLY_USEDEFAULT "AwaySys/AutoreplyUseDefault" - -#define MS_AWAYSYS_VARIABLESHANDLER "AwaySys/VariablesHandler" -#define MS_AWAYSYS_FREEVARMEM "AwaySys/FreeVarMem" -// these are obsolete AwaySysMod services, though they're still here for compatibility with old plugins -#define MS_AWAYSYS_SETSTATUSMODE "AwaySys/SetStatusMode" // change the status mode. wParam is new mode, lParam is new status message (AwaySys will interpret variables out of it), may be NULL. -#define MS_AWAYSYS_IGNORENEXT "AwaySys/IgnoreNextStatusChange" //ignore nest status change - -struct SetAwayMsgData -{ - CString szProtocol; - MCONTACT hInitContact; // initial contact (filled by caller) - TCString Message; // initial message, NULL means default - bool IsModeless; // means the dialog was created with the CreateDialogParam function, not DialogBoxParam - int ISW_Flags; // InvokeStatusWindow service flags -}; - -struct VAR_PARSE_DATA -{ - char *szProto; - TCString Message; - DWORD UIN; - int Flags; // a combination of VPF_ flags -}; - -struct DYNAMIC_NOTIFY_DATA -{ - MCONTACT hContact; - int iStatusMode; - TCString Proto; -}; - -struct PLUGIN_DATA -{ - BYTE PopupLClickAction, PopupRClickAction; - MCONTACT hContact; - HICON hStatusIcon; // needed here to destroy its handle on UM_FREEPLUGINDATA -}; - -struct NAS_ISWINFOv1 -{ - int cbSize; - char *szProto; - MCONTACT hContact; - char *szMsg; - WORD status; -}; - -#define MTYPE_AUTOONLINE 0xE7 // required to support ICQ Plus online status messages - -// Beware of conflicts between two different windows trying to use the same page at a time! -// Other windows than the owner of the Page must copy the page to their own memory, -// or use GetDBValueCopy to retrieve values -extern COptPage g_MessagesOptPage; -extern COptPage g_AutoreplyOptPage; -//extern COptPage g_PopupOptPage; -extern COptPage g_MoreOptPage; -extern COptPage g_SetAwayMsgPage; - -extern HINSTANCE g_hInstance; -extern int g_Messages_RecentRootID, g_Messages_PredefinedRootID; -extern VAR_PARSE_DATA VarParseData; -extern bool g_fNoProcessing; -extern int g_bIsIdle; - -// AwaySys.cpp -TCString GetDynamicStatMsg(MCONTACT hContact, char *szProto = NULL, DWORD UIN = 0, int iStatus = 0); -int IsAnICQProto(char *szProto); - -// Client.cpp -void InitUpdateMsgs(); -void ChangeProtoMessages(char* szProto, int iMode, TCString &Msg); -int GetRecentGroupID(int iMode); -TCString VariablesEscape(TCString Str); - -// SetAwayMsg.cpp -INT_PTR CALLBACK SetAwayMsgDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); - -// ReadAwayMsg.cpp -extern MWindowList g_hReadWndList; -INT_PTR GetContactStatMsg(WPARAM wParam, LPARAM lParam); - -// AwayOpt.cpp -int ModernOptInitialise(WPARAM wParam, LPARAM lParam); -int OptsDlgInit(WPARAM wParam, LPARAM); // called on opening of the options dialog -void InitOptions(); // called once when plugin is loaded - -//int ShowPopupNotification(COptPage &PopupNotifyData, MCONTACT hContact, int iStatusMode); -void ShowLog(TCString &LogFilePath); -void ShowMsg(TCHAR *szFirstLine, TCHAR *szSecondLine = _T(""), bool IsErrorMsg = false, int Timeout = 0); - -#define AWAYSYS_STATUSMSGREQUEST_SOUND "AwaySysStatusMsgRequest" -#define ME_AWAYSYS_WORKAROUND "AwaySys/_CallService" -int _Workaround_CallService(const char *name, WPARAM wParam, LPARAM lParam); - -// MsgEventAdded.cpp -int MsgEventAdded(WPARAM wParam, LPARAM lParam); - -// buttons -INT_PTR ToggleSendOnEvent(WPARAM wParam, LPARAM lParam); - -static __inline int LogMessage(const char *Format, ...) -{ - va_list va; - char szText[8096]; - mir_strcpy(szText, LOG_PREFIX); - va_start(va, Format); - mir_vsnprintf(szText + (_countof(LOG_PREFIX) - 1), sizeof(szText) - (_countof(LOG_PREFIX) - 1), Format, va); - va_end(va); - return CallService(MS_NETLIB_LOG, NULL, (LPARAM)szText); -} - -__inline int CallAllowedPS_SETAWAYMSG(const char *szProto, int iMode, const TCHAR *szMsg) -{ // we must use this function everywhere we want to call PS_SETAWAYMSG, otherwise NAS won't allow to change the message! - LogMessage("PS_SETAWAYMSG called by NAS. szProto=%s, Status=%d, Msg:\n%S", szProto, iMode, szMsg ? szMsg : _T("NULL")); - return CallProtoService(szProto, PS_SETAWAYMSG, iMode, (LPARAM)szMsg); -} - -static __inline int my_variables_showhelp(HWND hwndDlg, UINT uIDEdit, int flags = 0, char *szSubjectDesc = NULL, char *szExtraDesc = NULL) -{ - if (ServiceExists(MS_VARS_SHOWHELPEX)) { - return variables_showhelp(hwndDlg, uIDEdit, flags, szSubjectDesc,szExtraDesc); - } - else { - ShowMsg(TranslateT("New Away System"), TranslateT("Variables plugin is not installed"), true); - return -1; - } -} diff --git a/plugins/NewAwaySysMod/src/ContactList.cpp b/plugins/NewAwaySysMod/src/ContactList.cpp index 76791ae33e..a920db8026 100644 --- a/plugins/NewAwaySysMod/src/ContactList.cpp +++ b/plugins/NewAwaySysMod/src/ContactList.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "Common.h" +#include "stdafx.h" #include "ContactList.h" #include "Properties.h" diff --git a/plugins/NewAwaySysMod/src/GroupCheckbox.cpp b/plugins/NewAwaySysMod/src/GroupCheckbox.cpp index 7c66b0eff1..77be2e1e7f 100644 --- a/plugins/NewAwaySysMod/src/GroupCheckbox.cpp +++ b/plugins/NewAwaySysMod/src/GroupCheckbox.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "Common.h" +#include "stdafx.h" #include "GroupCheckbox.h" #pragma comment(lib, "uxtheme.lib") diff --git a/plugins/NewAwaySysMod/src/MsgEventAdded.cpp b/plugins/NewAwaySysMod/src/MsgEventAdded.cpp index 7290ada575..ac2cda974b 100644 --- a/plugins/NewAwaySysMod/src/MsgEventAdded.cpp +++ b/plugins/NewAwaySysMod/src/MsgEventAdded.cpp @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "Common.h" +#include "stdafx.h" #include "Properties.h" static struct diff --git a/plugins/NewAwaySysMod/src/MsgTree.cpp b/plugins/NewAwaySysMod/src/MsgTree.cpp index 4eb3f9ba12..f515e7c65b 100644 --- a/plugins/NewAwaySysMod/src/MsgTree.cpp +++ b/plugins/NewAwaySysMod/src/MsgTree.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "Common.h" +#include "stdafx.h" #include "MsgTree.h" #include "Properties.h" diff --git a/plugins/NewAwaySysMod/src/Notification.cpp b/plugins/NewAwaySysMod/src/Notification.cpp index fff41162fe..a26b823b27 100644 --- a/plugins/NewAwaySysMod/src/Notification.cpp +++ b/plugins/NewAwaySysMod/src/Notification.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "Common.h" +#include "stdafx.h" #include "Path.h" #include "Properties.h" diff --git a/plugins/NewAwaySysMod/src/Options.cpp b/plugins/NewAwaySysMod/src/Options.cpp index 5610280b56..cce59a1601 100644 --- a/plugins/NewAwaySysMod/src/Options.cpp +++ b/plugins/NewAwaySysMod/src/Options.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "Common.h" +#include "stdafx.h" #include "Options.h" static CString sEmptyString(""); diff --git a/plugins/NewAwaySysMod/src/Properties.cpp b/plugins/NewAwaySysMod/src/Properties.cpp index baac915742..70716fdfcb 100644 --- a/plugins/NewAwaySysMod/src/Properties.cpp +++ b/plugins/NewAwaySysMod/src/Properties.cpp @@ -17,7 +17,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "Common.h" +#include "stdafx.h" #include "Properties.h" CProtoStates g_ProtoStates; diff --git a/plugins/NewAwaySysMod/src/Properties.h b/plugins/NewAwaySysMod/src/Properties.h index 50c3ee4762..d95e328822 100644 --- a/plugins/NewAwaySysMod/src/Properties.h +++ b/plugins/NewAwaySysMod/src/Properties.h @@ -19,7 +19,7 @@ #pragma once -#include "Common.h" +#include "stdafx.h" #include "MsgTree.h" #include "ContactList.h" #include "statusmodes.h" diff --git a/plugins/NewAwaySysMod/src/ReadAwayMsg.cpp b/plugins/NewAwaySysMod/src/ReadAwayMsg.cpp index 8f539219e7..4ea1d3d978 100644 --- a/plugins/NewAwaySysMod/src/ReadAwayMsg.cpp +++ b/plugins/NewAwaySysMod/src/ReadAwayMsg.cpp @@ -19,7 +19,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "Common.h" +#include "stdafx.h" struct READAWAYMSGDATA { diff --git a/plugins/NewAwaySysMod/src/Services.cpp b/plugins/NewAwaySysMod/src/Services.cpp index dfe711c77f..1d4b114528 100644 --- a/plugins/NewAwaySysMod/src/Services.cpp +++ b/plugins/NewAwaySysMod/src/Services.cpp @@ -18,7 +18,7 @@ */ -#include "Common.h" +#include "stdafx.h" #include "Properties.h" #include "m_NewAwaySys.h" diff --git a/plugins/NewAwaySysMod/src/SetAwayMsg.cpp b/plugins/NewAwaySysMod/src/SetAwayMsg.cpp index 5b6f600239..6e46c9aaa2 100644 --- a/plugins/NewAwaySysMod/src/SetAwayMsg.cpp +++ b/plugins/NewAwaySysMod/src/SetAwayMsg.cpp @@ -20,7 +20,7 @@ */ -#include "Common.h" +#include "stdafx.h" #include "m_button.h" #include "m_icolib.h" #include "ContactList.h" diff --git a/plugins/NewAwaySysMod/src/stdafx.h b/plugins/NewAwaySysMod/src/stdafx.h new file mode 100644 index 0000000000..56a4975ca3 --- /dev/null +++ b/plugins/NewAwaySysMod/src/stdafx.h @@ -0,0 +1,341 @@ +/* + New Away System - plugin for Miranda IM + Copyright (c) 2005-2007 Chervov Dmitry + Copyright (c) 2004-2005 Iksaif Entertainment + Copyright (c) 2002-2003 Goblineye Entertainment + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +*/ + +#pragma once + +#include <windows.h> +#include <windowsx.h> +#include <stdio.h> +#include <stdlib.h> +#include <malloc.h> +#include <CommCtrl.h> +#include <commdlg.h> +#include <Uxtheme.h> +#include <vsstyle.h> + +#include <time.h> +#include <shellapi.h> +#include <crtdbg.h> +#include <tchar.h> +#include <stdarg.h> + +#include "newpluginapi.h" +#include "m_clist.h" +#include "m_system.h" +#include "m_database.h" +#include "m_clistint.h" +#include "m_langpack.h" +#include "m_protosvc.h" +#include "m_options.h" +#include "m_netlib.h" +#include "..\..\protocols\IcqOscarJ\src\icq_constants.h" +#include "m_skin.h" +#include "m_awaymsg.h" +#include "m_utils.h" +#include "m_system_cpp.h" +#include "m_history.h" +#include "m_icolib.h" +#include "m_message.h" +#include "m_userinfo.h" +#include "m_icq.h" +#include "win2k.h" + +#include "resource.h" + +#include "m_variables.h" +#include "m_toptoolbar.h" +#include "m_popup.h" +#include "m_metacontacts.h" + +#include "CString.h" +#include "Options.h" + +#define CBSCHECK_UNCHECKED 1 +#define CBSCHECK_CHECKED 5 +#define CBSCHECK_MIXED 9 +#define CBSSTATE_NORMAL 0 +#define CBSSTATE_HOT 1 +#define CBSSTATE_PRESSED 2 +#define CBSSTATE_DISABLED 3 + +#define VAR_AWAYSINCE_TIME _T("nas_awaysince_time") +#define VAR_AWAYSINCE_DATE _T("nas_awaysince_date") +#define VAR_STATDESC _T("nas_statdesc") +#define VAR_MYNICK _T("nas_mynick") +#define VAR_REQUESTCOUNT _T("nas_requestcount") +#define VAR_MESSAGENUM _T("nas_messagecount") +#define VAR_TIMEPASSED _T("nas_timepassed") +#define VAR_PREDEFINEDMESSAGE _T("nas_predefinedmessage") +#define VAR_PROTOCOL _T("nas_protocol") + +#define SENDSMSG_EVENT_MSG 0x1 +#define SENDSMSG_EVENT_URL 0x2 +#define SENDSMSG_EVENT_FILE 0x4 + +#define AWAY_MSGDATA_MAX 8000 + +// Flags for status database settings +#define SF_OFF 0x1 +#define SF_ONL 0x2 +#define SF_AWAY 0x4 +#define SF_NA 0x8 +#define SF_OCC 0x10 +#define SF_DND 0x20 +#define SF_FFC 0x40 +#define SF_INV 0x80 +#define SF_OTP 0x100 +#define SF_OTL 0x200 +#define SF_OTHER 0x80000000 + +#define MOREOPTDLG_DEF_DONTPOPDLG (SF_ONL | SF_INV) +#define MOREOPTDLG_DEF_USEBYDEFAULT 0 + +// Event flags (used for "reply on event" options) +#define EF_MSG 1 +#define EF_URL 2 +#define EF_FILE 4 + +#define AUTOREPLY_DEF_REPLY 0 +#define AUTOREPLY_DEF_REPLYONEVENT (EF_MSG | EF_URL | EF_FILE) +#define AUTOREPLY_DEF_PREFIX TranslateT("Miranda NG autoreply >\r\n%extratext%") +#define AUTOREPLY_DEF_DISABLEREPLY (SF_ONL | SF_INV) + +#define AUTOREPLY_IDLE_WINDOWS 0 +#define AUTOREPLY_IDLE_MIRANDA 1 +#define AUTOREPLY_DEF_IDLEREPLYVALUE AUTOREPLY_IDLE_WINDOWS + +#define AUTOREPLY_MAXPREFIXLEN 8000 + +#define VAL_USEDEFAULT 2 // undefined value for ignore/autoreply/notification settings in the db; must be 2 for proper ContactSettings support + +// Set Away Message dialog flags +#define DF_SAM_SHOWMSGTREE 1 +#define DF_SAM_SHOWCONTACTTREE 2 +#define DF_SAM_DEFDLGFLAGS DF_SAM_SHOWMSGTREE + +// WriteAwayMsgInDB option flags: +#define WRITE_LMSG 1 +#define WRITE_RMSG 2 +#define WRITE_INTERPRET 4 +#define WRITE_CMSG 8 + +#define TOGGLE_SOE_COMMAND LPGENT("Toggle autoreply on/off") +#define DISABLE_SOE_COMMAND LPGENT("Toggle autoreply off") +#define ENABLE_SOE_COMMAND LPGENT("Toggle autoreply on") + +#define STR_XSTATUSDESC TranslateT("extended status") + +#define MOD_NAME "NewAwaySys" +#define LOG_ID MOD_NAME // LogService log ID +#define LOG_PREFIX MOD_NAME ": " // netlib.log prefix for all NAS' messages + +#define DB_SETTINGSVER "SettingsVer" + +#ifndef _countof +#define _countof(s) (sizeof(s) / sizeof(*s)) +#endif + +#define UM_ICONSCHANGED (WM_USER + 121) + +// IDD_READAWAYMSG user-defined message constants +#define UM_RAM_AWAYMSGACK (WM_USER + 10) + +// IDD_SETAWAYMSG user-defined message constants +#define UM_SAM_SPLITTERMOVED (WM_USER + 1) +#define UM_SAM_SAVEDLGSETTINGS (WM_USER + 2) +#define UM_SAM_APPLYANDCLOSE (WM_USER + 3) +#define UM_SAM_KILLTIMER (WM_USER + 4) +#define UM_SAM_REPLYSETTINGCHANGED (WM_USER + 5) +#define UM_SAM_PROTOSTATUSCHANGED (WM_USER + 6) // wParam = (char*)szProto + +#define UM_CLICK (WM_USER + 100) + +#define SAM_DB_DLGPOSX "SAMDlgPosX" +#define SAM_DB_DLGPOSY "SAMDlgPosY" +#define SAM_DB_DLGSIZEX "SAMDlgSizeX" +#define SAM_DB_DLGSIZEY "SAMDlgSizeY" +#define SAM_DB_MSGSPLITTERPOS "SAMMsgSplitterPos" +#define SAM_DB_CONTACTSPLITTERPOS "SAMContactSplitterPos" + +#define DB_MESSAGECOUNT "MessageCount" +#define DB_REQUESTCOUNT "RequestCount" +#define DB_SENDCOUNT "SendCount" +#define MESSAGES_DB_MSGTREEDEF "MsgTreeDef" + +#define MSGTREE_RECENT_OTHERGROUP _T("Other") + +// GetMsgFormat flags +#define GMF_PERSONAL 1 // is also used to get global status message, when hContact = NULL (szProto = NULL) +#define GMF_PROTOORGLOBAL 2 +#define GMF_LASTORDEFAULT 4 // this flag doesn't require hContact or szProto +#define GMF_TEMPORARY 8 // doesn't require status +#define GMF_ANYCURRENT (GMF_TEMPORARY | GMF_PERSONAL | GMF_PROTOORGLOBAL) + +// SetMsgFormat flags +#define SMF_PERSONAL 1 // is also used to set global status message, when hContact = NULL (szProto = NULL) +#define SMF_LAST 2 +#define SMF_TEMPORARY 4 // doesn't require status + +// VAR_PARSE_DATA flags +#define VPF_XSTATUS 1 // use "extended status" instead of the usual status description in %nas_statdesc%, and XStatus message in %nas_message% + +// options dialog +#define OPT_TITLE LPGENT("Away System") +#define OPT_MAINGROUP LPGEN("Status") +#define OPT_POPUPGROUP LPGEN("Popups") + +#define MRM_MAX_GENERATED_TITLE_LEN 35 // maximum length of automatically generated title for recent messages + +int ICQStatusToGeneralStatus(int bICQStat); // TODO: get rid of these protocol-specific functions, if possible + +#define MS_AWAYSYS_SETCONTACTSTATMSG "AwaySys/SetContactStatMsg" + +#define MS_AWAYSYS_AUTOREPLY_TOGGLE "AwaySys/AutoreplyToggle" +#define MS_AWAYSYS_AUTOREPLY_ON "AwaySys/AutoreplyOn" +#define MS_AWAYSYS_AUTOREPLY_OFF "AwaySys/AutoreplyOff" +#define MS_AWAYSYS_AUTOREPLY_USEDEFAULT "AwaySys/AutoreplyUseDefault" + +#define MS_AWAYSYS_VARIABLESHANDLER "AwaySys/VariablesHandler" +#define MS_AWAYSYS_FREEVARMEM "AwaySys/FreeVarMem" +// these are obsolete AwaySysMod services, though they're still here for compatibility with old plugins +#define MS_AWAYSYS_SETSTATUSMODE "AwaySys/SetStatusMode" // change the status mode. wParam is new mode, lParam is new status message (AwaySys will interpret variables out of it), may be NULL. +#define MS_AWAYSYS_IGNORENEXT "AwaySys/IgnoreNextStatusChange" //ignore nest status change + +struct SetAwayMsgData +{ + CString szProtocol; + MCONTACT hInitContact; // initial contact (filled by caller) + TCString Message; // initial message, NULL means default + bool IsModeless; // means the dialog was created with the CreateDialogParam function, not DialogBoxParam + int ISW_Flags; // InvokeStatusWindow service flags +}; + +struct VAR_PARSE_DATA +{ + char *szProto; + TCString Message; + DWORD UIN; + int Flags; // a combination of VPF_ flags +}; + +struct DYNAMIC_NOTIFY_DATA +{ + MCONTACT hContact; + int iStatusMode; + TCString Proto; +}; + +struct PLUGIN_DATA +{ + BYTE PopupLClickAction, PopupRClickAction; + MCONTACT hContact; + HICON hStatusIcon; // needed here to destroy its handle on UM_FREEPLUGINDATA +}; + +struct NAS_ISWINFOv1 +{ + int cbSize; + char *szProto; + MCONTACT hContact; + char *szMsg; + WORD status; +}; + +#define MTYPE_AUTOONLINE 0xE7 // required to support ICQ Plus online status messages + +// Beware of conflicts between two different windows trying to use the same page at a time! +// Other windows than the owner of the Page must copy the page to their own memory, +// or use GetDBValueCopy to retrieve values +extern COptPage g_MessagesOptPage; +extern COptPage g_AutoreplyOptPage; +//extern COptPage g_PopupOptPage; +extern COptPage g_MoreOptPage; +extern COptPage g_SetAwayMsgPage; + +extern HINSTANCE g_hInstance; +extern int g_Messages_RecentRootID, g_Messages_PredefinedRootID; +extern VAR_PARSE_DATA VarParseData; +extern bool g_fNoProcessing; +extern int g_bIsIdle; + +// AwaySys.cpp +TCString GetDynamicStatMsg(MCONTACT hContact, char *szProto = NULL, DWORD UIN = 0, int iStatus = 0); +int IsAnICQProto(char *szProto); + +// Client.cpp +void InitUpdateMsgs(); +void ChangeProtoMessages(char* szProto, int iMode, TCString &Msg); +int GetRecentGroupID(int iMode); +TCString VariablesEscape(TCString Str); + +// SetAwayMsg.cpp +INT_PTR CALLBACK SetAwayMsgDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam); + +// ReadAwayMsg.cpp +extern MWindowList g_hReadWndList; +INT_PTR GetContactStatMsg(WPARAM wParam, LPARAM lParam); + +// AwayOpt.cpp +int ModernOptInitialise(WPARAM wParam, LPARAM lParam); +int OptsDlgInit(WPARAM wParam, LPARAM); // called on opening of the options dialog +void InitOptions(); // called once when plugin is loaded + +//int ShowPopupNotification(COptPage &PopupNotifyData, MCONTACT hContact, int iStatusMode); +void ShowLog(TCString &LogFilePath); +void ShowMsg(TCHAR *szFirstLine, TCHAR *szSecondLine = _T(""), bool IsErrorMsg = false, int Timeout = 0); + +#define AWAYSYS_STATUSMSGREQUEST_SOUND "AwaySysStatusMsgRequest" +#define ME_AWAYSYS_WORKAROUND "AwaySys/_CallService" +int _Workaround_CallService(const char *name, WPARAM wParam, LPARAM lParam); + +// MsgEventAdded.cpp +int MsgEventAdded(WPARAM wParam, LPARAM lParam); + +// buttons +INT_PTR ToggleSendOnEvent(WPARAM wParam, LPARAM lParam); + +static __inline int LogMessage(const char *Format, ...) +{ + va_list va; + char szText[8096]; + mir_strcpy(szText, LOG_PREFIX); + va_start(va, Format); + mir_vsnprintf(szText + (_countof(LOG_PREFIX) - 1), sizeof(szText) - (_countof(LOG_PREFIX) - 1), Format, va); + va_end(va); + return CallService(MS_NETLIB_LOG, NULL, (LPARAM)szText); +} + +__inline int CallAllowedPS_SETAWAYMSG(const char *szProto, int iMode, const TCHAR *szMsg) +{ // we must use this function everywhere we want to call PS_SETAWAYMSG, otherwise NAS won't allow to change the message! + LogMessage("PS_SETAWAYMSG called by NAS. szProto=%s, Status=%d, Msg:\n%S", szProto, iMode, szMsg ? szMsg : _T("NULL")); + return CallProtoService(szProto, PS_SETAWAYMSG, iMode, (LPARAM)szMsg); +} + +static __inline int my_variables_showhelp(HWND hwndDlg, UINT uIDEdit, int flags = 0, char *szSubjectDesc = NULL, char *szExtraDesc = NULL) +{ + if (ServiceExists(MS_VARS_SHOWHELPEX)) { + return variables_showhelp(hwndDlg, uIDEdit, flags, szSubjectDesc,szExtraDesc); + } + else { + ShowMsg(TranslateT("New Away System"), TranslateT("Variables plugin is not installed"), true); + return -1; + } +} -- cgit v1.2.3