*not part of the buld*
blackConnect tests update git-svn-id: svn://10.0.0.236/trunk@99925 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -5,9 +5,19 @@
|
||||
#ifndef __gen_iMThreadContext_h__
|
||||
#define __gen_iMThreadContext_h__
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsIComponentManager.h"
|
||||
|
||||
#ifndef __gen_nsISupports_h__
|
||||
#include "nsISupports.h"
|
||||
#endif
|
||||
|
||||
#ifndef __gen_nsIComponentManager_h__
|
||||
#include "nsIComponentManager.h"
|
||||
#endif
|
||||
|
||||
/* For IDL files that don't want to include root IDL files. */
|
||||
#ifndef NS_NO_VTABLE
|
||||
#define NS_NO_VTABLE
|
||||
#endif
|
||||
|
||||
/* starting interface: iMThreadContext */
|
||||
#define IMTHREADCONTEXT_IID_STR "a7b26685-9816-4eb6-a075-36f539a7a823"
|
||||
@@ -21,8 +31,20 @@ class NS_NO_VTABLE iMThreadContext : public nsISupports {
|
||||
|
||||
NS_DEFINE_STATIC_IID_ACCESSOR(IMTHREADCONTEXT_IID)
|
||||
|
||||
/* string GetNext (); */
|
||||
NS_IMETHOD GetNext(char **_retval) = 0;
|
||||
/* long GetStages (); */
|
||||
NS_IMETHOD GetStages(PRInt32 *_retval) = 0;
|
||||
|
||||
/* long GetThreads (); */
|
||||
NS_IMETHOD GetThreads(PRInt32 *_retval) = 0;
|
||||
|
||||
/* string GetResFile (); */
|
||||
NS_IMETHOD GetResFile(char **_retval) = 0;
|
||||
|
||||
/* string GetPath (in boolean i); */
|
||||
NS_IMETHOD GetPath(PRBool i, char **_retval) = 0;
|
||||
|
||||
/* string GetContractID (in long i, in long j); */
|
||||
NS_IMETHOD GetContractID(PRInt32 i, PRInt32 j, char **_retval) = 0;
|
||||
|
||||
/* nsIComponentManager GetComponentManager (); */
|
||||
NS_IMETHOD GetComponentManager(nsIComponentManager **_retval) = 0;
|
||||
@@ -31,14 +53,31 @@ class NS_NO_VTABLE iMThreadContext : public nsISupports {
|
||||
|
||||
/* Use this macro when declaring classes that implement this interface. */
|
||||
#define NS_DECL_IMTHREADCONTEXT \
|
||||
NS_IMETHOD GetNext(char **_retval); \
|
||||
NS_IMETHOD GetStages(PRInt32 *_retval); \
|
||||
NS_IMETHOD GetThreads(PRInt32 *_retval); \
|
||||
NS_IMETHOD GetResFile(char **_retval); \
|
||||
NS_IMETHOD GetPath(PRBool i, char **_retval); \
|
||||
NS_IMETHOD GetContractID(PRInt32 i, PRInt32 j, char **_retval); \
|
||||
NS_IMETHOD GetComponentManager(nsIComponentManager **_retval);
|
||||
|
||||
/* Use this macro to declare functions that forward the behavior of this interface to another object. */
|
||||
#define NS_FORWARD_IMTHREADCONTEXT(_to) \
|
||||
NS_IMETHOD GetNext(char **_retval) { return _to ## GetNext(_retval); } \
|
||||
NS_IMETHOD GetStages(PRInt32 *_retval) { return _to ## GetStages(_retval); } \
|
||||
NS_IMETHOD GetThreads(PRInt32 *_retval) { return _to ## GetThreads(_retval); } \
|
||||
NS_IMETHOD GetResFile(char **_retval) { return _to ## GetResFile(_retval); } \
|
||||
NS_IMETHOD GetPath(PRBool i, char **_retval) { return _to ## GetPath(i, _retval); } \
|
||||
NS_IMETHOD GetContractID(PRInt32 i, PRInt32 j, char **_retval) { return _to ## GetContractID(i, j, _retval); } \
|
||||
NS_IMETHOD GetComponentManager(nsIComponentManager **_retval) { return _to ## GetComponentManager(_retval); }
|
||||
|
||||
/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
|
||||
#define NS_FORWARD_SAFE_IMTHREADCONTEXT(_to) \
|
||||
NS_IMETHOD GetStages(PRInt32 *_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetStages(_retval); } \
|
||||
NS_IMETHOD GetThreads(PRInt32 *_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetThreads(_retval); } \
|
||||
NS_IMETHOD GetResFile(char **_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetResFile(_retval); } \
|
||||
NS_IMETHOD GetPath(PRBool i, char **_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetPath(i, _retval); } \
|
||||
NS_IMETHOD GetContractID(PRInt32 i, PRInt32 j, char **_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetContractID(i, j, _retval); } \
|
||||
NS_IMETHOD GetComponentManager(nsIComponentManager **_retval) { return !_to ## ? NS_ERROR_NULL_POINTER : _to ##-> GetComponentManager(_retval); }
|
||||
|
||||
#if 0
|
||||
/* Use the code below as a template for the implementation class for this interface. */
|
||||
|
||||
@@ -68,8 +107,32 @@ _MYCLASS_::~_MYCLASS_()
|
||||
/* destructor code */
|
||||
}
|
||||
|
||||
/* string GetNext (); */
|
||||
NS_IMETHODIMP _MYCLASS_::GetNext(char **_retval)
|
||||
/* long GetStages (); */
|
||||
NS_IMETHODIMP _MYCLASS_::GetStages(PRInt32 *_retval)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
/* long GetThreads (); */
|
||||
NS_IMETHODIMP _MYCLASS_::GetThreads(PRInt32 *_retval)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
/* string GetResFile (); */
|
||||
NS_IMETHODIMP _MYCLASS_::GetResFile(char **_retval)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
/* string GetPath (in boolean i); */
|
||||
NS_IMETHODIMP _MYCLASS_::GetPath(PRBool i, char **_retval)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
/* string GetContractID (in long i, in long j); */
|
||||
NS_IMETHODIMP _MYCLASS_::GetContractID(PRInt32 i, PRInt32 j, char **_retval)
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
@@ -90,6 +153,6 @@ NS_IMETHODIMP _MYCLASS_::GetComponentManager(nsIComponentManager **_retval)
|
||||
0x46d0, \
|
||||
{0x8a, 0xfc, 0xf1, 0x93, 0x91, 0x73, 0xc2, 0xea} \
|
||||
}
|
||||
#define MTHREADCONTEXT_PROGID "component://netscape/blackwood/blackconnect/test/mthreads/MThreadContext"
|
||||
#define MTHREADCONTEXT_PROGID "@mozilla/blackwood/blackconnect/test/params/MThreadContext;1"
|
||||
|
||||
#endif /* __gen_iMThreadContext_h__ */
|
||||
|
||||
Reference in New Issue
Block a user