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.
53 lines
1.2 KiB
53 lines
1.2 KiB
/**********************************************************************/
|
|
/** Microsoft Passport **/
|
|
/** Copyright(c) Microsoft Corporation, 1999 - 2001 **/
|
|
/**********************************************************************/
|
|
|
|
/*
|
|
ppshadowdocument.h
|
|
|
|
|
|
FILE HISTORY:
|
|
|
|
*/
|
|
#ifndef __PPSHADOWDOCUMENT_H
|
|
#define __PPSHADOWDOCUMENT_H
|
|
|
|
#include <msxml.h>
|
|
|
|
#include "tstring"
|
|
|
|
using namespace std;
|
|
|
|
//
|
|
//
|
|
// shadowdocument manages a shadow local CCD
|
|
//
|
|
//
|
|
class PpShadowDocument
|
|
{
|
|
public:
|
|
|
|
PpShadowDocument();
|
|
PpShadowDocument(tstring& strURL);
|
|
PpShadowDocument(tstring& strURL, tstring& strLocalFile);
|
|
|
|
void SetURL(tstring& strURL);
|
|
void SetLocalFile(tstring& strLocalFile);
|
|
|
|
HRESULT GetDocument(IXMLDocument** ppiXMLDocument, BOOL bForceFetch = TRUE);
|
|
|
|
private:
|
|
|
|
BOOL IsValidCCD(IXMLDocument* piXMLDocument);
|
|
BOOL NoPersist(IXMLDocument* piXMLDocument);
|
|
|
|
HRESULT SaveDocument(IXMLDocument* piXMLDocument);
|
|
HRESULT LoadDocument(IXMLDocument** ppiXMLDocument);
|
|
|
|
tstring m_strURL;
|
|
tstring m_strLocalFile;
|
|
bool m_bFailing;
|
|
};
|
|
|
|
#endif // __PPSHADOWDOCUMENT_H
|