| 67 | |
| 68 | template <typename T> |
| 69 | static T resolveFunction(QLibrary& lib, const char* name) |
| 70 | { |
| 71 | T temp = reinterpret_cast<T>(lib.resolve(name)); |
| 72 | if (temp == nullptr) { |
| 73 | throw std::runtime_error(QObject::tr("invalid 7-zip32.dll: %1") |
| 74 | .arg(lib.errorString()) |
| 75 | .toLatin1() |
| 76 | .constData()); |
| 77 | } |
| 78 | return temp; |
| 79 | } |
| 80 | |
| 81 | InstallationManager::InstallationManager() : m_ParentWidget(nullptr), m_IsRunning(false) |
| 82 | { |