[Common-cvs] include ihxcontextuser.h, NONE, 1.1 hxiids.h, 1.87, 1.88 hxplugn.h, 1.9, 1.10
ping at helixcommunity.org ping at helixcommunity.orgUpdate of /cvsroot/common/include In directory cvs:/tmp/cvs-serv19889 Modified Files: hxiids.h hxplugn.h Added Files: ihxcontextuser.h Log Message: moved IHXContextUser definition to ihxcontextuser.h --- NEW FILE: ihxcontextuser.h --- /* ***** BEGIN LICENSE BLOCK ***** * Source last modified: $Id: ihxcontextuser.h,v 1.1 2005/12/15 18:10:14 ping Exp $ * * Portions Copyright (c) 1995-2004 RealNetworks, Inc. All Rights Reserved. * * The contents of this file, and the files included with this file, * are subject to the current version of the RealNetworks Public * Source License (the "RPSL") available at * http://www.helixcommunity.org/content/rpsl unless you have licensed * the file under the current version of the RealNetworks Community * Source License (the "RCSL") available at * http://www.helixcommunity.org/content/rcsl, in which case the RCSL * will apply. You may also obtain the license terms directly from * RealNetworks. You may not use this file except in compliance with * the RPSL or, if you have a valid RCSL with RealNetworks applicable * to this file, the RCSL. Please see the applicable RPSL or RCSL for * the rights, obligations and limitations governing use of the * contents of the file. * * Alternatively, the contents of this file may be used under the * terms of the GNU General Public License Version 2 or later (the * "GPL") in which case the provisions of the GPL are applicable * instead of those above. If you wish to allow use of your version of * this file only under the terms of the GPL, and not to allow others * to use your version of this file under the terms of either the RPSL * or RCSL, indicate your decision by deleting the provisions above * and replace them with the notice and other provisions required by * the GPL. If you do not delete the provisions above, a recipient may * use your version of this file under the terms of any one of the * RPSL, the RCSL or the GPL. * * This file is part of the Helix DNA Technology. RealNetworks is the * developer of the Original Code and owns the copyrights in the * portions it created. * * This file, and the files included with this file, is distributed * and made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY * KIND, EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS * ALL SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET * ENJOYMENT OR NON-INFRINGEMENT. * * Technology Compatibility Kit Test Suite(s) Location: * http://www.helixcommunity.org/content/tck * * Contributor(s): * * ***** END LICENSE BLOCK ***** */ #ifndef _IHXCONTEXTUSER_H #define _IHXCONTEXTUSER_H #include "hxcom.h" #include "hxcomptr.h" /*! @singletype IHXContextUser @abstract Support for automatic initialization of components @discussion This interface should be implemented by components that wish to make use of the object broker system. When the object broker creates a new instance of an object, it queries it for this interface. If the object supports IHXContextUser, RegisterContext() is called passing the appropriate context as a parameter. If multiple levels of object managers are being used to provide scope, the object broker always initializes a new component with the context representing the scope in which the new component has been created. */ // {FCB59961-B347-11d3-87EB-009027902B2D} DEFINE_GUID(IID_IHXContextUser, 0xfcb59961, 0xb347, 0x11d3, 0x87, 0xeb, 0x0, 0x90, 0x27, 0x90, 0x2b, 0x2d); #undef INTERFACE #define INTERFACE IHXContextUser DECLARE_INTERFACE_(IHXContextUser, IUnknown) { /*! @function RegisterContext @abstract Support for automatic initialization. @param pIContext [in] This component should use this context to retrieve required services and interfaces @result The component should return HXR_OK if initialization is successful */ STDMETHOD (RegisterContext)(THIS_ IUnknown* pIContext) PURE; }; DEFINE_SMART_PTR(IHXContextUser); #endif // _IHXCONTEXTUSER_H Index: hxiids.h =================================================================== RCS file: /cvsroot/common/include/hxiids.h,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- hxiids.h 13 Dec 2005 23:06:54 -0000 1.87 +++ hxiids.h 15 Dec 2005 18:10:14 -0000 1.88 @@ -606,14 +606,17 @@ DEFINE_GUID_ENUM(IID_IHXPluginQuery, 0x00000C06, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59) DEFINE_GUID_ENUM(IID_IHXGenericPlugin, 0x00000C09, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59) DEFINE_GUID_ENUM(IID_IHXProxiedPlugin, 0x00000C0A, 0x901, 0x11d1, 0x8b, 0x6, 0x0, 0xa0, 0x24, 0x40, 0x6d, 0x59) - DEFINE_GUID_ENUM(IID_IHXPluginHandler3, 0x32b19771, 0x2299, 0x11d4, 0x95, 0x3, 0x0, 0x90, 0x27, 0x90, 0x29, 0x9c) DEFINE_GUID_ENUM(IID_IHXComponentPlugin, 0xf8a31571, 0x22ac, 0x11d4, 0x95, 0x3, 0x0, 0x90, 0x27, 0x90, 0x29, 0x9c) DEFINE_GUID_ENUM(IID_IHXPluginNamespace, 0xf09e8891, 0x8e2d, 0x11d4, 0x82, 0xdb, 0x0, 0xd0, 0xb7, 0x4c, 0x2d, 0x25) -DEFINE_GUID_ENUM(IID_IHXContextUser, 0xfcb59961, 0xb347, 0x11d3, 0x87, 0xeb, 0x0, 0x90, 0x27, 0x90, 0x2b, 0x2d) DEFINE_GUID_ENUM( IID_IHXPluginDatabase, 0xc2c65401, 0xa478, 0x11d4, 0x95, 0x18, 0x0, 0x90, 0x27, 0x90, 0x29, 0x9c) // $EndPrivate. #endif + +#ifndef _IHXCONTEXTUSER_H +DEFINE_GUID_ENUM(IID_IHXContextUser, 0xfcb59961, 0xb347, 0x11d3, 0x87, 0xeb, 0x0, 0x90, 0x27, 0x90, 0x2b, 0x2d) +#endif + /* * File: * hxwin.h Index: hxplugn.h =================================================================== RCS file: /cvsroot/common/include/hxplugn.h,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- hxplugn.h 13 Dec 2005 18:34:30 -0000 1.9 +++ hxplugn.h 15 Dec 2005 18:10:14 -0000 1.10 @@ -1457,40 +1457,6 @@ }; // $EndPrivate. -/*! - @singletype IHXContextUser - @abstract Support for automatic initialization of components - @discussion - This interface should be implemented by components that wish to make - use of the object broker system. - - When the object broker creates a new instance of an object, it queries - it for this interface. If the object supports IHXContextUser, - RegisterContext() is called passing the appropriate context as a - parameter. - - If multiple levels of object managers are being used to provide scope, the - object broker always initializes a new component with the context - representing the scope in which the new component has been created. - */ - -// {FCB59961-B347-11d3-87EB-009027902B2D} -DEFINE_GUID(IID_IHXContextUser, 0xfcb59961, 0xb347, 0x11d3, 0x87, 0xeb, 0x0, 0x90, 0x27, 0x90, 0x2b, 0x2d); - -#undef INTERFACE -#define INTERFACE IHXContextUser - -DECLARE_INTERFACE_(IHXContextUser, IUnknown) -{ - /*! - @function RegisterContext - @abstract Support for automatic initialization. - @param pIContext [in] This component should use this context to retrieve required services and interfaces - @result The component should return HXR_OK if initialization is successful - */ - STDMETHOD (RegisterContext) (THIS_ IUnknown* pIContext) PURE; -}; - #include "hxcomptr.h" DEFINE_SMART_PTR(IHXPlugin) DEFINE_SMART_PTR(IHXPluginEnumerator) @@ -1507,6 +1473,5 @@ DEFINE_SMART_PTR(IHXProxiedPlugin) DEFINE_SMART_PTR(IHXComponentPlugin) DEFINE_SMART_PTR(IHXPluginNamespace) -DEFINE_SMART_PTR(IHXContextUser) #endif /* _HXPLUGN_H_ */