diff options
| author | David Spruill <[email protected]> | 2026-01-08 17:51:47 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-01-08 17:51:47 -0500 |
| commit | c5fc3ca1fd0e00a7e085ef48abfeff9c0c39817e (patch) | |
| tree | 0e650a0fee8027816bbea82ca1fd9b8e3e6ee24a /wpd/WpdServiceSampleDriver/FakeContactContent.h | |
| parent | f88e4fbbd4d2671e5cd77e4f60be7a235326797e (diff) | |
| parent | ed3dbe56378117a15105099870f2397671ad99ab (diff) | |
Merge branch 'develop' into user/daspr/kmodsamplefix
Diffstat (limited to 'wpd/WpdServiceSampleDriver/FakeContactContent.h')
| -rw-r--r-- | wpd/WpdServiceSampleDriver/FakeContactContent.h | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/wpd/WpdServiceSampleDriver/FakeContactContent.h b/wpd/WpdServiceSampleDriver/FakeContactContent.h deleted file mode 100644 index 1b2d8dfb..00000000 --- a/wpd/WpdServiceSampleDriver/FakeContactContent.h +++ /dev/null @@ -1,77 +0,0 @@ -#pragma once - -/** - * This class represents an abstraction of a contact content object - * Driver implementors should replace this with their own - * device I/O classes/libraries. - */ - -class FakeContactContent : public FakeContent -{ -public: - FakeContactContent() - { - Format = FORMAT_AbstractContact; - ContentType = WPD_CONTENT_TYPE_CONTACT; - RequiredScope = CONTACTS_SERVICE_ACCESS; - CanDelete = true; - VersionIdentifier = 0; - } - - FakeContactContent(const FakeContactContent& src) - { - *this = src; - } - - ~FakeContactContent() - { - } - - FakeContactContent& operator= (const FakeContactContent& src) - { - FamilyName = src.FamilyName; - GivenName = src.GivenName; - VersionIdentifier = src.VersionIdentifier; - - return *this; - } - - HRESULT GetValue( - _In_ REFPROPERTYKEY Key, - _In_ IPortableDeviceValues* pStore); - - HRESULT WriteValue( - _In_ REFPROPERTYKEY Key, - _In_ REFPROPVARIANT Value); - - HRESULT GetPropertyAttributes( - _In_ REFPROPERTYKEY Key, - _In_ IPortableDeviceValues* pAttributes); - - HRESULT GetSupportedProperties( - _In_ IPortableDeviceKeyCollection* pKeys); - - HRESULT WriteValues( - _In_ IPortableDeviceValues* pValues, - _In_ IPortableDeviceValues* pResults, - _Out_ bool* pbObjectChanged); - -private: - void UpdateVersion(); - -public: - // Custom properties defined by the contacts service - CAtlStringW FamilyName; - CAtlStringW GivenName; - -private: - // Indicates whether the object has been updated - DWORD VersionIdentifier; -}; - -HRESULT GetSupportedContactProperties( - _In_ IPortableDeviceKeyCollection* pKeys); - -HRESULT GetContactPropertyAttributes( - _In_ REFPROPERTYKEY Key, - _In_ IPortableDeviceValues* pAttributes); |
