blob: 8fb8289d1eab49623f08f778f235eed6552fd04f (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
#ifndef NULLSOFT_AUTH_LOGINPROVIDER_HEADER
#define NULLSOFT_AUTH_LOGINPROVIDER_HEADER
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#include <wtypes.h>
class LoginTemplate;
class LoginCommand;
class LoginProvider
{
protected:
LoginProvider(const GUID *providerUid);
virtual ~LoginProvider();
public:
static HRESULT CreateInstance(const GUID *providerUid, LoginProvider **instance);
public:
ULONG AddRef();
ULONG Release();
HRESULT IsIdentical(LoginProvider *test);
HRESULT IsValid();
// get
HRESULT GetId(GUID *pId);
HRESULT GetName(LPWSTR pszBuffer, UINT cchBufferMax);
HRESULT GetDescription(LPWSTR pszBuffer, UINT cchBufferMax);
HRESULT GetImagePath(LPWSTR pszBuffer, UINT cchBufferMax);
HRESULT GetTosLink(LPWSTR pszBuffer, UINT cchBufferMax);
HRESULT GetPrivacyLink(LPWSTR pszBuffer, UINT cchBufferMax);
HRESULT GetHelpLink(LPWSTR pszBuffer, UINT cchBufferMax);
HRESULT GetTemplate(LoginTemplate **ppTemplate);
HRESULT GetCommand(LoginCommand **ppCommand);
// set
HRESULT SetName(LPCWSTR pszName);
HRESULT SetDescription(LPCWSTR pszDescription);
HRESULT SetImagePath(LPCWSTR pszImagePath);
HRESULT SetTosLink(LPCWSTR pszUrl);
HRESULT SetPrivacyLink(LPCWSTR pszUrl);
HRESULT SetHelpLink(LPCWSTR pszUrl);
HRESULT SetTemplate(LoginTemplate *pTemplate);
HRESULT SetCommand(LoginCommand *pCommand);
protected:
ULONG ref;
GUID id;
LPWSTR name;
LPWSTR description;
LPWSTR imagePath;
LPWSTR tosUrl;
LPWSTR privacyUrl;
LPWSTR helpUrl;
LoginTemplate *pageTemplate;
LoginCommand *command;
};
#endif //NULLSOFT_AUTH_LOGINPROVIDER_HEADER
|