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

#ifndef __gen_flockIYoutubeService_h__
#define __gen_flockIYoutubeService_h__


#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:    flockIYoutubeService */
#define FLOCKIYOUTUBESERVICE_IID_STR "bc101c93-f014-4bc9-9f0d-8c9944380baf"

#define FLOCKIYOUTUBESERVICE_IID \
  {0xbc101c93, 0xf014, 0x4bc9, \
    { 0x9f, 0x0d, 0x8c, 0x99, 0x44, 0x38, 0x0b, 0xaf }}

/**
 * Represents a Youtube service.
 *
 * More documentation here:
 * http://wiki.flock.com/index.php?title=Danphe:AccountsAndServices
 *
 * @see flockISocialWebService
 */
class NS_NO_VTABLE NS_SCRIPTABLE flockIYoutubeService : public flockISocialWebService {
 public: 

  NS_DECLARE_STATIC_IID_ACCESSOR(FLOCKIYOUTUBESERVICE_IID)

  /**
   * gets the videoID from the specified Url
   * @param aUrl (in)  Url of the get the id from
   */
  /* AString getVideoIDFromUrl (in AString aUrl); */
  NS_SCRIPTABLE NS_IMETHOD GetVideoIDFromUrl(const nsAString & aUrl, nsAString & _retval) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(flockIYoutubeService, FLOCKIYOUTUBESERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_FLOCKIYOUTUBESERVICE \
  NS_SCRIPTABLE NS_IMETHOD GetVideoIDFromUrl(const nsAString & aUrl, nsAString & _retval); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_FLOCKIYOUTUBESERVICE(_to) \
  NS_SCRIPTABLE NS_IMETHOD GetVideoIDFromUrl(const nsAString & aUrl, nsAString & _retval) { return _to GetVideoIDFromUrl(aUrl, _retval); } 

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

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

/* Header file */
class _MYCLASS_ : public flockIYoutubeService
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_FLOCKIYOUTUBESERVICE

  _MYCLASS_();

private:
  ~_MYCLASS_();

protected:
  /* additional members */
};

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

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

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

/* AString getVideoIDFromUrl (in AString aUrl); */
NS_IMETHODIMP _MYCLASS_::GetVideoIDFromUrl(const nsAString & aUrl, nsAString & _retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

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


#endif /* __gen_flockIYoutubeService_h__ */
