mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-18 13:05:46 -04:00
Initial community commit
This commit is contained in:
54
Src/Plugins/Library/ml_online/Setup/setupLog.h
Normal file
54
Src/Plugins/Library/ml_online/Setup/setupLog.h
Normal file
@ -0,0 +1,54 @@
|
||||
#ifndef NULLOSFT_ONLINEMEDIA_PLUGIN_SETUPLOG_HEADER
|
||||
#define NULLOSFT_ONLINEMEDIA_PLUGIN_SETUPLOG_HEADER
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
||||
#pragma once
|
||||
#endif
|
||||
|
||||
#include <wtypes.h>
|
||||
#include <map>
|
||||
|
||||
class ifc_omservice;
|
||||
|
||||
class SetupLog
|
||||
{
|
||||
public:
|
||||
typedef enum
|
||||
{
|
||||
opUnknown = 0,
|
||||
opServiceAdded = 1,
|
||||
opServiceRemoved = 2,
|
||||
};
|
||||
|
||||
protected:
|
||||
SetupLog();
|
||||
~SetupLog();
|
||||
|
||||
public:
|
||||
static SetupLog *Open();
|
||||
static HRESULT Erase();
|
||||
|
||||
public:
|
||||
ULONG AddRef();
|
||||
ULONG Release();
|
||||
|
||||
HRESULT LogServiceById(UINT serviceUid, UINT operation);
|
||||
HRESULT LogService(ifc_omservice *service, UINT operation);
|
||||
HRESULT Save();
|
||||
HRESULT Send(HANDLE completeEvent);
|
||||
|
||||
BOOL IsOperationSupported(UINT operation);
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
typedef std::map<UINT, UINT> ServiceMap;
|
||||
friend static size_t SetupLog_GetMaxServiceIdCount(SetupLog::ServiceMap *serviceMap);
|
||||
friend static HRESULT SetupLog_FormatServiceId(SetupLog::ServiceMap *serviceMap, INT operation, LPSTR pszBuffer, size_t cchBufferMax);
|
||||
|
||||
protected:
|
||||
ULONG ref;
|
||||
ServiceMap serviceMap;
|
||||
};
|
||||
|
||||
#endif //NULLOSFT_ONLINEMEDIA_PLUGIN_SETUPLOG_HEADER
|
Reference in New Issue
Block a user