MCPcopy Create free account
hub / github.com/bruderstein/nppPluginManager / init

Method init

pluginManager/src/NotifyUpdatesDialog.cpp:41–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41void NotifyUpdatesDialog::init(HINSTANCE hInst, NppData nppData, PluginList* pluginList)
42{
43 _nppData = nppData;
44 _pluginList = pluginList;
45
46 _updateList = _pluginList->getUpdateablePlugins();
47
48 tstring pluginConfigFilename(_pluginList->getVariableHandler()->getVariable(_T("CONFIGDIR")));
49 pluginConfigFilename.append(_T("\\PluginManager.ini"));
50
51 PluginListContainer::iterator iter = _updateList.begin();
52 while (iter != _updateList.end())
53 {
54 TCHAR ignoreVersion[20];
55 ::GetPrivateProfileString(_T("IgnoreUpdates"), (*iter)->getName().c_str(), _T(""), ignoreVersion, 20, pluginConfigFilename.c_str());
56 if (PluginVersion(ignoreVersion) == (*iter)->getVersion())
57 iter = _updateList.erase(iter);
58 else
59 ++iter;
60 }
61
62
63 Window::init(hInst, nppData._nppHandle);
64}
65
66
67BOOL NotifyUpdatesDialog::updatesAvailable()

Callers 1

run_dlgProcMethod · 0.45

Calls 6

getVariableHandlerMethod · 0.80
beginMethod · 0.80
endMethod · 0.80
c_strMethod · 0.80
PluginVersionClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected