LCOV - app.info - objdir/dist/include/nsIShellService.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIShellService.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 1 | 1 | 100.0 %
| Date: | 2012-04-21 | Functions: | 1 | 1 | 100.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/browser/components/shell/public/nsIShellService.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIShellService_h__
           6                 : #define __gen_nsIShellService_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsISupports_h__
          10                 : #include "nsISupports.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                 : class nsIDOMElement; /* forward declaration */
          18                 :
          19                 : class nsILocalFile; /* forward declaration */
          20                 :
          21                 :
          22                 : /* starting interface:    nsIShellService */
          23                 : #define NS_ISHELLSERVICE_IID_STR "bb477da4-dddf-4106-a562-f06c85c7f9a8"
          24                 :
          25                 : #define NS_ISHELLSERVICE_IID \
          26                 :   {0xbb477da4, 0xdddf, 0x4106, \
          27                 :     { 0xa5, 0x62, 0xf0, 0x6c, 0x85, 0xc7, 0xf9, 0xa8 }}
          28                 :
          29               1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIShellService : public nsISupports {
          30                 :  public:
          31                 :
          32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISHELLSERVICE_IID)
          33                 :
          34                 :   /* boolean isDefaultBrowser (in boolean aStartupCheck); */
          35                 :   NS_SCRIPTABLE NS_IMETHOD IsDefaultBrowser(bool aStartupCheck, bool *_retval NS_OUTPARAM) = 0;
          36                 :
          37                 :   /* void setDefaultBrowser (in boolean aClaimAllTypes, in boolean aForAllUsers); */
          38                 :   NS_SCRIPTABLE NS_IMETHOD SetDefaultBrowser(bool aClaimAllTypes, bool aForAllUsers) = 0;
          39                 :
          40                 :   /* attribute boolean shouldCheckDefaultBrowser; */
          41                 :   NS_SCRIPTABLE NS_IMETHOD GetShouldCheckDefaultBrowser(bool *aShouldCheckDefaultBrowser) = 0;
          42                 :   NS_SCRIPTABLE NS_IMETHOD SetShouldCheckDefaultBrowser(bool aShouldCheckDefaultBrowser) = 0;
          43                 :
          44                 :   enum {
          45                 :     BACKGROUND_TILE = 1,
          46                 :     BACKGROUND_STRETCH = 2,
          47                 :     BACKGROUND_CENTER = 3,
          48                 :     BACKGROUND_FILL = 4,
          49                 :     BACKGROUND_FIT = 5
          50                 :   };
          51                 :
          52                 :   /* void setDesktopBackground (in nsIDOMElement aElement, in long aPosition); */
          53                 :   NS_SCRIPTABLE NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, PRInt32 aPosition) = 0;
          54                 :
          55                 :   enum {
          56                 :     APPLICATION_MAIL = 0,
          57                 :     APPLICATION_NEWS = 1
          58                 :   };
          59                 :
          60                 :   /* void openApplication (in long aApplication); */
          61                 :   NS_SCRIPTABLE NS_IMETHOD OpenApplication(PRInt32 aApplication) = 0;
          62                 :
          63                 :   /* attribute unsigned long desktopBackgroundColor; */
          64                 :   NS_SCRIPTABLE NS_IMETHOD GetDesktopBackgroundColor(PRUint32 *aDesktopBackgroundColor) = 0;
          65                 :   NS_SCRIPTABLE NS_IMETHOD SetDesktopBackgroundColor(PRUint32 aDesktopBackgroundColor) = 0;
          66                 :
          67                 :   /* void openApplicationWithURI (in nsILocalFile aApplication, in ACString aURI); */
          68                 :   NS_SCRIPTABLE NS_IMETHOD OpenApplicationWithURI(nsILocalFile *aApplication, const nsACString & aURI) = 0;
          69                 :
          70                 :   /* readonly attribute nsILocalFile defaultFeedReader; */
          71                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultFeedReader(nsILocalFile * *aDefaultFeedReader) = 0;
          72                 :
          73                 : };
          74                 :
          75                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIShellService, NS_ISHELLSERVICE_IID)
          76                 :
          77                 : /* Use this macro when declaring classes that implement this interface. */
          78                 : #define NS_DECL_NSISHELLSERVICE \
          79                 :   NS_SCRIPTABLE NS_IMETHOD IsDefaultBrowser(bool aStartupCheck, bool *_retval NS_OUTPARAM); \
          80                 :   NS_SCRIPTABLE NS_IMETHOD SetDefaultBrowser(bool aClaimAllTypes, bool aForAllUsers); \
          81                 :   NS_SCRIPTABLE NS_IMETHOD GetShouldCheckDefaultBrowser(bool *aShouldCheckDefaultBrowser); \
          82                 :   NS_SCRIPTABLE NS_IMETHOD SetShouldCheckDefaultBrowser(bool aShouldCheckDefaultBrowser); \
          83                 :   NS_SCRIPTABLE NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, PRInt32 aPosition); \
          84                 :   NS_SCRIPTABLE NS_IMETHOD OpenApplication(PRInt32 aApplication); \
          85                 :   NS_SCRIPTABLE NS_IMETHOD GetDesktopBackgroundColor(PRUint32 *aDesktopBackgroundColor); \
          86                 :   NS_SCRIPTABLE NS_IMETHOD SetDesktopBackgroundColor(PRUint32 aDesktopBackgroundColor); \
          87                 :   NS_SCRIPTABLE NS_IMETHOD OpenApplicationWithURI(nsILocalFile *aApplication, const nsACString & aURI); \
          88                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultFeedReader(nsILocalFile * *aDefaultFeedReader);
          89                 :
          90                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          91                 : #define NS_FORWARD_NSISHELLSERVICE(_to) \
          92                 :   NS_SCRIPTABLE NS_IMETHOD IsDefaultBrowser(bool aStartupCheck, bool *_retval NS_OUTPARAM) { return _to IsDefaultBrowser(aStartupCheck, _retval); } \
          93                 :   NS_SCRIPTABLE NS_IMETHOD SetDefaultBrowser(bool aClaimAllTypes, bool aForAllUsers) { return _to SetDefaultBrowser(aClaimAllTypes, aForAllUsers); } \
          94                 :   NS_SCRIPTABLE NS_IMETHOD GetShouldCheckDefaultBrowser(bool *aShouldCheckDefaultBrowser) { return _to GetShouldCheckDefaultBrowser(aShouldCheckDefaultBrowser); } \
          95                 :   NS_SCRIPTABLE NS_IMETHOD SetShouldCheckDefaultBrowser(bool aShouldCheckDefaultBrowser) { return _to SetShouldCheckDefaultBrowser(aShouldCheckDefaultBrowser); } \
          96                 :   NS_SCRIPTABLE NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, PRInt32 aPosition) { return _to SetDesktopBackground(aElement, aPosition); } \
          97                 :   NS_SCRIPTABLE NS_IMETHOD OpenApplication(PRInt32 aApplication) { return _to OpenApplication(aApplication); } \
          98                 :   NS_SCRIPTABLE NS_IMETHOD GetDesktopBackgroundColor(PRUint32 *aDesktopBackgroundColor) { return _to GetDesktopBackgroundColor(aDesktopBackgroundColor); } \
          99                 :   NS_SCRIPTABLE NS_IMETHOD SetDesktopBackgroundColor(PRUint32 aDesktopBackgroundColor) { return _to SetDesktopBackgroundColor(aDesktopBackgroundColor); } \
         100                 :   NS_SCRIPTABLE NS_IMETHOD OpenApplicationWithURI(nsILocalFile *aApplication, const nsACString & aURI) { return _to OpenApplicationWithURI(aApplication, aURI); } \
         101                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultFeedReader(nsILocalFile * *aDefaultFeedReader) { return _to GetDefaultFeedReader(aDefaultFeedReader); }
         102                 :
         103                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         104                 : #define NS_FORWARD_SAFE_NSISHELLSERVICE(_to) \
         105                 :   NS_SCRIPTABLE NS_IMETHOD IsDefaultBrowser(bool aStartupCheck, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsDefaultBrowser(aStartupCheck, _retval); } \
         106                 :   NS_SCRIPTABLE NS_IMETHOD SetDefaultBrowser(bool aClaimAllTypes, bool aForAllUsers) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultBrowser(aClaimAllTypes, aForAllUsers); } \
         107                 :   NS_SCRIPTABLE NS_IMETHOD GetShouldCheckDefaultBrowser(bool *aShouldCheckDefaultBrowser) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShouldCheckDefaultBrowser(aShouldCheckDefaultBrowser); } \
         108                 :   NS_SCRIPTABLE NS_IMETHOD SetShouldCheckDefaultBrowser(bool aShouldCheckDefaultBrowser) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShouldCheckDefaultBrowser(aShouldCheckDefaultBrowser); } \
         109                 :   NS_SCRIPTABLE NS_IMETHOD SetDesktopBackground(nsIDOMElement *aElement, PRInt32 aPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDesktopBackground(aElement, aPosition); } \
         110                 :   NS_SCRIPTABLE NS_IMETHOD OpenApplication(PRInt32 aApplication) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenApplication(aApplication); } \
         111                 :   NS_SCRIPTABLE NS_IMETHOD GetDesktopBackgroundColor(PRUint32 *aDesktopBackgroundColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDesktopBackgroundColor(aDesktopBackgroundColor); } \
         112                 :   NS_SCRIPTABLE NS_IMETHOD SetDesktopBackgroundColor(PRUint32 aDesktopBackgroundColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDesktopBackgroundColor(aDesktopBackgroundColor); } \
         113                 :   NS_SCRIPTABLE NS_IMETHOD OpenApplicationWithURI(nsILocalFile *aApplication, const nsACString & aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->OpenApplicationWithURI(aApplication, aURI); } \
         114                 :   NS_SCRIPTABLE NS_IMETHOD GetDefaultFeedReader(nsILocalFile * *aDefaultFeedReader) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultFeedReader(aDefaultFeedReader); }
         115                 :
         116                 : #if 0
         117                 : /* Use the code below as a template for the implementation class for this interface. */
         118                 :
         119                 : /* Header file */
         120                 : class nsShellService : public nsIShellService
         121                 : {
         122                 : public:
         123                 :   NS_DECL_ISUPPORTS
         124                 :   NS_DECL_NSISHELLSERVICE
         125                 :
         126                 :   nsShellService();
         127                 :
         128                 : private:
         129                 :   ~nsShellService();
         130                 :
         131                 : protected:
         132                 :   /* additional members */
         133                 : };
         134                 :
         135                 : /* Implementation file */
         136                 : NS_IMPL_ISUPPORTS1(nsShellService, nsIShellService)
         137                 :
         138                 : nsShellService::nsShellService()
         139                 : {
         140                 :   /* member initializers and constructor code */
         141                 : }
         142                 :
         143                 : nsShellService::~nsShellService()
         144                 : {
         145                 :   /* destructor code */
         146                 : }
         147                 :
         148                 : /* boolean isDefaultBrowser (in boolean aStartupCheck); */
         149                 : NS_IMETHODIMP nsShellService::IsDefaultBrowser(bool aStartupCheck, bool *_retval NS_OUTPARAM)
         150                 : {
         151                 :     return NS_ERROR_NOT_IMPLEMENTED;
         152                 : }
         153                 :
         154                 : /* void setDefaultBrowser (in boolean aClaimAllTypes, in boolean aForAllUsers); */
         155                 : NS_IMETHODIMP nsShellService::SetDefaultBrowser(bool aClaimAllTypes, bool aForAllUsers)
         156                 : {
         157                 :     return NS_ERROR_NOT_IMPLEMENTED;
         158                 : }
         159                 :
         160                 : /* attribute boolean shouldCheckDefaultBrowser; */
         161                 : NS_IMETHODIMP nsShellService::GetShouldCheckDefaultBrowser(bool *aShouldCheckDefaultBrowser)
         162                 : {
         163                 :     return NS_ERROR_NOT_IMPLEMENTED;
         164                 : }
         165                 : NS_IMETHODIMP nsShellService::SetShouldCheckDefaultBrowser(bool aShouldCheckDefaultBrowser)
         166                 : {
         167                 :     return NS_ERROR_NOT_IMPLEMENTED;
         168                 : }
         169                 :
         170                 : /* void setDesktopBackground (in nsIDOMElement aElement, in long aPosition); */
         171                 : NS_IMETHODIMP nsShellService::SetDesktopBackground(nsIDOMElement *aElement, PRInt32 aPosition)
         172                 : {
         173                 :     return NS_ERROR_NOT_IMPLEMENTED;
         174                 : }
         175                 :
         176                 : /* void openApplication (in long aApplication); */
         177                 : NS_IMETHODIMP nsShellService::OpenApplication(PRInt32 aApplication)
         178                 : {
         179                 :     return NS_ERROR_NOT_IMPLEMENTED;
         180                 : }
         181                 :
         182                 : /* attribute unsigned long desktopBackgroundColor; */
         183                 : NS_IMETHODIMP nsShellService::GetDesktopBackgroundColor(PRUint32 *aDesktopBackgroundColor)
         184                 : {
         185                 :     return NS_ERROR_NOT_IMPLEMENTED;
         186                 : }
         187                 : NS_IMETHODIMP nsShellService::SetDesktopBackgroundColor(PRUint32 aDesktopBackgroundColor)
         188                 : {
         189                 :     return NS_ERROR_NOT_IMPLEMENTED;
         190                 : }
         191                 :
         192                 : /* void openApplicationWithURI (in nsILocalFile aApplication, in ACString aURI); */
         193                 : NS_IMETHODIMP nsShellService::OpenApplicationWithURI(nsILocalFile *aApplication, const nsACString & aURI)
         194                 : {
         195                 :     return NS_ERROR_NOT_IMPLEMENTED;
         196                 : }
         197                 :
         198                 : /* readonly attribute nsILocalFile defaultFeedReader; */
         199                 : NS_IMETHODIMP nsShellService::GetDefaultFeedReader(nsILocalFile * *aDefaultFeedReader)
         200                 : {
         201                 :     return NS_ERROR_NOT_IMPLEMENTED;
         202                 : }
         203                 :
         204                 : /* End of implementation class template. */
         205                 : #endif
         206                 :
         207                 :
         208                 : #endif /* __gen_nsIShellService_h__ */

Generated by: LCOV version 1.7