LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIClipboard.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/widget/nsIClipboard.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIClipboard_h__
       6                 : #define __gen_nsIClipboard_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsITransferable_h__
      14                 : #include "nsITransferable.h"
      15                 : #endif
      16                 : 
      17                 : #ifndef __gen_nsIClipboardOwner_h__
      18                 : #include "nsIClipboardOwner.h"
      19                 : #endif
      20                 : 
      21                 : /* For IDL files that don't want to include root IDL files. */
      22                 : #ifndef NS_NO_VTABLE
      23                 : #define NS_NO_VTABLE
      24                 : #endif
      25                 : class nsIArray; /* forward declaration */
      26                 : 
      27                 : 
      28                 : /* starting interface:    nsIClipboard */
      29                 : #define NS_ICLIPBOARD_IID_STR "38984945-8674-4d04-b786-5c0ca9434457"
      30                 : 
      31                 : #define NS_ICLIPBOARD_IID \
      32                 :   {0x38984945, 0x8674, 0x4d04, \
      33                 :     { 0xb7, 0x86, 0x5c, 0x0c, 0xa9, 0x43, 0x44, 0x57 }}
      34                 : 
      35               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIClipboard : public nsISupports {
      36                 :  public: 
      37                 : 
      38                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICLIPBOARD_IID)
      39                 : 
      40                 :   enum {
      41                 :     kSelectionClipboard = 0,
      42                 :     kGlobalClipboard = 1
      43                 :   };
      44                 : 
      45                 :   /* void setData (in nsITransferable aTransferable, in nsIClipboardOwner anOwner, in long aWhichClipboard); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD SetData(nsITransferable *aTransferable, nsIClipboardOwner *anOwner, PRInt32 aWhichClipboard) = 0;
      47                 : 
      48                 :   /* void getData (in nsITransferable aTransferable, in long aWhichClipboard); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRInt32 aWhichClipboard) = 0;
      50                 : 
      51                 :   /* void emptyClipboard (in long aWhichClipboard); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD EmptyClipboard(PRInt32 aWhichClipboard) = 0;
      53                 : 
      54                 :   /* boolean hasDataMatchingFlavors ([array, size_is (aLength)] in string aFlavorList, in unsigned long aLength, in long aWhichClipboard); */
      55                 :   NS_SCRIPTABLE NS_IMETHOD HasDataMatchingFlavors(const char * *aFlavorList, PRUint32 aLength, PRInt32 aWhichClipboard, bool *_retval NS_OUTPARAM) = 0;
      56                 : 
      57                 :   /* boolean supportsSelectionClipboard (); */
      58                 :   NS_SCRIPTABLE NS_IMETHOD SupportsSelectionClipboard(bool *_retval NS_OUTPARAM) = 0;
      59                 : 
      60                 : };
      61                 : 
      62                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIClipboard, NS_ICLIPBOARD_IID)
      63                 : 
      64                 : /* Use this macro when declaring classes that implement this interface. */
      65                 : #define NS_DECL_NSICLIPBOARD \
      66                 :   NS_SCRIPTABLE NS_IMETHOD SetData(nsITransferable *aTransferable, nsIClipboardOwner *anOwner, PRInt32 aWhichClipboard); \
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRInt32 aWhichClipboard); \
      68                 :   NS_SCRIPTABLE NS_IMETHOD EmptyClipboard(PRInt32 aWhichClipboard); \
      69                 :   NS_SCRIPTABLE NS_IMETHOD HasDataMatchingFlavors(const char * *aFlavorList, PRUint32 aLength, PRInt32 aWhichClipboard, bool *_retval NS_OUTPARAM); \
      70                 :   NS_SCRIPTABLE NS_IMETHOD SupportsSelectionClipboard(bool *_retval NS_OUTPARAM); 
      71                 : 
      72                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      73                 : #define NS_FORWARD_NSICLIPBOARD(_to) \
      74                 :   NS_SCRIPTABLE NS_IMETHOD SetData(nsITransferable *aTransferable, nsIClipboardOwner *anOwner, PRInt32 aWhichClipboard) { return _to SetData(aTransferable, anOwner, aWhichClipboard); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRInt32 aWhichClipboard) { return _to GetData(aTransferable, aWhichClipboard); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD EmptyClipboard(PRInt32 aWhichClipboard) { return _to EmptyClipboard(aWhichClipboard); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD HasDataMatchingFlavors(const char * *aFlavorList, PRUint32 aLength, PRInt32 aWhichClipboard, bool *_retval NS_OUTPARAM) { return _to HasDataMatchingFlavors(aFlavorList, aLength, aWhichClipboard, _retval); } \
      78                 :   NS_SCRIPTABLE NS_IMETHOD SupportsSelectionClipboard(bool *_retval NS_OUTPARAM) { return _to SupportsSelectionClipboard(_retval); } 
      79                 : 
      80                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      81                 : #define NS_FORWARD_SAFE_NSICLIPBOARD(_to) \
      82                 :   NS_SCRIPTABLE NS_IMETHOD SetData(nsITransferable *aTransferable, nsIClipboardOwner *anOwner, PRInt32 aWhichClipboard) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(aTransferable, anOwner, aWhichClipboard); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD GetData(nsITransferable *aTransferable, PRInt32 aWhichClipboard) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aTransferable, aWhichClipboard); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD EmptyClipboard(PRInt32 aWhichClipboard) { return !_to ? NS_ERROR_NULL_POINTER : _to->EmptyClipboard(aWhichClipboard); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD HasDataMatchingFlavors(const char * *aFlavorList, PRUint32 aLength, PRInt32 aWhichClipboard, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasDataMatchingFlavors(aFlavorList, aLength, aWhichClipboard, _retval); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD SupportsSelectionClipboard(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsSelectionClipboard(_retval); } 
      87                 : 
      88                 : #if 0
      89                 : /* Use the code below as a template for the implementation class for this interface. */
      90                 : 
      91                 : /* Header file */
      92                 : class nsClipboard : public nsIClipboard
      93                 : {
      94                 : public:
      95                 :   NS_DECL_ISUPPORTS
      96                 :   NS_DECL_NSICLIPBOARD
      97                 : 
      98                 :   nsClipboard();
      99                 : 
     100                 : private:
     101                 :   ~nsClipboard();
     102                 : 
     103                 : protected:
     104                 :   /* additional members */
     105                 : };
     106                 : 
     107                 : /* Implementation file */
     108                 : NS_IMPL_ISUPPORTS1(nsClipboard, nsIClipboard)
     109                 : 
     110                 : nsClipboard::nsClipboard()
     111                 : {
     112                 :   /* member initializers and constructor code */
     113                 : }
     114                 : 
     115                 : nsClipboard::~nsClipboard()
     116                 : {
     117                 :   /* destructor code */
     118                 : }
     119                 : 
     120                 : /* void setData (in nsITransferable aTransferable, in nsIClipboardOwner anOwner, in long aWhichClipboard); */
     121                 : NS_IMETHODIMP nsClipboard::SetData(nsITransferable *aTransferable, nsIClipboardOwner *anOwner, PRInt32 aWhichClipboard)
     122                 : {
     123                 :     return NS_ERROR_NOT_IMPLEMENTED;
     124                 : }
     125                 : 
     126                 : /* void getData (in nsITransferable aTransferable, in long aWhichClipboard); */
     127                 : NS_IMETHODIMP nsClipboard::GetData(nsITransferable *aTransferable, PRInt32 aWhichClipboard)
     128                 : {
     129                 :     return NS_ERROR_NOT_IMPLEMENTED;
     130                 : }
     131                 : 
     132                 : /* void emptyClipboard (in long aWhichClipboard); */
     133                 : NS_IMETHODIMP nsClipboard::EmptyClipboard(PRInt32 aWhichClipboard)
     134                 : {
     135                 :     return NS_ERROR_NOT_IMPLEMENTED;
     136                 : }
     137                 : 
     138                 : /* boolean hasDataMatchingFlavors ([array, size_is (aLength)] in string aFlavorList, in unsigned long aLength, in long aWhichClipboard); */
     139                 : NS_IMETHODIMP nsClipboard::HasDataMatchingFlavors(const char * *aFlavorList, PRUint32 aLength, PRInt32 aWhichClipboard, bool *_retval NS_OUTPARAM)
     140                 : {
     141                 :     return NS_ERROR_NOT_IMPLEMENTED;
     142                 : }
     143                 : 
     144                 : /* boolean supportsSelectionClipboard (); */
     145                 : NS_IMETHODIMP nsClipboard::SupportsSelectionClipboard(bool *_retval NS_OUTPARAM)
     146                 : {
     147                 :     return NS_ERROR_NOT_IMPLEMENTED;
     148                 : }
     149                 : 
     150                 : /* End of implementation class template. */
     151                 : #endif
     152                 : 
     153                 : 
     154                 : 
     155                 : #endif /* __gen_nsIClipboard_h__ */

Generated by: LCOV version 1.7