annotate kdiff3/diff_ext_for_kdiff3/class_factory.h @ 113:7bca1f1340f6 tip

Build fixes for Xcode 10 / Qt 5.12
author Chris Cannam
date Mon, 17 Dec 2018 11:13:01 +0000
parents 08ea9b86c12c
children
rev   line source
joachim99@75 1 /*
joachim99@75 2 * Copyright (c) 2003, Sergey Zorin. All rights reserved.
joachim99@75 3 *
joachim99@75 4 * This software is distributable under the BSD license. See the terms
joachim99@75 5 * of the BSD license in the LICENSE file provided with this software.
joachim99@75 6 *
joachim99@75 7 */
joachim99@75 8
joachim99@75 9 #ifndef __class_factory_h__
joachim99@75 10 #define __class_factory_h__
joachim99@75 11
joachim99@75 12 #include <shlobj.h>
joachim99@75 13 #include <shlguid.h>
joachim99@75 14
joachim99@75 15 class CLASS_FACTORY : public IClassFactory {
joachim99@75 16 public:
joachim99@75 17 CLASS_FACTORY();
joachim99@75 18 virtual ~CLASS_FACTORY();
joachim99@75 19
joachim99@75 20 //IUnknown members
joachim99@75 21 STDMETHODIMP QueryInterface(REFIID, void**);
joachim99@75 22 STDMETHODIMP_(ULONG) AddRef();
joachim99@75 23 STDMETHODIMP_(ULONG) Release();
joachim99@75 24
joachim99@75 25 //ICLASS_FACTORY members
joachim99@75 26 STDMETHODIMP CreateInstance(IUnknown*, REFIID, void**);
joachim99@75 27 STDMETHODIMP LockServer(BOOL);
joachim99@75 28
joachim99@75 29 private:
joachim99@75 30 ULONG _ref_count;
joachim99@75 31 };
joachim99@75 32
joachim99@75 33 #endif //__class_factory_h__