Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

66 lines
2.2 KiB

//-----------------------------------------------------------------------------
//
// File: _espopts.h
// Copyright (C) 1994-1997 Microsoft Corporation
// All rights reserved.
//
//
//
//-----------------------------------------------------------------------------
#if !defined(LOCUTIL__espopts_h_INCLUDED)
#define LOCUTIL__espopts_h_INCLUDED
LTAPIENTRY BOOL RegisterOptions(CLocUIOptionSet *);
LTAPIENTRY void UnRegisterOptions(const TCHAR *szName);
LTAPIENTRY BOOL GetOptionValue(const TCHAR *szName, CLocOptionVal *&);
LTAPIENTRY BOOL GetGroupName(const TCHAR * szName, CLString & strGroup);
LTAPIENTRY BOOL SetOptionDefault(const TCHAR *szName, const CLocVariant &);
LTAPIENTRY const CLocUIOptionSetList & GetOptions(void);
LTAPIENTRY CLocOptionValStore * GetOptionStore(CLocUIOption::StorageType);
LTAPIENTRY void SetOptionStore(CLocUIOption::StorageType, CLocOptionValStore *);
LTAPIENTRY void UpdateOptionValues(void);
LTAPIENTRY void SummarizeOptions(CReport *);
#pragma warning(disable : 4251) // class 'foo' needs to have dll-interface
// to be used by clients of class 'bar'
class LTAPIENTRY CLocOptionManager
{
public:
const CLocUIOptionSetList &GetOptions(void);
CLocOptionValStore *GetOptionStore(CLocUIOption::StorageType);
void SetOptionStore(CLocUIOption::StorageType, CLocOptionValStore *);
BOOL RegisterOptions(CLocUIOptionSet *);
void UnRegisterOptions(const TCHAR *szOptSetName);
BOOL GetOptionValue(const TCHAR *szName, CLocOptionVal *&);
BOOL GetOptionValue(const TCHAR *szGroupName, const TCHAR *szName,
CLocOptionVal *&);
void UpdateOptionValues(void);
void SummarizeOptionValues(CReport *pReport);
BOOL SetOptionDefault(const TCHAR *szName, const
CLocVariant &varValue);
void UpdateCurrentValue(CLocUIOption *pOption);
BOOL GetGroupName(const TCHAR* szName, CLString& strGroup);
protected:
void NotifyAll(void);
void GetCurrentValue(CLocUIOption *, CLocOptionVal *&);
void DumpOptionSet(CLocUIOptionSet *, UINT, CReport *);
private:
CLocUIOptionSetList m_osOptSetList;
SmartRef<CLocOptionValStore> m_spUserStore;
SmartRef<CLocOptionValStore> m_spOverrideStore;
};
#pragma warning(default : 4251)
#endif // LOCUTIL__espopts_h_INCLUDED