Skip to content
Snippets Groups Projects
Commit 333bdb20 authored by barthgr's avatar barthgr
Browse files

update code documentation

parent 936c4a95
Branches
Tags
No related merge requests found
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
#include <QFileInfo> #include <QFileInfo>
#define MAX_KEY_LENGTH 255 #define MAX_KEY_LENGTH 255
#define MAX_VALUE_NAME 16383 #define MAX_VALUE_NAME 16383
std::vector<std::string> QueryKey(HKEY hKey, std::string path) std::vector<std::string> QueryKey(HKEY hKey, std::string path)
{ {
//See https://docs.microsoft.com/en-us/windows/desktop/sysinfo/enumerating-registry-subkeys //See https://docs.microsoft.com/en-us/windows/desktop/sysinfo/enumerating-registry-subkeys
std::vector<std::string> list; std::vector<std::string> list;
TCHAR achClass[MAX_PATH] = TEXT(""); // buffer for class name TCHAR achClass[MAX_PATH] = TEXT(""); // buffer for class name
...@@ -28,12 +28,12 @@ std::vector<std::string> QueryKey(HKEY hKey, std::string path) ...@@ -28,12 +28,12 @@ std::vector<std::string> QueryKey(HKEY hKey, std::string path)
DWORD cbMaxValueData; // longest value data DWORD cbMaxValueData; // longest value data
DWORD cbSecurityDescriptor; // size of security descriptor DWORD cbSecurityDescriptor; // size of security descriptor
FILETIME ftLastWriteTime; // last write time FILETIME ftLastWriteTime; // last write time
DWORD i, retCode; DWORD i, retCode;
TCHAR achValue[MAX_VALUE_NAME]; TCHAR achValue[MAX_VALUE_NAME];
DWORD cchValue = MAX_VALUE_NAME; DWORD cchValue = MAX_VALUE_NAME;
// Get the class name and the value count. // Get the class name and the value count.
retCode = RegQueryInfoKey( retCode = RegQueryInfoKey(
hKey, // key handle hKey, // key handle
......
...@@ -8,8 +8,14 @@ ...@@ -8,8 +8,14 @@
#include <map> #include <map>
#include <memory> #include <memory>
/**
* \class PluginLoader
* This class loads Qt-Plugins, the related metadata and files the plugin depends on.
* \author Hauke Mönck, Gregor Barth
*/
class PluginLoader : QObject class PluginLoader : QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
explicit PluginLoader(QObject *parent = 0); explicit PluginLoader(QObject *parent = 0);
...@@ -29,7 +35,8 @@ public: ...@@ -29,7 +35,8 @@ public:
QStringListModel* getPluginList(); QStringListModel* getPluginList();
/** /**
* Loads a BioTracker Plugin from a filpaht. It returns true if the Plugin could be loaded, otherwise false. * Loads a BioTracker Plugin from a file path. It returns true if the Plugin could be loaded, otherwise false.
* The loaded plugin acts as singleton!
*/ */
bool loadPluginFromFilename(QString const& filename); bool loadPluginFromFilename(QString const& filename);
...@@ -95,4 +102,4 @@ private: ...@@ -95,4 +102,4 @@ private:
QStringListModel* m_PluginListModel; QStringListModel* m_PluginListModel;
}; };
#endif // PLUGINLOADER_H #endif // PLUGINLOADER_H
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment