Skip to content

Commit

Permalink
WifiStatus: Make WifiStatus a measure
Browse files Browse the repository at this point in the history
  • Loading branch information
brianferguson committed Nov 29, 2021
1 parent e381a9d commit e066e93
Show file tree
Hide file tree
Showing 11 changed files with 474 additions and 530 deletions.
2 changes: 1 addition & 1 deletion Build/Installer/Installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,7 @@ Function HandlePlugins
${OrIf} $R7 == "RecycleManager.dll"
${OrIf} $R7 == "SysInfo.dll"
${OrIf} $R7 == "WebParser.dll"
${OrIf} $R7 == "WifiStatus.dll"
Delete "$R9"
${ElseIf} $R7 != "ActionTimer.dll"
${AndIf} $R7 != "AdvancedCPU.dll"
Expand All @@ -852,7 +853,6 @@ Function HandlePlugins
${AndIf} $R7 != "SpeedFanPlugin.dll"
${AndIf} $R7 != "UsageMonitor.dll"
${AndIf} $R7 != "VirtualDesktops.dll"
${AndIf} $R7 != "WifiStatus.dll"
${AndIf} $R7 != "Win7AudioPlugin.dll"
${AndIf} $R7 != "WindowMessagePlugin.dll"
CreateDirectory "$INSTDIR\Defaults\Plugins"
Expand Down
4 changes: 3 additions & 1 deletion Library/Library.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<PrecompiledHeader>Use</PrecompiledHeader>
</ClCompile>
<Link>
<AdditionalDependencies>Bcrypt.lib;comctl32.lib;dwmapi.lib;Wininet.lib;UxTheme.lib;Winmm.lib;gdiplus.lib;Iphlpapi.lib;ws2_32.lib;PowrProf.lib;netapi32.lib;Ntdll.lib;shlwapi.lib;d3d11.lib;d2d1.lib;dwrite.lib;windowscodecs.lib;Version.lib;Imagehlp.lib;Urlmon.lib;psapi.lib;dxguid.lib;Rpcrt4.lib;%(AdditionalDependencies)</AdditionalDependencies>
<AdditionalDependencies>Bcrypt.lib;comctl32.lib;dwmapi.lib;Wininet.lib;UxTheme.lib;Winmm.lib;gdiplus.lib;Iphlpapi.lib;ws2_32.lib;PowrProf.lib;netapi32.lib;Ntdll.lib;shlwapi.lib;d3d11.lib;d2d1.lib;dwrite.lib;windowscodecs.lib;Version.lib;Imagehlp.lib;Urlmon.lib;psapi.lib;dxguid.lib;Rpcrt4.lib;wlanapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
<DelayLoadDLLs>Bcrypt.dll;dwmapi.dll;Iphlpapi.dll;Winmm.dll;Version.dll;Imagehlp.dll;Urlmon.dll;psapi.dll;$(DelayLoadTestDLL)</DelayLoadDLLs>
<ModuleDefinitionFile>Exports.def</ModuleDefinitionFile>
</Link>
Expand Down Expand Up @@ -71,6 +71,7 @@
<ClCompile Include="MeasureUptime.cpp" />
<ClCompile Include="MeasureVirtualMemory.cpp" />
<ClCompile Include="MeasureWebParser.cpp" />
<ClCompile Include="MeasureWifiStatus.cpp" />
<ClCompile Include="Meter.cpp" />
<ClCompile Include="MeterBar.cpp" />
<ClCompile Include="MeterBitmap.cpp" />
Expand Down Expand Up @@ -164,6 +165,7 @@
<ClInclude Include="MeasureUptime.h" />
<ClInclude Include="MeasureVirtualMemory.h" />
<ClInclude Include="MeasureWebParser.h" />
<ClInclude Include="MeasureWifiStatus.h" />
<ClInclude Include="Meter.h" />
<ClInclude Include="MeterBar.h" />
<ClInclude Include="MeterBitmap.h" />
Expand Down
2 changes: 2 additions & 0 deletions Library/Library.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
<ClCompile Include="MeasureUptime.cpp" />
<ClCompile Include="MeasureVirtualMemory.cpp" />
<ClCompile Include="MeasureWebParser.cpp" />
<ClCompile Include="MeasureWifiStatus.cpp" />
<ClCompile Include="Meter.cpp" />
<ClCompile Include="MeterBar.cpp" />
<ClCompile Include="MeterBitmap.cpp" />
Expand Down Expand Up @@ -212,6 +213,7 @@
<ClInclude Include="MeasureUptime.h" />
<ClInclude Include="MeasureVirtualMemory.h" />
<ClInclude Include="MeasureWebParser.h" />
<ClInclude Include="MeasureWifiStatus.h" />
<ClInclude Include="Meter.h" />
<ClInclude Include="MeterBar.h" />
<ClInclude Include="MeterBitmap.h" />
Expand Down
5 changes: 5 additions & 0 deletions Library/Measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#include "MeasureSysInfo.h"
#include "MeasureLoop.h"
#include "MeasureWebParser.h"
#include "MeasureWifiStatus.h"
#include "Rainmeter.h"
#include "Util.h"
#include "pcre/config.h"
Expand Down Expand Up @@ -814,6 +815,10 @@ Measure* Measure::Create(const WCHAR* measure, Skin* skin, const WCHAR* name)
{
return new MeasureWebParser(skin, name);
}
else if (_wcsicmp(L"WifiStatus", measure) == 0)
{
return new MeasureWifiStatus(skin, name);
}

LogErrorF(skin, L"Measure=%s is not valid in [%s]", measure, name);

Expand Down
Loading

0 comments on commit e066e93

Please sign in to comment.