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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/xul/document/public/nsIController.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIController_h__
       6                 : #define __gen_nsIController_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                 : 
      18                 : /* starting interface:    nsIController */
      19                 : #define NS_ICONTROLLER_IID_STR "d5b61b82-1da4-11d3-bf87-00105a1b0627"
      20                 : 
      21                 : #define NS_ICONTROLLER_IID \
      22                 :   {0xd5b61b82, 0x1da4, 0x11d3, \
      23                 :     { 0xbf, 0x87, 0x00, 0x10, 0x5a, 0x1b, 0x06, 0x27 }}
      24                 : 
      25               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIController : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTROLLER_IID)
      29                 : 
      30                 :   /* boolean isCommandEnabled (in string command); */
      31                 :   NS_SCRIPTABLE NS_IMETHOD IsCommandEnabled(const char * command, bool *_retval NS_OUTPARAM) = 0;
      32                 : 
      33                 :   /* boolean supportsCommand (in string command); */
      34                 :   NS_SCRIPTABLE NS_IMETHOD SupportsCommand(const char * command, bool *_retval NS_OUTPARAM) = 0;
      35                 : 
      36                 :   /* void doCommand (in string command); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD DoCommand(const char * command) = 0;
      38                 : 
      39                 :   /* void onEvent (in string eventName); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD OnEvent(const char * eventName) = 0;
      41                 : 
      42                 : };
      43                 : 
      44                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIController, NS_ICONTROLLER_IID)
      45                 : 
      46                 : /* Use this macro when declaring classes that implement this interface. */
      47                 : #define NS_DECL_NSICONTROLLER \
      48                 :   NS_SCRIPTABLE NS_IMETHOD IsCommandEnabled(const char * command, bool *_retval NS_OUTPARAM); \
      49                 :   NS_SCRIPTABLE NS_IMETHOD SupportsCommand(const char * command, bool *_retval NS_OUTPARAM); \
      50                 :   NS_SCRIPTABLE NS_IMETHOD DoCommand(const char * command); \
      51                 :   NS_SCRIPTABLE NS_IMETHOD OnEvent(const char * eventName); 
      52                 : 
      53                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      54                 : #define NS_FORWARD_NSICONTROLLER(_to) \
      55                 :   NS_SCRIPTABLE NS_IMETHOD IsCommandEnabled(const char * command, bool *_retval NS_OUTPARAM) { return _to IsCommandEnabled(command, _retval); } \
      56                 :   NS_SCRIPTABLE NS_IMETHOD SupportsCommand(const char * command, bool *_retval NS_OUTPARAM) { return _to SupportsCommand(command, _retval); } \
      57                 :   NS_SCRIPTABLE NS_IMETHOD DoCommand(const char * command) { return _to DoCommand(command); } \
      58                 :   NS_SCRIPTABLE NS_IMETHOD OnEvent(const char * eventName) { return _to OnEvent(eventName); } 
      59                 : 
      60                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      61                 : #define NS_FORWARD_SAFE_NSICONTROLLER(_to) \
      62                 :   NS_SCRIPTABLE NS_IMETHOD IsCommandEnabled(const char * command, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandEnabled(command, _retval); } \
      63                 :   NS_SCRIPTABLE NS_IMETHOD SupportsCommand(const char * command, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->SupportsCommand(command, _retval); } \
      64                 :   NS_SCRIPTABLE NS_IMETHOD DoCommand(const char * command) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommand(command); } \
      65                 :   NS_SCRIPTABLE NS_IMETHOD OnEvent(const char * eventName) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnEvent(eventName); } 
      66                 : 
      67                 : #if 0
      68                 : /* Use the code below as a template for the implementation class for this interface. */
      69                 : 
      70                 : /* Header file */
      71                 : class nsController : public nsIController
      72                 : {
      73                 : public:
      74                 :   NS_DECL_ISUPPORTS
      75                 :   NS_DECL_NSICONTROLLER
      76                 : 
      77                 :   nsController();
      78                 : 
      79                 : private:
      80                 :   ~nsController();
      81                 : 
      82                 : protected:
      83                 :   /* additional members */
      84                 : };
      85                 : 
      86                 : /* Implementation file */
      87                 : NS_IMPL_ISUPPORTS1(nsController, nsIController)
      88                 : 
      89                 : nsController::nsController()
      90                 : {
      91                 :   /* member initializers and constructor code */
      92                 : }
      93                 : 
      94                 : nsController::~nsController()
      95                 : {
      96                 :   /* destructor code */
      97                 : }
      98                 : 
      99                 : /* boolean isCommandEnabled (in string command); */
     100                 : NS_IMETHODIMP nsController::IsCommandEnabled(const char * command, bool *_retval NS_OUTPARAM)
     101                 : {
     102                 :     return NS_ERROR_NOT_IMPLEMENTED;
     103                 : }
     104                 : 
     105                 : /* boolean supportsCommand (in string command); */
     106                 : NS_IMETHODIMP nsController::SupportsCommand(const char * command, bool *_retval NS_OUTPARAM)
     107                 : {
     108                 :     return NS_ERROR_NOT_IMPLEMENTED;
     109                 : }
     110                 : 
     111                 : /* void doCommand (in string command); */
     112                 : NS_IMETHODIMP nsController::DoCommand(const char * command)
     113                 : {
     114                 :     return NS_ERROR_NOT_IMPLEMENTED;
     115                 : }
     116                 : 
     117                 : /* void onEvent (in string eventName); */
     118                 : NS_IMETHODIMP nsController::OnEvent(const char * eventName)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* End of implementation class template. */
     124                 : #endif
     125                 : 
     126                 : class nsICommandParams; /* forward declaration */
     127                 : 
     128                 : 
     129                 : /* starting interface:    nsICommandController */
     130                 : #define NS_ICOMMANDCONTROLLER_IID_STR "ebe55080-c8a9-11d5-a73c-dd620d6e04bc"
     131                 : 
     132                 : #define NS_ICOMMANDCONTROLLER_IID \
     133                 :   {0xebe55080, 0xc8a9, 0x11d5, \
     134                 :     { 0xa7, 0x3c, 0xdd, 0x62, 0x0d, 0x6e, 0x04, 0xbc }}
     135                 : 
     136               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsICommandController : public nsISupports {
     137                 :  public: 
     138                 : 
     139                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOMMANDCONTROLLER_IID)
     140                 : 
     141                 :   /* void getCommandStateWithParams (in string command, in nsICommandParams aCommandParams); */
     142                 :   NS_SCRIPTABLE NS_IMETHOD GetCommandStateWithParams(const char * command, nsICommandParams *aCommandParams) = 0;
     143                 : 
     144                 :   /* void doCommandWithParams (in string command, in nsICommandParams aCommandParams); */
     145                 :   NS_SCRIPTABLE NS_IMETHOD DoCommandWithParams(const char * command, nsICommandParams *aCommandParams) = 0;
     146                 : 
     147                 : };
     148                 : 
     149                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICommandController, NS_ICOMMANDCONTROLLER_IID)
     150                 : 
     151                 : /* Use this macro when declaring classes that implement this interface. */
     152                 : #define NS_DECL_NSICOMMANDCONTROLLER \
     153                 :   NS_SCRIPTABLE NS_IMETHOD GetCommandStateWithParams(const char * command, nsICommandParams *aCommandParams); \
     154                 :   NS_SCRIPTABLE NS_IMETHOD DoCommandWithParams(const char * command, nsICommandParams *aCommandParams); 
     155                 : 
     156                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     157                 : #define NS_FORWARD_NSICOMMANDCONTROLLER(_to) \
     158                 :   NS_SCRIPTABLE NS_IMETHOD GetCommandStateWithParams(const char * command, nsICommandParams *aCommandParams) { return _to GetCommandStateWithParams(command, aCommandParams); } \
     159                 :   NS_SCRIPTABLE NS_IMETHOD DoCommandWithParams(const char * command, nsICommandParams *aCommandParams) { return _to DoCommandWithParams(command, aCommandParams); } 
     160                 : 
     161                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     162                 : #define NS_FORWARD_SAFE_NSICOMMANDCONTROLLER(_to) \
     163                 :   NS_SCRIPTABLE NS_IMETHOD GetCommandStateWithParams(const char * command, nsICommandParams *aCommandParams) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommandStateWithParams(command, aCommandParams); } \
     164                 :   NS_SCRIPTABLE NS_IMETHOD DoCommandWithParams(const char * command, nsICommandParams *aCommandParams) { return !_to ? NS_ERROR_NULL_POINTER : _to->DoCommandWithParams(command, aCommandParams); } 
     165                 : 
     166                 : #if 0
     167                 : /* Use the code below as a template for the implementation class for this interface. */
     168                 : 
     169                 : /* Header file */
     170                 : class nsCommandController : public nsICommandController
     171                 : {
     172                 : public:
     173                 :   NS_DECL_ISUPPORTS
     174                 :   NS_DECL_NSICOMMANDCONTROLLER
     175                 : 
     176                 :   nsCommandController();
     177                 : 
     178                 : private:
     179                 :   ~nsCommandController();
     180                 : 
     181                 : protected:
     182                 :   /* additional members */
     183                 : };
     184                 : 
     185                 : /* Implementation file */
     186                 : NS_IMPL_ISUPPORTS1(nsCommandController, nsICommandController)
     187                 : 
     188                 : nsCommandController::nsCommandController()
     189                 : {
     190                 :   /* member initializers and constructor code */
     191                 : }
     192                 : 
     193                 : nsCommandController::~nsCommandController()
     194                 : {
     195                 :   /* destructor code */
     196                 : }
     197                 : 
     198                 : /* void getCommandStateWithParams (in string command, in nsICommandParams aCommandParams); */
     199                 : NS_IMETHODIMP nsCommandController::GetCommandStateWithParams(const char * command, nsICommandParams *aCommandParams)
     200                 : {
     201                 :     return NS_ERROR_NOT_IMPLEMENTED;
     202                 : }
     203                 : 
     204                 : /* void doCommandWithParams (in string command, in nsICommandParams aCommandParams); */
     205                 : NS_IMETHODIMP nsCommandController::DoCommandWithParams(const char * command, nsICommandParams *aCommandParams)
     206                 : {
     207                 :     return NS_ERROR_NOT_IMPLEMENTED;
     208                 : }
     209                 : 
     210                 : /* End of implementation class template. */
     211                 : #endif
     212                 : 
     213                 : class nsISimpleEnumerator; /* forward declaration */
     214                 : 
     215                 : 
     216                 : /* starting interface:    nsIControllerCommandGroup */
     217                 : #define NS_ICONTROLLERCOMMANDGROUP_IID_STR "9f82c404-1c7b-11d5-a73c-eca43ca836fc"
     218                 : 
     219                 : #define NS_ICONTROLLERCOMMANDGROUP_IID \
     220                 :   {0x9f82c404, 0x1c7b, 0x11d5, \
     221                 :     { 0xa7, 0x3c, 0xec, 0xa4, 0x3c, 0xa8, 0x36, 0xfc }}
     222                 : 
     223               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIControllerCommandGroup : public nsISupports {
     224                 :  public: 
     225                 : 
     226                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICONTROLLERCOMMANDGROUP_IID)
     227                 : 
     228                 :   /* void addCommandToGroup (in string aCommand, in string aGroup); */
     229                 :   NS_SCRIPTABLE NS_IMETHOD AddCommandToGroup(const char * aCommand, const char * aGroup) = 0;
     230                 : 
     231                 :   /* void removeCommandFromGroup (in string aCommand, in string aGroup); */
     232                 :   NS_SCRIPTABLE NS_IMETHOD RemoveCommandFromGroup(const char * aCommand, const char * aGroup) = 0;
     233                 : 
     234                 :   /* boolean isCommandInGroup (in string aCommand, in string aGroup); */
     235                 :   NS_SCRIPTABLE NS_IMETHOD IsCommandInGroup(const char * aCommand, const char * aGroup, bool *_retval NS_OUTPARAM) = 0;
     236                 : 
     237                 :   /* nsISimpleEnumerator getGroupsEnumerator (); */
     238                 :   NS_SCRIPTABLE NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
     239                 : 
     240                 :   /* nsISimpleEnumerator getEnumeratorForGroup (in string aGroup); */
     241                 :   NS_SCRIPTABLE NS_IMETHOD GetEnumeratorForGroup(const char * aGroup, nsISimpleEnumerator * *_retval NS_OUTPARAM) = 0;
     242                 : 
     243                 : };
     244                 : 
     245                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIControllerCommandGroup, NS_ICONTROLLERCOMMANDGROUP_IID)
     246                 : 
     247                 : /* Use this macro when declaring classes that implement this interface. */
     248                 : #define NS_DECL_NSICONTROLLERCOMMANDGROUP \
     249                 :   NS_SCRIPTABLE NS_IMETHOD AddCommandToGroup(const char * aCommand, const char * aGroup); \
     250                 :   NS_SCRIPTABLE NS_IMETHOD RemoveCommandFromGroup(const char * aCommand, const char * aGroup); \
     251                 :   NS_SCRIPTABLE NS_IMETHOD IsCommandInGroup(const char * aCommand, const char * aGroup, bool *_retval NS_OUTPARAM); \
     252                 :   NS_SCRIPTABLE NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM); \
     253                 :   NS_SCRIPTABLE NS_IMETHOD GetEnumeratorForGroup(const char * aGroup, nsISimpleEnumerator * *_retval NS_OUTPARAM); 
     254                 : 
     255                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     256                 : #define NS_FORWARD_NSICONTROLLERCOMMANDGROUP(_to) \
     257                 :   NS_SCRIPTABLE NS_IMETHOD AddCommandToGroup(const char * aCommand, const char * aGroup) { return _to AddCommandToGroup(aCommand, aGroup); } \
     258                 :   NS_SCRIPTABLE NS_IMETHOD RemoveCommandFromGroup(const char * aCommand, const char * aGroup) { return _to RemoveCommandFromGroup(aCommand, aGroup); } \
     259                 :   NS_SCRIPTABLE NS_IMETHOD IsCommandInGroup(const char * aCommand, const char * aGroup, bool *_retval NS_OUTPARAM) { return _to IsCommandInGroup(aCommand, aGroup, _retval); } \
     260                 :   NS_SCRIPTABLE NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetGroupsEnumerator(_retval); } \
     261                 :   NS_SCRIPTABLE NS_IMETHOD GetEnumeratorForGroup(const char * aGroup, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetEnumeratorForGroup(aGroup, _retval); } 
     262                 : 
     263                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     264                 : #define NS_FORWARD_SAFE_NSICONTROLLERCOMMANDGROUP(_to) \
     265                 :   NS_SCRIPTABLE NS_IMETHOD AddCommandToGroup(const char * aCommand, const char * aGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddCommandToGroup(aCommand, aGroup); } \
     266                 :   NS_SCRIPTABLE NS_IMETHOD RemoveCommandFromGroup(const char * aCommand, const char * aGroup) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveCommandFromGroup(aCommand, aGroup); } \
     267                 :   NS_SCRIPTABLE NS_IMETHOD IsCommandInGroup(const char * aCommand, const char * aGroup, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCommandInGroup(aCommand, aGroup, _retval); } \
     268                 :   NS_SCRIPTABLE NS_IMETHOD GetGroupsEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupsEnumerator(_retval); } \
     269                 :   NS_SCRIPTABLE NS_IMETHOD GetEnumeratorForGroup(const char * aGroup, nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnumeratorForGroup(aGroup, _retval); } 
     270                 : 
     271                 : #if 0
     272                 : /* Use the code below as a template for the implementation class for this interface. */
     273                 : 
     274                 : /* Header file */
     275                 : class nsControllerCommandGroup : public nsIControllerCommandGroup
     276                 : {
     277                 : public:
     278                 :   NS_DECL_ISUPPORTS
     279                 :   NS_DECL_NSICONTROLLERCOMMANDGROUP
     280                 : 
     281                 :   nsControllerCommandGroup();
     282                 : 
     283                 : private:
     284                 :   ~nsControllerCommandGroup();
     285                 : 
     286                 : protected:
     287                 :   /* additional members */
     288                 : };
     289                 : 
     290                 : /* Implementation file */
     291                 : NS_IMPL_ISUPPORTS1(nsControllerCommandGroup, nsIControllerCommandGroup)
     292                 : 
     293                 : nsControllerCommandGroup::nsControllerCommandGroup()
     294                 : {
     295                 :   /* member initializers and constructor code */
     296                 : }
     297                 : 
     298                 : nsControllerCommandGroup::~nsControllerCommandGroup()
     299                 : {
     300                 :   /* destructor code */
     301                 : }
     302                 : 
     303                 : /* void addCommandToGroup (in string aCommand, in string aGroup); */
     304                 : NS_IMETHODIMP nsControllerCommandGroup::AddCommandToGroup(const char * aCommand, const char * aGroup)
     305                 : {
     306                 :     return NS_ERROR_NOT_IMPLEMENTED;
     307                 : }
     308                 : 
     309                 : /* void removeCommandFromGroup (in string aCommand, in string aGroup); */
     310                 : NS_IMETHODIMP nsControllerCommandGroup::RemoveCommandFromGroup(const char * aCommand, const char * aGroup)
     311                 : {
     312                 :     return NS_ERROR_NOT_IMPLEMENTED;
     313                 : }
     314                 : 
     315                 : /* boolean isCommandInGroup (in string aCommand, in string aGroup); */
     316                 : NS_IMETHODIMP nsControllerCommandGroup::IsCommandInGroup(const char * aCommand, const char * aGroup, bool *_retval NS_OUTPARAM)
     317                 : {
     318                 :     return NS_ERROR_NOT_IMPLEMENTED;
     319                 : }
     320                 : 
     321                 : /* nsISimpleEnumerator getGroupsEnumerator (); */
     322                 : NS_IMETHODIMP nsControllerCommandGroup::GetGroupsEnumerator(nsISimpleEnumerator * *_retval NS_OUTPARAM)
     323                 : {
     324                 :     return NS_ERROR_NOT_IMPLEMENTED;
     325                 : }
     326                 : 
     327                 : /* nsISimpleEnumerator getEnumeratorForGroup (in string aGroup); */
     328                 : NS_IMETHODIMP nsControllerCommandGroup::GetEnumeratorForGroup(const char * aGroup, nsISimpleEnumerator * *_retval NS_OUTPARAM)
     329                 : {
     330                 :     return NS_ERROR_NOT_IMPLEMENTED;
     331                 : }
     332                 : 
     333                 : /* End of implementation class template. */
     334                 : #endif
     335                 : 
     336                 : 
     337                 : #endif /* __gen_nsIController_h__ */

Generated by: LCOV version 1.7