mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 16:55:46 -04:00
Initial community commit
This commit is contained in:
43
Src/albumart/ParamList.h
Normal file
43
Src/albumart/ParamList.h
Normal file
@ -0,0 +1,43 @@
|
||||
#pragma once
|
||||
#include "../xml/ifc_xmlreaderparams.h"
|
||||
#include <vector>
|
||||
|
||||
class ParamList : public ifc_xmlreaderparams
|
||||
{
|
||||
public:
|
||||
ParamList() {}
|
||||
~ParamList();
|
||||
|
||||
const wchar_t *getItemName(int i);
|
||||
const wchar_t *getItemValueIndex(int i);
|
||||
const wchar_t *getItemValue(const wchar_t *name);
|
||||
const wchar_t *enumItemValues(const wchar_t *name, int nb);
|
||||
int getItemValueInt(const wchar_t *name, int def = 0);
|
||||
size_t getNbItems();
|
||||
|
||||
void addItem(const wchar_t *parm, const wchar_t *value);
|
||||
void removeItem(const wchar_t *parm);
|
||||
int findItem(const wchar_t *parm);
|
||||
|
||||
protected:
|
||||
RECVS_DISPATCH;
|
||||
private:
|
||||
struct parms_struct
|
||||
{
|
||||
parms_struct() : parm(0), ownValue(false)
|
||||
{
|
||||
value=0;
|
||||
}
|
||||
|
||||
~parms_struct()
|
||||
{
|
||||
if (ownValue)
|
||||
free((wchar_t *)parm);
|
||||
free(value);
|
||||
}
|
||||
const wchar_t *parm;
|
||||
wchar_t *value;
|
||||
bool ownValue;
|
||||
};
|
||||
std::vector<parms_struct*> parms_list;
|
||||
};
|
Reference in New Issue
Block a user