1#ifndef __SATTRSTORAGE_I__H__
2#define __SATTRSTORAGE_I__H__
3#include <interface/obj-ref-i.h>
4#include <interface/sstring-i.h>
8typedef struct IWindow IWindow;
11#define INTERFACE IAttrStorage
12DECLARE_INTERFACE_(IAttrStorage,
IObjRef)
18 STDMETHOD_(
long, AddRef)(THIS) PURE;
24 STDMETHOD_(
long, Release)(THIS) PURE;
30 STDMETHOD_(
void, OnFinalRelease)(THIS) PURE;
41 STDMETHOD_(
void, OnSetAttribute)
42 (THIS_
const IStringW *strName,
const IStringW *strValue, BOOL bHandled) PURE;
50 STDMETHOD_(BOOL, OnGetAttribute)(CTHIS_
const IStringW *strName, IStringW *strValue) SCONST PURE;
54#define INTERFACE IAttrStorageFactory
55DECLARE_INTERFACE_(IAttrStorageFactory,
IObjRef)
61 STDMETHOD_(
long, AddRef)(THIS) PURE;
67 STDMETHOD_(
long, Release)(THIS) PURE;
73 STDMETHOD_(
void, OnFinalRelease)(THIS) PURE;
83 STDMETHOD_(HRESULT, CreateAttrStorage)
84 (CTHIS_ IWindow * owner, IAttrStorage * *ppAttrStorage) SCONST PURE;
Interface for reference counting.