Initial revision. Generated from nsRDFInterfaces.idl.

This commit is contained in:
waterson%netscape.com 1999-03-05 10:49:13 +00:00
parent b3052ec629
commit bdf206486d

View File

@ -0,0 +1,411 @@
/*
* DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../../rdf/base/idl/nsRDFInterfaces.idl
*/
#ifndef __gen_nsRDFInterfaces_h__
#define __gen_nsRDFInterfaces_h__
#include "nsISupports.h" /* interface nsISupports */
#ifdef XPIDL_JS_STUBS
#include "jsapi.h"
#endif
/* starting interface nsIRDFNode */
/* {0F78DA50-8321-11d2-8EAC-00805F29F370} */
#define NS_IRDFNODE_IID_STR "0F78DA50-8321-11d2-8EAC-00805F29F370"
#define NS_IRDFNODE_IID \
{0x0F78DA50, 0x8321, 0x11d2, \
{ 0x8E, 0xAC, 0x00, 0x80, 0x5F, 0x29, 0xF3, 0x70 }}
class nsIRDFNode : public nsISupports {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFNODE_IID;
return iid;
}
/* void Init (in string uri); */
NS_IMETHOD Init(char *uri) = 0;
/* boolean EqualsNode (in nsIRDFNode aNode); */
NS_IMETHOD EqualsNode(nsIRDFNode *aNode, PRBool *_retval) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFNode *priv);
#endif
};
/* starting interface nsIRDFResource */
/* {E0C493D1-9542-11d2-8EB8-00805F29F370} */
#define NS_IRDFRESOURCE_IID_STR "E0C493D1-9542-11d2-8EB8-00805F29F370"
#define NS_IRDFRESOURCE_IID \
{0xE0C493D1, 0x9542, 0x11d2, \
{ 0x8E, 0xB8, 0x00, 0x80, 0x5F, 0x29, 0xF3, 0x70 }}
class nsIRDFResource : public nsIRDFNode {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFRESOURCE_IID;
return iid;
}
/* readonly attribute string Value; */
NS_IMETHOD GetValue(char * *aValue) = 0;
/* boolean EqualsResource (in nsIRDFResource aResource); */
NS_IMETHOD EqualsResource(nsIRDFResource *aResource, PRBool *_retval) = 0;
/* boolean EqualsString (in string aURI); */
NS_IMETHOD EqualsString(char *aURI, PRBool *_retval) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFResource *priv);
#endif
};
/* starting interface nsIRDFLiteral */
/* {E0C493D2-9542-11d2-8EB8-00805F29F370} */
#define NS_IRDFLITERAL_IID_STR "E0C493D2-9542-11d2-8EB8-00805F29F370"
#define NS_IRDFLITERAL_IID \
{0xE0C493D2, 0x9542, 0x11d2, \
{ 0x8E, 0xB8, 0x00, 0x80, 0x5F, 0x29, 0xF3, 0x70 }}
class nsIRDFLiteral : public nsIRDFNode {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFLITERAL_IID;
return iid;
}
/* readonly attribute wstring Value; */
NS_IMETHOD GetValue(PRUnichar * *aValue) = 0;
/* boolean EqualsLiteral (in nsIRDFLiteral literal); */
NS_IMETHOD EqualsLiteral(nsIRDFLiteral *literal, PRBool *_retval) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFLiteral *priv);
#endif
};
class nsIRDFDataSource; /* forward decl */
/* starting interface nsIRDFCursor */
/* {1C2ABDB0-4CEF-11D2-BC16-00805F912FE7} */
#define NS_IRDFCURSOR_IID_STR "1C2ABDB0-4CEF-11D2-BC16-00805F912FE7"
#define NS_IRDFCURSOR_IID \
{0x1C2ABDB0, 0x4CEF, 0x11D2, \
{ 0xBC, 0x16, 0x00, 0x80, 0x5F, 0x91, 0x2F, 0xE7 }}
class nsIRDFCursor : public nsISupports {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFCURSOR_IID;
return iid;
}
/* void Advance (); */
NS_IMETHOD Advance() = 0;
/* readonly attribute nsIRDFDataSource DataSource; */
NS_IMETHOD GetDataSource(nsIRDFDataSource * *aDataSource) = 0;
/* readonly attribute nsIRDFNode Value; */
NS_IMETHOD GetValue(nsIRDFNode * *aValue) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFCursor *priv);
#endif
};
/* starting interface nsIRDFAssertionCursor */
/* {1ED57100-9904-11d2-8EBA-00805F29F370} */
#define NS_IRDFASSERTIONCURSOR_IID_STR "1ED57100-9904-11d2-8EBA-00805F29F370"
#define NS_IRDFASSERTIONCURSOR_IID \
{0x1ED57100, 0x9904, 0x11d2, \
{ 0x8E, 0xBA, 0x00, 0x80, 0x5F, 0x29, 0xF3, 0x70 }}
class nsIRDFAssertionCursor : public nsIRDFCursor {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFASSERTIONCURSOR_IID;
return iid;
}
/* readonly attribute nsIRDFResource Source; */
NS_IMETHOD GetSource(nsIRDFResource * *aSource) = 0;
/* readonly attribute nsIRDFResource Label; */
NS_IMETHOD GetLabel(nsIRDFResource * *aLabel) = 0;
/* readonly attribute nsIRDFNode Target; */
NS_IMETHOD GetTarget(nsIRDFNode * *aTarget) = 0;
/* readonly attribute boolean TruthValue; */
NS_IMETHOD GetTruthValue(PRBool *aTruthValue) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFAssertionCursor *priv);
#endif
};
/* starting interface nsIRDFArcsInCursor */
/* {1ED57102-9904-11d2-8EBA-00805F29F370} */
#define NS_IRDFARCSINCURSOR_IID_STR "1ED57102-9904-11d2-8EBA-00805F29F370"
#define NS_IRDFARCSINCURSOR_IID \
{0x1ED57102, 0x9904, 0x11d2, \
{ 0x8E, 0xBA, 0x00, 0x80, 0x5F, 0x29, 0xF3, 0x70 }}
class nsIRDFArcsInCursor : public nsIRDFCursor {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFARCSINCURSOR_IID;
return iid;
}
/* readonly attribute nsIRDFResource Label; */
NS_IMETHOD GetLabel(nsIRDFResource * *aLabel) = 0;
/* readonly attribute nsIRDFNode Target; */
NS_IMETHOD GetTarget(nsIRDFNode * *aTarget) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFArcsInCursor *priv);
#endif
};
/* starting interface nsIRDFArcsOutCursor */
/* {1ED57101-9904-11d2-8EBA-00805F29F370} */
#define NS_IRDFARCSOUTCURSOR_IID_STR "1ED57101-9904-11d2-8EBA-00805F29F370"
#define NS_IRDFARCSOUTCURSOR_IID \
{0x1ED57101, 0x9904, 0x11d2, \
{ 0x8E, 0xBA, 0x00, 0x80, 0x5F, 0x29, 0xF3, 0x70 }}
class nsIRDFArcsOutCursor : public nsIRDFCursor {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFARCSOUTCURSOR_IID;
return iid;
}
/* readonly attribute nsIRDFResource Source; */
NS_IMETHOD GetSource(nsIRDFResource * *aSource) = 0;
/* readonly attribute nsIRDFResource Label; */
NS_IMETHOD GetLabel(nsIRDFResource * *aLabel) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFArcsOutCursor *priv);
#endif
};
/* starting interface nsIRDFResourceCursor */
/* {C2850C10-B0CF-11d2-A684-00104BDE6048} */
#define NS_IRDFRESOURCECURSOR_IID_STR "C2850C10-B0CF-11d2-A684-00104BDE6048"
#define NS_IRDFRESOURCECURSOR_IID \
{0xC2850C10, 0xB0CF, 0x11d2, \
{ 0xA6, 0x84, 0x00, 0x10, 0x4B, 0xDE, 0x60, 0x48 }}
class nsIRDFResourceCursor : public nsIRDFCursor {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFRESOURCECURSOR_IID;
return iid;
}
/* readonly attribute nsIRDFResource Resource; */
NS_IMETHOD GetResource(nsIRDFResource * *aResource) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFResourceCursor *priv);
#endif
};
/* starting interface nsIRDFObserver */
/* {3CC75360-484A-11D2-BC16-00805F912FE7} */
#define NS_IRDFOBSERVER_IID_STR "3CC75360-484A-11D2-BC16-00805F912FE7"
#define NS_IRDFOBSERVER_IID \
{0x3CC75360, 0x484A, 0x11D2, \
{ 0xBC, 0x16, 0x00, 0x80, 0x5F, 0x91, 0x2F, 0xE7 }}
class nsIRDFObserver : public nsISupports {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFOBSERVER_IID;
return iid;
}
/* void OnAssert (in nsIRDFResource aSource, in nsIRDFResource aLabel, in nsIRDFNode aTarget); */
NS_IMETHOD OnAssert(nsIRDFResource *aSource, nsIRDFResource *aLabel, nsIRDFNode *aTarget) = 0;
/* void OnUnassert (in nsIRDFResource aSource, in nsIRDFResource aLabel, in nsIRDFNode aTarget); */
NS_IMETHOD OnUnassert(nsIRDFResource *aSource, nsIRDFResource *aLabel, nsIRDFNode *aTarget) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFObserver *priv);
#endif
};
/* starting interface nsIRDFDataSource */
/* {0F78DA58-8321-11d2-8EAC-00805F29F370} */
#define NS_IRDFDATASOURCE_IID_STR "0F78DA58-8321-11d2-8EAC-00805F29F370"
#define NS_IRDFDATASOURCE_IID \
{0x0F78DA58, 0x8321, 0x11d2, \
{ 0x8E, 0xAC, 0x00, 0x80, 0x5F, 0x29, 0xF3, 0x70 }}
class nsIRDFDataSource : public nsISupports {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFDATASOURCE_IID;
return iid;
}
/* void Init (in string uri); */
NS_IMETHOD Init(char *uri) = 0;
/* readonly attribute string URI; */
NS_IMETHOD GetURI(char * *aURI) = 0;
/* nsIRDFResource GetSource (in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
NS_IMETHOD GetSource(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsIRDFResource **_retval) = 0;
/* nsIRDFAssertionCursor GetSources (in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
NS_IMETHOD GetSources(nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, nsIRDFAssertionCursor **_retval) = 0;
/* nsIRDFNode GetTarget (in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue); */
NS_IMETHOD GetTarget(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsIRDFNode **_retval) = 0;
/* nsIRDFAssertionCursor GetTargets (in nsIRDFResource aSource, in nsIRDFResource aProperty, in boolean aTruthValue); */
NS_IMETHOD GetTargets(nsIRDFResource *aSource, nsIRDFResource *aProperty, PRBool aTruthValue, nsIRDFAssertionCursor **_retval) = 0;
/* void Assert (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
NS_IMETHOD Assert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue) = 0;
/* void Unassert (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget); */
NS_IMETHOD Unassert(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget) = 0;
/* boolean HasAssertion (in nsIRDFResource aSource, in nsIRDFResource aProperty, in nsIRDFNode aTarget, in boolean aTruthValue); */
NS_IMETHOD HasAssertion(nsIRDFResource *aSource, nsIRDFResource *aProperty, nsIRDFNode *aTarget, PRBool aTruthValue, PRBool *_retval) = 0;
/* void AddObserver (in nsIRDFObserver aObserver); */
NS_IMETHOD AddObserver(nsIRDFObserver *aObserver) = 0;
/* void RemoveObserver (in nsIRDFObserver aObserver); */
NS_IMETHOD RemoveObserver(nsIRDFObserver *aObserver) = 0;
/* nsIRDFArcsInCursor ArcLabelsIn (in nsIRDFNode aNode); */
NS_IMETHOD ArcLabelsIn(nsIRDFNode *aNode, nsIRDFArcsInCursor **_retval) = 0;
/* nsIRDFArcsOutCursor ArcLabelsOut (in nsIRDFResource aSource); */
NS_IMETHOD ArcLabelsOut(nsIRDFResource *aSource, nsIRDFArcsOutCursor **_retval) = 0;
/* nsIRDFResourceCursor GetAllResources (); */
NS_IMETHOD GetAllResources(nsIRDFResourceCursor **_retval) = 0;
/* void Flush (); */
NS_IMETHOD Flush() = 0;
/* boolean IsCommandEnabled (in string aCommand, in nsIRDFResource aCommandTarget); */
NS_IMETHOD IsCommandEnabled(char *aCommand, nsIRDFResource *aCommandTarget, PRBool *_retval) = 0;
/* void DoCommand (in string aCommand, in nsIRDFResource aCommandTarget); */
NS_IMETHOD DoCommand(char *aCommand, nsIRDFResource *aCommandTarget) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFDataSource *priv);
#endif
};
/* starting interface nsIRDFCompositeDataSource */
/* {96343820-307C-11D2-BC15-00805F912FE7} */
#define NS_IRDFCOMPOSITEDATASOURCE_IID_STR "96343820-307C-11D2-BC15-00805F912FE7"
#define NS_IRDFCOMPOSITEDATASOURCE_IID \
{0x96343820, 0x307C, 0x11D2, \
{ 0xBC, 0x15, 0x00, 0x80, 0x5F, 0x91, 0x2F, 0xE7 }}
class nsIRDFCompositeDataSource : public nsIRDFDataSource {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFCOMPOSITEDATASOURCE_IID;
return iid;
}
/* void AddDataSource (in nsIRDFDataSource aDataSource); */
NS_IMETHOD AddDataSource(nsIRDFDataSource *aDataSource) = 0;
/* void RemoveDataSource (in nsIRDFDataSource aDataSource); */
NS_IMETHOD RemoveDataSource(nsIRDFDataSource *aDataSource) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFCompositeDataSource *priv);
#endif
};
/* starting interface nsIRDFService */
/* {BFD05261-834C-11d2-8EAC-00805F29F370} */
#define NS_IRDFSERVICE_IID_STR "BFD05261-834C-11d2-8EAC-00805F29F370"
#define NS_IRDFSERVICE_IID \
{0xBFD05261, 0x834C, 0x11d2, \
{ 0x8E, 0xAC, 0x00, 0x80, 0x5F, 0x29, 0xF3, 0x70 }}
class nsIRDFService : public nsISupports {
public:
static const nsIID& GetIID() {
static nsIID iid = NS_IRDFSERVICE_IID;
return iid;
}
/* nsIRDFResource GetResource (in string aURI); */
NS_IMETHOD GetResource(char *aURI, nsIRDFResource **_retval) = 0;
/* nsIRDFResource GetUnicodeResource (in wstring aURI); */
NS_IMETHOD GetUnicodeResource(PRUnichar *aURI, nsIRDFResource **_retval) = 0;
/* nsIRDFLiteral GetLiteral (in wstring aValue); */
NS_IMETHOD GetLiteral(PRUnichar *aValue, nsIRDFLiteral **_retval) = 0;
/* void RegisterResource (in nsIRDFResource aResource, in boolean aReplace); */
NS_IMETHOD RegisterResource(nsIRDFResource *aResource, PRBool aReplace) = 0;
/* void UnregisterResource (in nsIRDFResource aResource); */
NS_IMETHOD UnregisterResource(nsIRDFResource *aResource) = 0;
/* void RegisterDataSource (in nsIRDFDataSource aDataSource, in boolean aReplace); */
NS_IMETHOD RegisterDataSource(nsIRDFDataSource *aDataSource, PRBool aReplace) = 0;
/* void UnregisterDataSource (in nsIRDFDataSource aDataSource); */
NS_IMETHOD UnregisterDataSource(nsIRDFDataSource *aDataSource) = 0;
/* nsIRDFDataSource GetDataSource (in string aURI); */
NS_IMETHOD GetDataSource(char *aURI, nsIRDFDataSource **_retval) = 0;
#ifdef XPIDL_JS_STUBS
static NS_EXPORT_(JSObject *) InitJSClass(JSContext *cx);
static NS_EXPORT_(JSObject *) GetJSObject(JSContext *cx, nsIRDFService *priv);
#endif
};
#endif /* __gen_nsRDFInterfaces_h__ */