DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIExternalSharingAppService.idl
 */

#ifndef __gen_nsIExternalSharingAppService_h__
#define __gen_nsIExternalSharingAppService_h__


#ifndef __gen_nsIMIMEInfo_h__
#include "nsIMIMEInfo.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
#define NS_EXTERNALSHARINGAPPSERVICE_CONTRACTID    "@mozilla.org/uriloader/external-sharing-app-service;1"

/* starting interface:    nsISharingHandlerApp */
#define NS_ISHARINGHANDLERAPP_IID_STR "7111f769-53ec-41fd-b314-613661d5b6ba"

#define NS_ISHARINGHANDLERAPP_IID \
  {0x7111f769, 0x53ec, 0x41fd, \
    { 0xb3, 0x14, 0x61, 0x36, 0x61, 0xd5, 0xb6, 0xba }}

class NS_NO_VTABLE nsISharingHandlerApp : public nsIHandlerApp {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISHARINGHANDLERAPP_IID)

  /* void share (in AString data, [optional] in AString title); */
  NS_IMETHOD Share(const nsAString & data, const nsAString & title) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsISharingHandlerApp, NS_ISHARINGHANDLERAPP_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSISHARINGHANDLERAPP \
  NS_IMETHOD Share(const nsAString & data, const nsAString & title) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSISHARINGHANDLERAPP \
  nsresult Share(const nsAString & data, const nsAString & title); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSISHARINGHANDLERAPP(_to) \
  NS_IMETHOD Share(const nsAString & data, const nsAString & title) override { return _to Share(data, title); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSISHARINGHANDLERAPP(_to) \
  NS_IMETHOD Share(const nsAString & data, const nsAString & title) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Share(data, title); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsSharingHandlerApp : public nsISharingHandlerApp
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSISHARINGHANDLERAPP

  nsSharingHandlerApp();

private:
  ~nsSharingHandlerApp();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsSharingHandlerApp, nsISharingHandlerApp)

nsSharingHandlerApp::nsSharingHandlerApp()
{
  /* member initializers and constructor code */
}

nsSharingHandlerApp::~nsSharingHandlerApp()
{
  /* destructor code */
}

/* void share (in AString data, [optional] in AString title); */
NS_IMETHODIMP nsSharingHandlerApp::Share(const nsAString & data, const nsAString & title)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


/* starting interface:    nsIExternalSharingAppService */
#define NS_IEXTERNALSHARINGAPPSERVICE_IID_STR "cf7d04e5-3892-482e-81bb-073dc1c83f76"

#define NS_IEXTERNALSHARINGAPPSERVICE_IID \
  {0xcf7d04e5, 0x3892, 0x482e, \
    { 0x81, 0xbb, 0x07, 0x3d, 0xc1, 0xc8, 0x3f, 0x76 }}

class NS_NO_VTABLE nsIExternalSharingAppService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXTERNALSHARINGAPPSERVICE_IID)

  /* void shareWithDefault (in AString data, in AString mime, [optional] in AString title); */
  NS_IMETHOD ShareWithDefault(const nsAString & data, const nsAString & mime, const nsAString & title) = 0;

  /* void getSharingApps (in AString aMIMEType, [optional] out unsigned long aLen, [array, size_is (aLen), retval] out nsISharingHandlerApp handlerApps); */
  NS_IMETHOD GetSharingApps(const nsAString & aMIMEType, uint32_t *aLen, nsISharingHandlerApp * **handlerApps) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIExternalSharingAppService, NS_IEXTERNALSHARINGAPPSERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIEXTERNALSHARINGAPPSERVICE \
  NS_IMETHOD ShareWithDefault(const nsAString & data, const nsAString & mime, const nsAString & title) override; \
  NS_IMETHOD GetSharingApps(const nsAString & aMIMEType, uint32_t *aLen, nsISharingHandlerApp * **handlerApps) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_NSIEXTERNALSHARINGAPPSERVICE \
  nsresult ShareWithDefault(const nsAString & data, const nsAString & mime, const nsAString & title); \
  nsresult GetSharingApps(const nsAString & aMIMEType, uint32_t *aLen, nsISharingHandlerApp * **handlerApps); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIEXTERNALSHARINGAPPSERVICE(_to) \
  NS_IMETHOD ShareWithDefault(const nsAString & data, const nsAString & mime, const nsAString & title) override { return _to ShareWithDefault(data, mime, title); } \
  NS_IMETHOD GetSharingApps(const nsAString & aMIMEType, uint32_t *aLen, nsISharingHandlerApp * **handlerApps) override { return _to GetSharingApps(aMIMEType, aLen, handlerApps); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIEXTERNALSHARINGAPPSERVICE(_to) \
  NS_IMETHOD ShareWithDefault(const nsAString & data, const nsAString & mime, const nsAString & title) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ShareWithDefault(data, mime, title); } \
  NS_IMETHOD GetSharingApps(const nsAString & aMIMEType, uint32_t *aLen, nsISharingHandlerApp * **handlerApps) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSharingApps(aMIMEType, aLen, handlerApps); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsExternalSharingAppService : public nsIExternalSharingAppService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIEXTERNALSHARINGAPPSERVICE

  nsExternalSharingAppService();

private:
  ~nsExternalSharingAppService();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsExternalSharingAppService, nsIExternalSharingAppService)

nsExternalSharingAppService::nsExternalSharingAppService()
{
  /* member initializers and constructor code */
}

nsExternalSharingAppService::~nsExternalSharingAppService()
{
  /* destructor code */
}

/* void shareWithDefault (in AString data, in AString mime, [optional] in AString title); */
NS_IMETHODIMP nsExternalSharingAppService::ShareWithDefault(const nsAString & data, const nsAString & mime, const nsAString & title)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void getSharingApps (in AString aMIMEType, [optional] out unsigned long aLen, [array, size_is (aLen), retval] out nsISharingHandlerApp handlerApps); */
NS_IMETHODIMP nsExternalSharingAppService::GetSharingApps(const nsAString & aMIMEType, uint32_t *aLen, nsISharingHandlerApp * **handlerApps)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif


#endif /* __gen_nsIExternalSharingAppService_h__ */