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

#ifndef __gen_flockIPeopleService_h__
#define __gen_flockIPeopleService_h__


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

#ifndef __gen_nsIObserver_h__
#include "nsIObserver.h"
#endif

#ifndef __gen_flockISocialWebService_h__
#include "flockISocialWebService.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:    flockIPeopleObserver */
#define FLOCKIPEOPLEOBSERVER_IID_STR "460c07ab-a514-4dc6-a8b3-b3f3480a87f2"

#define FLOCKIPEOPLEOBSERVER_IID \
  {0x460c07ab, 0xa514, 0x4dc6, \
    { 0xa8, 0xb3, 0xb3, 0xf3, 0x48, 0x0a, 0x87, 0xf2 }}

class NS_NO_VTABLE flockIPeopleObserver : public nsIObserver {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIPEOPLEOBSERVER_IID)

  /**
   * onFriendRemove
   * Functionality to be performed when PeopleService observes that a friend
   * has been removed
   * @param aFriendUrn : URN of Friend that has been removed
   */
  /* void onFriendRemove (in AString aFriendUrn); */
  NS_IMETHOD OnFriendRemove(const nsAString & aFriendUrn) = 0;

  /**
   * onFriendUpdate
   * Functionality to be performed when PeopleService observes that a friend
   * has been updated
   * @param aFriendUrn : URN of Friend that has been removed
   */
  /* void onFriendUpdate (in AString AFriendUrn); */
  NS_IMETHOD OnFriendUpdate(const nsAString & AFriendUrn) = 0;

  /**
   * onInsertFriend
   * Functionality to be performed when PeopleService observes that account
   * aAccountId has a new friend
   * @param aFriendUrn : URN of Friend that has been removed
   */
  /* void onInsertFriend (in AString aFriendUrn); */
  NS_IMETHOD OnInsertFriend(const nsAString & aFriendUrn) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIPEOPLEOBSERVER \
  NS_IMETHOD OnFriendRemove(const nsAString & aFriendUrn); \
  NS_IMETHOD OnFriendUpdate(const nsAString & AFriendUrn); \
  NS_IMETHOD OnInsertFriend(const nsAString & aFriendUrn); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIPEOPLEOBSERVER(_to) \
  NS_IMETHOD OnFriendRemove(const nsAString & aFriendUrn) { return _to OnFriendRemove(aFriendUrn); } \
  NS_IMETHOD OnFriendUpdate(const nsAString & AFriendUrn) { return _to OnFriendUpdate(AFriendUrn); } \
  NS_IMETHOD OnInsertFriend(const nsAString & aFriendUrn) { return _to OnInsertFriend(aFriendUrn); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIPEOPLEOBSERVER(_to) \
  NS_IMETHOD OnFriendRemove(const nsAString & aFriendUrn) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFriendRemove(aFriendUrn); } \
  NS_IMETHOD OnFriendUpdate(const nsAString & AFriendUrn) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnFriendUpdate(AFriendUrn); } \
  NS_IMETHOD OnInsertFriend(const nsAString & aFriendUrn) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnInsertFriend(aFriendUrn); } 

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

/* Header file */
class _MYCLASS_ : public flockIPeopleObserver
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIPEOPLEOBSERVER

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void onFriendRemove (in AString aFriendUrn); */
NS_IMETHODIMP _MYCLASS_::OnFriendRemove(const nsAString & aFriendUrn)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onFriendUpdate (in AString AFriendUrn); */
NS_IMETHODIMP _MYCLASS_::OnFriendUpdate(const nsAString & AFriendUrn)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void onInsertFriend (in AString aFriendUrn); */
NS_IMETHODIMP _MYCLASS_::OnInsertFriend(const nsAString & aFriendUrn)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


/* starting interface:    flockIPeopleService */
#define FLOCKIPEOPLESERVICE_IID_STR "7acba239-d5d9-4223-a8e9-e25ce0395008"

#define FLOCKIPEOPLESERVICE_IID \
  {0x7acba239, 0xd5d9, 0x4223, \
    { 0xa8, 0xe9, 0xe2, 0x5c, 0xe0, 0x39, 0x50, 0x08 }}

class NS_NO_VTABLE flockIPeopleService : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(FLOCKIPEOPLESERVICE_IID)

  /**
   * AddObserver
   * Registers a given listener for a notifications regarding the specified
   * topic.
   * @param anObserve : The interface pointer which will receive notifications.
   */
  /* void addObserver (in flockIPeopleObserver aObserver); */
  NS_IMETHOD AddObserver(flockIPeopleObserver *aObserver) = 0;

  /**
   * removeObserver
   * Unregisters a given listener from notifications regarding the specified
   * topic.
   * @param aObserver : The interface pointer which will stop recieving
   *                    notifications.
   */
  /* void removeObserver (in flockIPeopleObserver aObserver); */
  NS_IMETHOD RemoveObserver(flockIPeopleObserver *aObserver) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIPEOPLESERVICE \
  NS_IMETHOD AddObserver(flockIPeopleObserver *aObserver); \
  NS_IMETHOD RemoveObserver(flockIPeopleObserver *aObserver); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIPEOPLESERVICE(_to) \
  NS_IMETHOD AddObserver(flockIPeopleObserver *aObserver) { return _to AddObserver(aObserver); } \
  NS_IMETHOD RemoveObserver(flockIPeopleObserver *aObserver) { return _to RemoveObserver(aObserver); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_FLOCKIPEOPLESERVICE(_to) \
  NS_IMETHOD AddObserver(flockIPeopleObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddObserver(aObserver); } \
  NS_IMETHOD RemoveObserver(flockIPeopleObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveObserver(aObserver); } 

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

/* Header file */
class _MYCLASS_ : public flockIPeopleService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIPEOPLESERVICE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* void addObserver (in flockIPeopleObserver aObserver); */
NS_IMETHODIMP _MYCLASS_::AddObserver(flockIPeopleObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void removeObserver (in flockIPeopleObserver aObserver); */
NS_IMETHODIMP _MYCLASS_::RemoveObserver(flockIPeopleObserver *aObserver)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIPeopleService_h__ */
