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

#ifndef __gen_nsIImapFlagAndUidState_h__
#define __gen_nsIImapFlagAndUidState_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:    nsIImapFlagAndUidState */
#define NS_IIMAPFLAGANDUIDSTATE_IID_STR "70378b9a-6480-11d3-a533-0060b0fc04b7"

#define NS_IIMAPFLAGANDUIDSTATE_IID \
  {0x70378b9a, 0x6480, 0x11d3, \
    { 0xa5, 0x33, 0x00, 0x60, 0xb0, 0xfc, 0x04, 0xb7 }}

class NS_NO_VTABLE nsIImapFlagAndUidState : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IIMAPFLAGANDUIDSTATE_IID)

  /* readonly attribute long numberOfMessages; */
  NS_IMETHOD GetNumberOfMessages(PRInt32 *aNumberOfMessages) = 0;

  /* readonly attribute long numberOfRecentMessages; */
  NS_IMETHOD GetNumberOfRecentMessages(PRInt32 *aNumberOfRecentMessages) = 0;

  /* void GetUidOfMessage (in long zeroBasedIndex, out unsigned long result); */
  NS_IMETHOD GetUidOfMessage(PRInt32 zeroBasedIndex, PRUint32 *result) = 0;

  /* void GetMessageFlags (in long zeroBasedIndex, out unsigned short result); */
  NS_IMETHOD GetMessageFlags(PRInt32 zeroBasedIndex, PRUint16 *result) = 0;

  /* void ExpungeByIndex (in unsigned long zeroBasedIndex); */
  NS_IMETHOD ExpungeByIndex(PRUint32 zeroBasedIndex) = 0;

  /* void AddUidFlagPair (in unsigned long uid, in unsigned short flags); */
  NS_IMETHOD AddUidFlagPair(PRUint32 uid, PRUint16 flags) = 0;

  /* void Reset (in unsigned long howManyLeft); */
  NS_IMETHOD Reset(PRUint32 howManyLeft) = 0;

  /* void SetSupportedUserFlags (in unsigned short flags); */
  NS_IMETHOD SetSupportedUserFlags(PRUint16 flags) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIIMAPFLAGANDUIDSTATE \
  NS_IMETHOD GetNumberOfMessages(PRInt32 *aNumberOfMessages); \
  NS_IMETHOD GetNumberOfRecentMessages(PRInt32 *aNumberOfRecentMessages); \
  NS_IMETHOD GetUidOfMessage(PRInt32 zeroBasedIndex, PRUint32 *result); \
  NS_IMETHOD GetMessageFlags(PRInt32 zeroBasedIndex, PRUint16 *result); \
  NS_IMETHOD ExpungeByIndex(PRUint32 zeroBasedIndex); \
  NS_IMETHOD AddUidFlagPair(PRUint32 uid, PRUint16 flags); \
  NS_IMETHOD Reset(PRUint32 howManyLeft); \
  NS_IMETHOD SetSupportedUserFlags(PRUint16 flags); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIIMAPFLAGANDUIDSTATE(_to) \
  NS_IMETHOD GetNumberOfMessages(PRInt32 *aNumberOfMessages) { return _to GetNumberOfMessages(aNumberOfMessages); } \
  NS_IMETHOD GetNumberOfRecentMessages(PRInt32 *aNumberOfRecentMessages) { return _to GetNumberOfRecentMessages(aNumberOfRecentMessages); } \
  NS_IMETHOD GetUidOfMessage(PRInt32 zeroBasedIndex, PRUint32 *result) { return _to GetUidOfMessage(zeroBasedIndex, result); } \
  NS_IMETHOD GetMessageFlags(PRInt32 zeroBasedIndex, PRUint16 *result) { return _to GetMessageFlags(zeroBasedIndex, result); } \
  NS_IMETHOD ExpungeByIndex(PRUint32 zeroBasedIndex) { return _to ExpungeByIndex(zeroBasedIndex); } \
  NS_IMETHOD AddUidFlagPair(PRUint32 uid, PRUint16 flags) { return _to AddUidFlagPair(uid, flags); } \
  NS_IMETHOD Reset(PRUint32 howManyLeft) { return _to Reset(howManyLeft); } \
  NS_IMETHOD SetSupportedUserFlags(PRUint16 flags) { return _to SetSupportedUserFlags(flags); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIIMAPFLAGANDUIDSTATE(_to) \
  NS_IMETHOD GetNumberOfMessages(PRInt32 *aNumberOfMessages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfMessages(aNumberOfMessages); } \
  NS_IMETHOD GetNumberOfRecentMessages(PRInt32 *aNumberOfRecentMessages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfRecentMessages(aNumberOfRecentMessages); } \
  NS_IMETHOD GetUidOfMessage(PRInt32 zeroBasedIndex, PRUint32 *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUidOfMessage(zeroBasedIndex, result); } \
  NS_IMETHOD GetMessageFlags(PRInt32 zeroBasedIndex, PRUint16 *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMessageFlags(zeroBasedIndex, result); } \
  NS_IMETHOD ExpungeByIndex(PRUint32 zeroBasedIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExpungeByIndex(zeroBasedIndex); } \
  NS_IMETHOD AddUidFlagPair(PRUint32 uid, PRUint16 flags) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddUidFlagPair(uid, flags); } \
  NS_IMETHOD Reset(PRUint32 howManyLeft) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(howManyLeft); } \
  NS_IMETHOD SetSupportedUserFlags(PRUint16 flags) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSupportedUserFlags(flags); } 

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

/* Header file */
class nsImapFlagAndUidState : public nsIImapFlagAndUidState
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIIMAPFLAGANDUIDSTATE

  nsImapFlagAndUidState();
  virtual ~nsImapFlagAndUidState();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsImapFlagAndUidState, nsIImapFlagAndUidState)

nsImapFlagAndUidState::nsImapFlagAndUidState()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

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

/* readonly attribute long numberOfMessages; */
NS_IMETHODIMP nsImapFlagAndUidState::GetNumberOfMessages(PRInt32 *aNumberOfMessages)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* readonly attribute long numberOfRecentMessages; */
NS_IMETHODIMP nsImapFlagAndUidState::GetNumberOfRecentMessages(PRInt32 *aNumberOfRecentMessages)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void GetUidOfMessage (in long zeroBasedIndex, out unsigned long result); */
NS_IMETHODIMP nsImapFlagAndUidState::GetUidOfMessage(PRInt32 zeroBasedIndex, PRUint32 *result)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void GetMessageFlags (in long zeroBasedIndex, out unsigned short result); */
NS_IMETHODIMP nsImapFlagAndUidState::GetMessageFlags(PRInt32 zeroBasedIndex, PRUint16 *result)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void ExpungeByIndex (in unsigned long zeroBasedIndex); */
NS_IMETHODIMP nsImapFlagAndUidState::ExpungeByIndex(PRUint32 zeroBasedIndex)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void AddUidFlagPair (in unsigned long uid, in unsigned short flags); */
NS_IMETHODIMP nsImapFlagAndUidState::AddUidFlagPair(PRUint32 uid, PRUint16 flags)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void Reset (in unsigned long howManyLeft); */
NS_IMETHODIMP nsImapFlagAndUidState::Reset(PRUint32 howManyLeft)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void SetSupportedUserFlags (in unsigned short flags); */
NS_IMETHODIMP nsImapFlagAndUidState::SetSupportedUserFlags(PRUint16 flags)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_nsIImapFlagAndUidState_h__ */
