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

#ifndef __gen_flockIStorageConnection_h__
#define __gen_flockIStorageConnection_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

/* starting interface:    flockIStorageConnection */
#define FLOCKISTORAGECONNECTION_IID_STR "95d64c7c-1a1e-47f5-8e2d-efb08c9b6b8a"

#define FLOCKISTORAGECONNECTION_IID \
  {0x95d64c7c, 0x1a1e, 0x47f5, \
    { 0x8e, 0x2d, 0xef, 0xb0, 0x8c, 0x9b, 0x6b, 0x8a }}

/**
 * This is currently just an interface to contain backports of new API
 * in mozIStorageConnection from Firefox 3
 */
class NS_NO_VTABLE flockIStorageConnection : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKISTORAGECONNECTION_IID)

  /**
   * The schema version of the database.  This should not be used until the 
   * database is ready.  The schema will be reported as zero if it is not set.
   */
  /* attribute long schemaVersion; */
  NS_IMETHOD GetSchemaVersion(PRInt32 *aSchemaVersion) = 0;
  NS_IMETHOD SetSchemaVersion(PRInt32 aSchemaVersion) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKISTORAGECONNECTION \
  NS_IMETHOD GetSchemaVersion(PRInt32 *aSchemaVersion); \
  NS_IMETHOD SetSchemaVersion(PRInt32 aSchemaVersion); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKISTORAGECONNECTION(_to) \
  NS_IMETHOD GetSchemaVersion(PRInt32 *aSchemaVersion) { return _to GetSchemaVersion(aSchemaVersion); } \
  NS_IMETHOD SetSchemaVersion(PRInt32 aSchemaVersion) { return _to SetSchemaVersion(aSchemaVersion); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKISTORAGECONNECTION(_to) \
  NS_IMETHOD GetSchemaVersion(PRInt32 *aSchemaVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSchemaVersion(aSchemaVersion); } \
  NS_IMETHOD SetSchemaVersion(PRInt32 aSchemaVersion) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSchemaVersion(aSchemaVersion); } 

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

/* Header file */
class _MYCLASS_ : public flockIStorageConnection
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKISTORAGECONNECTION

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(_MYCLASS_, flockIStorageConnection)

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

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

/* attribute long schemaVersion; */
NS_IMETHODIMP _MYCLASS_::GetSchemaVersion(PRInt32 *aSchemaVersion)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}
NS_IMETHODIMP _MYCLASS_::SetSchemaVersion(PRInt32 aSchemaVersion)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIStorageConnection_h__ */
