aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_online/commands.h
blob: 79aec555c222e5e2345f32396a87b3df1b6b24bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef NULLOSFT_ONLINEMEDIA_PLUGIN_COMMANDS_HEADER
#define NULLOSFT_ONLINEMEDIA_PLUGIN_COMMANDS_HEADER

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

#include <wtypes.h>

class ifc_omservice;

// returns TRUE if command was handled (fSuccess will have result code if not NULL).

HRESULT Command_NavigateService(ifc_omservice *service, LPCWSTR pszUrl, BOOL fActiveOnly);
BOOL Command_ProcessService(HWND hView, ifc_omservice *service, INT commandId, BOOL *fSuccess); 
BOOL Command_ProcessView(HWND hView, INT commandId, BOOL *fSuccess); 
BOOL Command_ProcessGeneral(INT commandId, BOOL *fSuccess);

BOOL Command_ReportService(ifc_omservice *service);
BOOL Command_UnsubscribeService(ifc_omservice *service);
BOOL Command_ShowServiceInfo(ifc_omservice *service);
BOOL Command_ResetServicePolicy(ifc_omservice *service);
BOOL Command_ResetSubscription();
BOOL Command_SetServiceRating(ifc_omservice *service, INT rating);
HRESULT Command_CreateService(void);
BOOL Command_OpenServiceView(ifc_omservice *service);
BOOL Command_OpenServicePopup(ifc_omservice *service);

#endif //NULLOSFT_ONLINEMEDIA_PLUGIN_COMMANDS_HEADER