~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/dlls/shdocvw/urlhist.c

Version: ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

  1 /*
  2  * Copyright 2006 Jacek Caban for CodeWeavers
  3  *
  4  * This library is free software; you can redistribute it and/or
  5  * modify it under the terms of the GNU Lesser General Public
  6  * License as published by the Free Software Foundation; either
  7  * version 2.1 of the License, or (at your option) any later version.
  8  *
  9  * This library is distributed in the hope that it will be useful,
 10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 12  * Lesser General Public License for more details.
 13  *
 14  * You should have received a copy of the GNU Lesser General Public
 15  * License along with this library; if not, write to the Free Software
 16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 17  */
 18 
 19 #include "wine/debug.h"
 20 #include "shdocvw.h"
 21 #include "urlhist.h"
 22 
 23 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
 24 
 25 static HRESULT WINAPI UrlHistoryStg_QueryInterface(IUrlHistoryStg2 *iface, REFIID riid, void **ppv)
 26 {
 27     *ppv = NULL;
 28 
 29     if(IsEqualGUID(&IID_IUnknown, riid)) {
 30         TRACE("(IID_IUnknown %p)\n", ppv);
 31         *ppv = iface;
 32     }else if(IsEqualGUID(&IID_IUrlHistoryStg, riid)) {
 33         TRACE("(IID_IUrlHistoryStg %p)\n", ppv);
 34         *ppv = iface;
 35     }else if(IsEqualGUID(&IID_IUrlHistoryStg2, riid)) {
 36         TRACE("(IID_IUrlHistoryStg2 %p)\n", ppv);
 37         *ppv = iface;
 38     }
 39 
 40     if(*ppv) {
 41         IUnknown_AddRef((IUnknown*)*ppv);
 42         return S_OK;
 43     }
 44 
 45     WARN("(%s %p)\n", debugstr_guid(riid), ppv);
 46     return E_NOINTERFACE;
 47 }
 48 
 49 static ULONG WINAPI UrlHistoryStg_AddRef(IUrlHistoryStg2 *iface)
 50 {
 51     SHDOCVW_LockModule();
 52     return 2;
 53 }
 54 
 55 static ULONG WINAPI UrlHistoryStg_Release(IUrlHistoryStg2 *iface)
 56 {
 57     SHDOCVW_UnlockModule();
 58     return 1;
 59 }
 60 
 61 static HRESULT WINAPI UrlHistoryStg_AddUrl(IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl,
 62         LPCOLESTR pocsTitle, DWORD dwFlags)
 63 {
 64     FIXME("(%s %s %08x)\n", debugstr_w(lpcsUrl), debugstr_w(pocsTitle), dwFlags);
 65     return E_NOTIMPL;
 66 }
 67 
 68 static HRESULT WINAPI UrlHistoryStg_DeleteUrl(IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl,
 69         DWORD dwFlags)
 70 {
 71     FIXME("(%s %08x)\n", debugstr_w(lpcsUrl), dwFlags);
 72     return E_NOTIMPL;
 73 }
 74 
 75 static HRESULT WINAPI UrlHistoryStg_QueryUrl(IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl,
 76         DWORD dwFlags, LPSTATURL lpSTATURL)
 77 {
 78     FIXME("(%s %08x %p)\n", debugstr_w(lpcsUrl), dwFlags, lpSTATURL);
 79     return E_NOTIMPL;
 80 }
 81 
 82 static HRESULT WINAPI UrlHistoryStg_BindToObject(IUrlHistoryStg2 *iface, LPCOLESTR lpcsUrl,
 83         REFIID riid, void **ppv)
 84 {
 85     FIXME("(%s %s %p)\n", debugstr_w(lpcsUrl), debugstr_guid(riid), ppv);
 86     return E_NOTIMPL;
 87 }
 88 
 89 static HRESULT WINAPI UrlHistoryStg_EnumUrls(IUrlHistoryStg2 *iface, IEnumSTATURL **ppEnum)
 90 {
 91     FIXME("(%p)\n", ppEnum);
 92     return E_NOTIMPL;
 93 }
 94 
 95 static HRESULT WINAPI UrlHistoryStg_AddUrlAndNotify(IUrlHistoryStg2 *iface, LPCOLESTR pocsUrl,
 96         LPCOLESTR pocsTitle, DWORD dwFlags, BOOL fWriteHistory, IOleCommandTarget *poctNotify,
 97         IUnknown *punkISFolder)
 98 {
 99     FIXME("(%s %s %08x %x %p %p)\n", debugstr_w(pocsUrl), debugstr_w(pocsTitle),
100           dwFlags, fWriteHistory, poctNotify, punkISFolder);
101     return E_NOTIMPL;
102 }
103 
104 static HRESULT WINAPI UrlHistoryStg_ClearHistory(IUrlHistoryStg2 *iface)
105 {
106     FIXME("()\n");
107     return E_NOTIMPL;
108 }
109 
110 static const IUrlHistoryStg2Vtbl UrlHistoryStg2Vtbl = {
111     UrlHistoryStg_QueryInterface,
112     UrlHistoryStg_AddRef,
113     UrlHistoryStg_Release,
114     UrlHistoryStg_AddUrl,
115     UrlHistoryStg_DeleteUrl,
116     UrlHistoryStg_QueryUrl,
117     UrlHistoryStg_BindToObject,
118     UrlHistoryStg_EnumUrls,
119     UrlHistoryStg_AddUrlAndNotify,
120     UrlHistoryStg_ClearHistory
121 };
122 
123 static IUrlHistoryStg2 UrlHistoryStg2 = { &UrlHistoryStg2Vtbl };
124 
125 HRESULT CUrlHistory_Create(IUnknown *pOuter, REFIID riid, void **ppv)
126 {
127     if(pOuter)
128         return CLASS_E_NOAGGREGATION;
129 
130     return IUrlHistoryStg_QueryInterface(&UrlHistoryStg2, riid, ppv);
131 }
132 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.