Your IP : 216.73.216.48


Current Path : /usr/X11R6/include/seamonkey-2.40/
Upload File :
Current File : //usr/X11R6/include/seamonkey-2.40/nsIUsageCallback.h

/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIUsageCallback.idl
 */

#ifndef __gen_nsIUsageCallback_h__
#define __gen_nsIUsageCallback_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIPrincipal; /* forward declaration */


/* starting interface:    nsIUsageCallback */
#define NS_IUSAGECALLBACK_IID_STR "54b9f44f-533f-41ee-8fa8-86cc978125f0"

#define NS_IUSAGECALLBACK_IID \
  {0x54b9f44f, 0x533f, 0x41ee, \
    { 0x8f, 0xa8, 0x86, 0xcc, 0x97, 0x81, 0x25, 0xf0 }}

class NS_NO_VTABLE nsIUsageCallback : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUSAGECALLBACK_IID)

  /* void onUsageResult (in nsIPrincipal aPrincipal, in unsigned long long aUsage, in unsigned long long aFileUsage); */
  NS_IMETHOD OnUsageResult(nsIPrincipal *aPrincipal, uint64_t aUsage, uint64_t aFileUsage) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(nsIUsageCallback, NS_IUSAGECALLBACK_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIUSAGECALLBACK \
  NS_IMETHOD OnUsageResult(nsIPrincipal *aPrincipal, uint64_t aUsage, uint64_t aFileUsage) 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_NSIUSAGECALLBACK \
  NS_METHOD OnUsageResult(nsIPrincipal *aPrincipal, uint64_t aUsage, uint64_t aFileUsage); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIUSAGECALLBACK(_to) \
  NS_IMETHOD OnUsageResult(nsIPrincipal *aPrincipal, uint64_t aUsage, uint64_t aFileUsage) override { return _to OnUsageResult(aPrincipal, aUsage, aFileUsage); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIUSAGECALLBACK(_to) \
  NS_IMETHOD OnUsageResult(nsIPrincipal *aPrincipal, uint64_t aUsage, uint64_t aFileUsage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnUsageResult(aPrincipal, aUsage, aFileUsage); } 

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

/* Header file */
class nsUsageCallback : public nsIUsageCallback
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIUSAGECALLBACK

  nsUsageCallback();

private:
  ~nsUsageCallback();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS(nsUsageCallback, nsIUsageCallback)

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

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

/* void onUsageResult (in nsIPrincipal aPrincipal, in unsigned long long aUsage, in unsigned long long aFileUsage); */
NS_IMETHODIMP nsUsageCallback::OnUsageResult(nsIPrincipal *aPrincipal, uint64_t aUsage, uint64_t aFileUsage)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIUsageCallback_h__ */