2008-09-18 03:15:49 +00:00
|
|
|
#include "..\\Settings.h"
|
|
|
|
|
2008-11-14 20:51:06 +00:00
|
|
|
class CPluginList
|
|
|
|
{
|
|
|
|
public:
|
2015-10-25 11:10:54 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
2008-11-14 20:51:06 +00:00
|
|
|
PLUGIN_INFO Info;
|
|
|
|
bool AboutFunction;
|
|
|
|
CPath FullPath;
|
|
|
|
stdstr FileName;
|
|
|
|
} PLUGIN;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CPluginList(bool bAutoFill = true);
|
|
|
|
~CPluginList();
|
|
|
|
|
|
|
|
bool LoadList ( void );
|
|
|
|
int GetPluginCount ( void ) const;
|
|
|
|
const PLUGIN * GetPluginInfo ( int indx ) const;
|
2012-10-06 13:57:18 +00:00
|
|
|
static bool ValidPluginVersion ( PLUGIN_INFO & PluginInfo );
|
2015-10-25 11:10:54 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
typedef std::vector<PLUGIN> PluginList;
|
|
|
|
|
|
|
|
PluginList m_PluginList;
|
|
|
|
CPath m_PluginDir;
|
|
|
|
|
|
|
|
void AddPluginFromDir(CPath Dir);
|
2008-11-14 20:51:06 +00:00
|
|
|
};
|