Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 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_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_IMETHOD Sort(nsIDOMNode *aNode, const nsAString & aSortKey, const nsAString & aSortHints) override;
47 :
48 : /* Use this macro when declaring the members of this interface when the
49 : class doesn't implement the interface. This is useful for forwarding. */
50 : #define NS_DECL_NON_VIRTUAL_NSIXULSORTSERVICE \
51 : nsresult Sort(nsIDOMNode *aNode, const nsAString & aSortKey, const nsAString & aSortHints);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIXULSORTSERVICE(_to) \
55 : NS_IMETHOD Sort(nsIDOMNode *aNode, const nsAString & aSortKey, const nsAString & aSortHints) override { return _to Sort(aNode, aSortKey, aSortHints); }
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
58 : #define NS_FORWARD_SAFE_NSIXULSORTSERVICE(_to) \
59 : NS_IMETHOD Sort(nsIDOMNode *aNode, const nsAString & aSortKey, const nsAString & aSortHints) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Sort(aNode, aSortKey, aSortHints); }
60 :
61 : #if 0
62 : /* Use the code below as a template for the implementation class for this interface. */
63 :
64 : /* Header file */
65 : class nsXULSortService : public nsIXULSortService
66 : {
67 : public:
68 : NS_DECL_ISUPPORTS
69 : NS_DECL_NSIXULSORTSERVICE
70 :
71 : nsXULSortService();
72 :
73 : private:
74 : ~nsXULSortService();
75 :
76 : protected:
77 : /* additional members */
78 : };
79 :
80 : /* Implementation file */
81 : NS_IMPL_ISUPPORTS(nsXULSortService, nsIXULSortService)
82 :
83 : nsXULSortService::nsXULSortService()
84 : {
85 : /* member initializers and constructor code */
86 : }
87 :
88 : nsXULSortService::~nsXULSortService()
89 : {
90 : /* destructor code */
91 : }
92 :
93 : /* void sort (in nsIDOMNode aNode, in AString aSortKey, in AString aSortHints); */
94 : NS_IMETHODIMP nsXULSortService::Sort(nsIDOMNode *aNode, const nsAString & aSortKey, const nsAString & aSortHints)
95 : {
96 : return NS_ERROR_NOT_IMPLEMENTED;
97 : }
98 :
99 : /* End of implementation class template. */
100 : #endif
101 :
102 : nsresult
103 : NS_NewXULSortService(nsIXULSortService **result);
104 :
105 : #endif /* __gen_nsIXULSortService_h__ */
|