PageRenderTime 141ms CodeModel.GetById 40ms app.highlight 31ms RepoModel.GetById 30ms app.codeStats 5ms

/gecko_api/include/nsIDOMMediaList.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 156 lines | 88 code | 34 blank | 34 comment | 0 complexity | c81237ba96e61e7aa7602718d867f934 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/stylesheets/nsIDOMMediaList.idl
  3 */
  4
  5#ifndef __gen_nsIDOMMediaList_h__
  6#define __gen_nsIDOMMediaList_h__
  7
  8
  9#ifndef __gen_domstubs_h__
 10#include "domstubs.h"
 11#endif
 12
 13/* For IDL files that don't want to include root IDL files. */
 14#ifndef NS_NO_VTABLE
 15#define NS_NO_VTABLE
 16#endif
 17
 18/* starting interface:    nsIDOMMediaList */
 19#define NS_IDOMMEDIALIST_IID_STR "9b0c2ed7-111c-4824-adf9-ef0da6dad371"
 20
 21#define NS_IDOMMEDIALIST_IID \
 22  {0x9b0c2ed7, 0x111c, 0x4824, \
 23    { 0xad, 0xf9, 0xef, 0x0d, 0xa6, 0xda, 0xd3, 0x71 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMMediaList : public nsISupports {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMMEDIALIST_IID)
 29
 30  /**
 31 * The nsIDOMMediaList interface is a datatype for a list of media
 32 * types in the Document Object Model.
 33 *
 34 * For more information on this interface please see
 35 * http://www.w3.org/TR/DOM-Level-2-Style
 36 *
 37 * @status FROZEN
 38 */
 39  /* attribute DOMString mediaText; */
 40  NS_SCRIPTABLE NS_IMETHOD GetMediaText(nsAString & aMediaText) = 0;
 41  NS_SCRIPTABLE NS_IMETHOD SetMediaText(const nsAString & aMediaText) = 0;
 42
 43  /* readonly attribute unsigned long length; */
 44  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
 45
 46  /* DOMString item (in unsigned long index); */
 47  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) = 0;
 48
 49  /* void deleteMedium (in DOMString oldMedium)  raises (DOMException); */
 50  NS_SCRIPTABLE NS_IMETHOD DeleteMedium(const nsAString & oldMedium) = 0;
 51
 52  /* void appendMedium (in DOMString newMedium)  raises (DOMException); */
 53  NS_SCRIPTABLE NS_IMETHOD AppendMedium(const nsAString & newMedium) = 0;
 54
 55};
 56
 57  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMMediaList, NS_IDOMMEDIALIST_IID)
 58
 59/* Use this macro when declaring classes that implement this interface. */
 60#define NS_DECL_NSIDOMMEDIALIST \
 61  NS_SCRIPTABLE NS_IMETHOD GetMediaText(nsAString & aMediaText); \
 62  NS_SCRIPTABLE NS_IMETHOD SetMediaText(const nsAString & aMediaText); \
 63  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength); \
 64  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval); \
 65  NS_SCRIPTABLE NS_IMETHOD DeleteMedium(const nsAString & oldMedium); \
 66  NS_SCRIPTABLE NS_IMETHOD AppendMedium(const nsAString & newMedium); 
 67
 68/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 69#define NS_FORWARD_NSIDOMMEDIALIST(_to) \
 70  NS_SCRIPTABLE NS_IMETHOD GetMediaText(nsAString & aMediaText) { return _to GetMediaText(aMediaText); } \
 71  NS_SCRIPTABLE NS_IMETHOD SetMediaText(const nsAString & aMediaText) { return _to SetMediaText(aMediaText); } \
 72  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
 73  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return _to Item(index, _retval); } \
 74  NS_SCRIPTABLE NS_IMETHOD DeleteMedium(const nsAString & oldMedium) { return _to DeleteMedium(oldMedium); } \
 75  NS_SCRIPTABLE NS_IMETHOD AppendMedium(const nsAString & newMedium) { return _to AppendMedium(newMedium); } 
 76
 77/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 78#define NS_FORWARD_SAFE_NSIDOMMEDIALIST(_to) \
 79  NS_SCRIPTABLE NS_IMETHOD GetMediaText(nsAString & aMediaText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMediaText(aMediaText); } \
 80  NS_SCRIPTABLE NS_IMETHOD SetMediaText(const nsAString & aMediaText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMediaText(aMediaText); } \
 81  NS_SCRIPTABLE NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
 82  NS_SCRIPTABLE NS_IMETHOD Item(PRUint32 index, nsAString & _retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); } \
 83  NS_SCRIPTABLE NS_IMETHOD DeleteMedium(const nsAString & oldMedium) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteMedium(oldMedium); } \
 84  NS_SCRIPTABLE NS_IMETHOD AppendMedium(const nsAString & newMedium) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendMedium(newMedium); } 
 85
 86#if 0
 87/* Use the code below as a template for the implementation class for this interface. */
 88
 89/* Header file */
 90class nsDOMMediaList : public nsIDOMMediaList
 91{
 92public:
 93  NS_DECL_ISUPPORTS
 94  NS_DECL_NSIDOMMEDIALIST
 95
 96  nsDOMMediaList();
 97
 98private:
 99  ~nsDOMMediaList();
100
101protected:
102  /* additional members */
103};
104
105/* Implementation file */
106NS_IMPL_ISUPPORTS1(nsDOMMediaList, nsIDOMMediaList)
107
108nsDOMMediaList::nsDOMMediaList()
109{
110  /* member initializers and constructor code */
111}
112
113nsDOMMediaList::~nsDOMMediaList()
114{
115  /* destructor code */
116}
117
118/* attribute DOMString mediaText; */
119NS_IMETHODIMP nsDOMMediaList::GetMediaText(nsAString & aMediaText)
120{
121    return NS_ERROR_NOT_IMPLEMENTED;
122}
123NS_IMETHODIMP nsDOMMediaList::SetMediaText(const nsAString & aMediaText)
124{
125    return NS_ERROR_NOT_IMPLEMENTED;
126}
127
128/* readonly attribute unsigned long length; */
129NS_IMETHODIMP nsDOMMediaList::GetLength(PRUint32 *aLength)
130{
131    return NS_ERROR_NOT_IMPLEMENTED;
132}
133
134/* DOMString item (in unsigned long index); */
135NS_IMETHODIMP nsDOMMediaList::Item(PRUint32 index, nsAString & _retval)
136{
137    return NS_ERROR_NOT_IMPLEMENTED;
138}
139
140/* void deleteMedium (in DOMString oldMedium)  raises (DOMException); */
141NS_IMETHODIMP nsDOMMediaList::DeleteMedium(const nsAString & oldMedium)
142{
143    return NS_ERROR_NOT_IMPLEMENTED;
144}
145
146/* void appendMedium (in DOMString newMedium)  raises (DOMException); */
147NS_IMETHODIMP nsDOMMediaList::AppendMedium(const nsAString & newMedium)
148{
149    return NS_ERROR_NOT_IMPLEMENTED;
150}
151
152/* End of implementation class template. */
153#endif
154
155
156#endif /* __gen_nsIDOMMediaList_h__ */