Module: wine Branch: master Commit: 6501e2e57b7cb3ce022a95090b218a731770435d URL: http://source.winehq.org/git/wine.git/?a=commit;h=6501e2e57b7cb3ce022a95090b...
Author: Jacek Caban jacek@codeweavers.com Date: Wed Oct 25 23:05:50 2006 +0200
include: Added urlhist.idl.
---
dlls/uuid/uuid.c | 1 + include/.gitignore | 1 + include/Makefile.in | 1 + include/urlhist.idl | 139 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 142 insertions(+), 0 deletions(-)
diff --git a/dlls/uuid/uuid.c b/dlls/uuid/uuid.c index b3c8511..5ee4074 100644 --- a/dlls/uuid/uuid.c +++ b/dlls/uuid/uuid.c @@ -66,6 +66,7 @@ #include "hlink.h" #include "optary.h" #include "indexsrv.h" #include "htiframe.h" +#include "urlhist.h"
/* FIXME: cguids declares GUIDs but does not define their values */
diff --git a/include/.gitignore b/include/.gitignore index d782fca..d3ee3d3 100644 --- a/include/.gitignore +++ b/include/.gitignore @@ -41,6 +41,7 @@ /strmif.h /tom.h /unknwn.h +/urlhist.h /urlmon.h /wtypes.h /xmldom.h diff --git a/include/Makefile.in b/include/Makefile.in index f0f3d52..2e2ddee 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -46,6 +46,7 @@ WINDOWS_IDL_SRCS = \ strmif.idl \ tom.idl \ unknwn.idl \ + urlhist.idl \ urlmon.idl \ wtypes.idl \ xmldom.idl \ diff --git a/include/urlhist.idl b/include/urlhist.idl new file mode 100644 index 0000000..0dde482 --- /dev/null +++ b/include/urlhist.idl @@ -0,0 +1,139 @@ +/* + * Copyright 2006 Jacek Caban for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +import "objidl.idl"; +import "oleidl.idl"; +import "oaidl.idl"; +import "docobj.idl"; +import "servprov.idl"; + +typedef enum _ADDURL_FLAG +{ + ADDURL_FIRST = 0, + ADDURL_ADDTOHISTORYANDCACHE = 0, + ADDURL_ADDTOCACHE = 1, + ADDURL_Max = 0x7fffffff +} ADDURL_FLAG; + +/***************************************************************************** + * IEnumSTATURL interface + */ +[ + object, + uuid(3c374a42-bae4-11cf-bf7d-00aa006946ee), + pointer_default(unique) +] +interface IEnumSTATURL : IUnknown +{ + typedef [unique] IEnumSTATURL *LPENUMSTATURL; + + typedef struct _STATURL + { + DWORD cbSize; + LPWSTR pwcsUrl; + LPWSTR pwcsTitle; + FILETIME ftLastVisited; + FILETIME ftLastUpdated; + FILETIME ftExpires; + DWORD dwFlags; + } STATURL, *LPSTATURL; + + HRESULT Next( + [in] ULONG celt, + [in, out] LPSTATURL rgelt, + [in, out] ULONG *pceltFetched); + + HRESULT Skip([in] ULONG celt); + HRESULT Reset(); + HRESULT Clone([out] IEnumSTATURL **ppenum); + + HRESULT SetFilter( + [in] LPCOLESTR poszFilter, + [in] DWORD dwFlags); +} + +/***************************************************************************** + * IUrlHistoryStg interface + */ +[ + object, + uuid(3c374a41-bae4-11cf-bf7d-00aa006946ee), + pointer_default(unique) +] +interface IUrlHistoryStg : IUnknown +{ + typedef [unique] IUrlHistoryStg *LPURLHISTORYSTG; + + HRESULT AddUrl( + [in] LPCOLESTR pocsUrl, + [in, unique] LPCOLESTR pocsTitle, + [in] DWORD dwFlags); + + HRESULT DeleteUrl( + [in] LPCOLESTR pocsUrl, + [in] DWORD dwFlags); + + HRESULT QueryUrl( + [in] LPCOLESTR pocsUrl, + [in] DWORD dwFlags, + [in, out, unique] LPSTATURL lpSTATURL); + + HRESULT BindToObject( + [in] LPCOLESTR pocsUrl, + [in] REFIID riid, + [out, iid_is(riid)] void **ppvOut); + + HRESULT EnumUrls( + [out] IEnumSTATURL **ppEnum); +} + +/***************************************************************************** + * IUrlHistoryStg2 interface + */ +[ + object, + uuid(afa0dc11-c313-11d0-831a-00c04fd5ae38), + pointer_default(unique) +] +interface IUrlHistoryStg2 : IUrlHistoryStg +{ + typedef [unique] IUrlHistoryStg2 *LPURLHISTORYSTG2; + + HRESULT AddUrlAndNotify( + [in] LPCOLESTR pocsUrl, + [in,unique] LPCOLESTR pocsTitle, + [in] DWORD dwFlags, + [in] BOOL fWriteHistory, + [in] IOleCommandTarget *poctNotify, + [in, unique] IUnknown *punkISFolder); + + HRESULT ClearHistory(); +} + +/***************************************************************************** + * IUrlHistoryNotify interface + */ +[ + object, + uuid(bc40bec1-c493-11d0-831b-00C04fd5ae38), + pointer_default(unique) +] +interface IUrlHistoryNotify : IOleCommandTarget +{ + typedef [unique] IUrlHistoryNotify *LPURLHISTORYNOTIFY; +}