Changeset 36536 in vbox for trunk/include/VBox/com
- Timestamp:
- Apr 4, 2011 3:43:40 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70962
- Location:
- trunk/include/VBox/com
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/errorprint.h
r33766 r36536 28 28 #ifndef ___VBox_com_errorprint_h 29 29 #define ___VBox_com_errorprint_h 30 31 #include <VBox/com/ErrorInfo.h> 30 32 31 33 namespace com -
trunk/include/VBox/com/listeners.h
r35724 r36536 1 1 /* $Id$ */ 2 2 /** @file 3 *4 3 * Listeners helpers. 5 4 */ 6 5 7 6 /* 8 * Copyright (C) 2010 Oracle Corporation7 * Copyright (C) 2010-2011 Oracle Corporation 9 8 * 10 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 28 27 #ifndef ___VBox_com_listeners_h 29 28 #define ___VBox_com_listeners_h 29 30 30 #include <VBox/com/com.h> 31 #include <VBox/com/ defs.h>31 #include <VBox/com/VirtualBox.h> 32 32 33 33 #ifdef VBOX_WITH_XPCOM 34 #define NS_IMPL_QUERY_HEAD_INLINE() \ 35 NS_IMETHODIMP QueryInterface(REFNSIID aIID, void** aInstancePtr) \ 36 { \ 37 NS_ASSERTION(aInstancePtr, \ 38 "QueryInterface requires a non-NULL destination!"); \ 39 nsISupports* foundInterface; 40 #define NS_INTERFACE_MAP_BEGIN_INLINE() NS_IMPL_QUERY_HEAD_INLINE() 41 #define NS_IMPL_QUERY_INTERFACE1_INLINE(_i1) \ 42 NS_INTERFACE_MAP_BEGIN_INLINE() \ 43 NS_INTERFACE_MAP_ENTRY(_i1) \ 44 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, _i1) \ 45 NS_INTERFACE_MAP_END 34 # define NS_IMPL_QUERY_HEAD_INLINE() \ 35 NS_IMETHODIMP QueryInterface(REFNSIID aIID, void **aInstancePtr) \ 36 { \ 37 NS_ASSERTION(aInstancePtr, "QueryInterface requires a non-NULL destination!"); \ 38 nsISupports *foundInterface; 39 40 # define NS_INTERFACE_MAP_BEGIN_INLINE() NS_IMPL_QUERY_HEAD_INLINE() 41 42 # define NS_IMPL_QUERY_INTERFACE1_INLINE(a_i1) \ 43 NS_INTERFACE_MAP_BEGIN_INLINE() \ 44 NS_INTERFACE_MAP_ENTRY(a_i1) \ 45 NS_INTERFACE_MAP_ENTRY_AMBIGUOUS(nsISupports, a_i1) \ 46 NS_INTERFACE_MAP_END 46 47 #endif 47 48 48 template <class T, class TParam = void *>49 template <class T, class TParam = void *> 49 50 class ListenerImpl : 50 51 public CComObjectRootEx<CComMultiThreadModel>, … … 163 164 164 165 #ifdef VBOX_WITH_XPCOM 165 # define VBOX_LISTENER_DECLARE(klazz) NS_DECL_CLASSINFO(klazz)166 # define VBOX_LISTENER_DECLARE(klazz) NS_DECL_CLASSINFO(klazz) 166 167 #else 167 # define VBOX_LISTENER_DECLARE(klazz)168 # define VBOX_LISTENER_DECLARE(klazz) 168 169 #endif 169 170
Note:
See TracChangeset
for help on using the changeset viewer.