1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/xul/templates/public/nsIXULSortService.idl
3 : */
4 :
5 : #ifndef __gen_nsIXULSortService_h__
6 : #define __gen_nsIXULSortService_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIDOMNode; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIXULSortService */
21 : #define NS_IXULSORTSERVICE_IID_STR "f29270c8-3be5-4046-9b57-945a84dff132"
22 :
23 : #define NS_IXULSORTSERVICE_IID \
24 : {0xf29270c8, 0x3be5, 0x4046, \
25 : { 0x9b, 0x57, 0x94, 0x5a, 0x84, 0xdf, 0xf1, 0x32 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIXULSortService : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXULSORTSERVICE_IID)
31 :
32 : enum {
33 : SORT_COMPARECASE = 1U,
34 : SORT_INTEGER = 256U
35 : };
36 :
37 : /* void sort (in nsIDOMNode aNode, in AString aSortKey, in AString aSortHints); */
38 : NS_SCRIPTABLE NS_IMETHOD Sort(nsIDOMNode *aNode, const nsAString & aSortKey, const nsAString & aSortHints) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIXULSortService, NS_IXULSORTSERVICE_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIXULSORTSERVICE \
46 : NS_SCRIPTABLE NS_IMETHOD Sort(nsIDOMNode *aNode, const nsAString & aSortKey, const nsAString & aSortHints);
47 :
48 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
49 : #define NS_FORWARD_NSIXULSORTSERVICE(_to) \
50 : NS_SCRIPTABLE NS_IMETHOD Sort(nsIDOMNode *aNode, const nsAString & aSortKey, const nsAString & aSortHints) { return _to Sort(aNode, aSortKey, aSortHints); }
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
53 : #define NS_FORWARD_SAFE_NSIXULSORTSERVICE(_to) \
54 : NS_SCRIPTABLE NS_IMETHOD Sort(nsIDOMNode *aNode, const nsAString & aSortKey, const nsAString & aSortHints) { return !_to ? NS_ERROR_NULL_POINTER : _to->Sort(aNode, aSortKey, aSortHints); }
55 :
56 : #if 0
57 : /* Use the code below as a template for the implementation class for this interface. */
58 :
59 : /* Header file */
60 : class nsXULSortService : public nsIXULSortService
61 : {
62 : public:
63 : NS_DECL_ISUPPORTS
64 : NS_DECL_NSIXULSORTSERVICE
65 :
66 : nsXULSortService();
67 :
68 : private:
69 : ~nsXULSortService();
70 :
71 : protected:
72 : /* additional members */
73 : };
74 :
75 : /* Implementation file */
76 : NS_IMPL_ISUPPORTS1(nsXULSortService, nsIXULSortService)
77 :
78 : nsXULSortService::nsXULSortService()
79 : {
80 : /* member initializers and constructor code */
81 : }
82 :
83 : nsXULSortService::~nsXULSortService()
84 : {
85 : /* destructor code */
86 : }
87 :
88 : /* void sort (in nsIDOMNode aNode, in AString aSortKey, in AString aSortHints); */
89 : NS_IMETHODIMP nsXULSortService::Sort(nsIDOMNode *aNode, const nsAString & aSortKey, const nsAString & aSortHints)
90 : {
91 : return NS_ERROR_NOT_IMPLEMENTED;
92 : }
93 :
94 : /* End of implementation class template. */
95 : #endif
96 :
97 : nsresult
98 : NS_NewXULSortService(nsIXULSortService **result);
99 :
100 : #endif /* __gen_nsIXULSortService_h__ */
|