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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsISecretDecoderRing.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsISecretDecoderRing_h__
       6                 : #define __gen_nsISecretDecoderRing_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:    nsISecretDecoderRing */
      19                 : #define NS_ISECRETDECODERRING_IID_STR "0ec80360-075c-11d4-9fd4-00c04f1b83d8"
      20                 : 
      21                 : #define NS_ISECRETDECODERRING_IID \
      22                 :   {0x0ec80360, 0x075c, 0x11d4, \
      23                 :     { 0x9f, 0xd4, 0x00, 0xc0, 0x4f, 0x1b, 0x83, 0xd8 }}
      24                 : 
      25              65 : class NS_NO_VTABLE NS_SCRIPTABLE nsISecretDecoderRing : public nsISupports {
      26                 :  public: 
      27                 : 
      28                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISECRETDECODERRING_IID)
      29                 : 
      30                 :   /* [noscript] long encrypt (in buffer data, in long dataLen, out buffer result); */
      31                 :   NS_IMETHOD Encrypt(unsigned char *data, PRInt32 dataLen, unsigned char **result NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM) = 0;
      32                 : 
      33                 :   /* [noscript] long decrypt (in buffer data, in long dataLen, out buffer result); */
      34                 :   NS_IMETHOD Decrypt(unsigned char *data, PRInt32 dataLen, unsigned char **result NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM) = 0;
      35                 : 
      36                 :   /* string encryptString (in string text); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD EncryptString(const char * text, char * *_retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* string decryptString (in string crypt); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD DecryptString(const char * crypt, char * *_retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* void changePassword (); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD ChangePassword(void) = 0;
      44                 : 
      45                 :   /* void logout (); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD Logout(void) = 0;
      47                 : 
      48                 :   /* void logoutAndTeardown (); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD LogoutAndTeardown(void) = 0;
      50                 : 
      51                 : };
      52                 : 
      53                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISecretDecoderRing, NS_ISECRETDECODERRING_IID)
      54                 : 
      55                 : /* Use this macro when declaring classes that implement this interface. */
      56                 : #define NS_DECL_NSISECRETDECODERRING \
      57                 :   NS_IMETHOD Encrypt(unsigned char *data, PRInt32 dataLen, unsigned char **result NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM); \
      58                 :   NS_IMETHOD Decrypt(unsigned char *data, PRInt32 dataLen, unsigned char **result NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM); \
      59                 :   NS_SCRIPTABLE NS_IMETHOD EncryptString(const char * text, char * *_retval NS_OUTPARAM); \
      60                 :   NS_SCRIPTABLE NS_IMETHOD DecryptString(const char * crypt, char * *_retval NS_OUTPARAM); \
      61                 :   NS_SCRIPTABLE NS_IMETHOD ChangePassword(void); \
      62                 :   NS_SCRIPTABLE NS_IMETHOD Logout(void); \
      63                 :   NS_SCRIPTABLE NS_IMETHOD LogoutAndTeardown(void); 
      64                 : 
      65                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      66                 : #define NS_FORWARD_NSISECRETDECODERRING(_to) \
      67                 :   NS_IMETHOD Encrypt(unsigned char *data, PRInt32 dataLen, unsigned char **result NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM) { return _to Encrypt(data, dataLen, result, _retval); } \
      68                 :   NS_IMETHOD Decrypt(unsigned char *data, PRInt32 dataLen, unsigned char **result NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM) { return _to Decrypt(data, dataLen, result, _retval); } \
      69                 :   NS_SCRIPTABLE NS_IMETHOD EncryptString(const char * text, char * *_retval NS_OUTPARAM) { return _to EncryptString(text, _retval); } \
      70                 :   NS_SCRIPTABLE NS_IMETHOD DecryptString(const char * crypt, char * *_retval NS_OUTPARAM) { return _to DecryptString(crypt, _retval); } \
      71                 :   NS_SCRIPTABLE NS_IMETHOD ChangePassword(void) { return _to ChangePassword(); } \
      72                 :   NS_SCRIPTABLE NS_IMETHOD Logout(void) { return _to Logout(); } \
      73                 :   NS_SCRIPTABLE NS_IMETHOD LogoutAndTeardown(void) { return _to LogoutAndTeardown(); } 
      74                 : 
      75                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      76                 : #define NS_FORWARD_SAFE_NSISECRETDECODERRING(_to) \
      77                 :   NS_IMETHOD Encrypt(unsigned char *data, PRInt32 dataLen, unsigned char **result NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Encrypt(data, dataLen, result, _retval); } \
      78                 :   NS_IMETHOD Decrypt(unsigned char *data, PRInt32 dataLen, unsigned char **result NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Decrypt(data, dataLen, result, _retval); } \
      79                 :   NS_SCRIPTABLE NS_IMETHOD EncryptString(const char * text, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->EncryptString(text, _retval); } \
      80                 :   NS_SCRIPTABLE NS_IMETHOD DecryptString(const char * crypt, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->DecryptString(crypt, _retval); } \
      81                 :   NS_SCRIPTABLE NS_IMETHOD ChangePassword(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ChangePassword(); } \
      82                 :   NS_SCRIPTABLE NS_IMETHOD Logout(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Logout(); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD LogoutAndTeardown(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->LogoutAndTeardown(); } 
      84                 : 
      85                 : #if 0
      86                 : /* Use the code below as a template for the implementation class for this interface. */
      87                 : 
      88                 : /* Header file */
      89                 : class nsSecretDecoderRing : public nsISecretDecoderRing
      90                 : {
      91                 : public:
      92                 :   NS_DECL_ISUPPORTS
      93                 :   NS_DECL_NSISECRETDECODERRING
      94                 : 
      95                 :   nsSecretDecoderRing();
      96                 : 
      97                 : private:
      98                 :   ~nsSecretDecoderRing();
      99                 : 
     100                 : protected:
     101                 :   /* additional members */
     102                 : };
     103                 : 
     104                 : /* Implementation file */
     105                 : NS_IMPL_ISUPPORTS1(nsSecretDecoderRing, nsISecretDecoderRing)
     106                 : 
     107                 : nsSecretDecoderRing::nsSecretDecoderRing()
     108                 : {
     109                 :   /* member initializers and constructor code */
     110                 : }
     111                 : 
     112                 : nsSecretDecoderRing::~nsSecretDecoderRing()
     113                 : {
     114                 :   /* destructor code */
     115                 : }
     116                 : 
     117                 : /* [noscript] long encrypt (in buffer data, in long dataLen, out buffer result); */
     118                 : NS_IMETHODIMP nsSecretDecoderRing::Encrypt(unsigned char *data, PRInt32 dataLen, unsigned char **result NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM)
     119                 : {
     120                 :     return NS_ERROR_NOT_IMPLEMENTED;
     121                 : }
     122                 : 
     123                 : /* [noscript] long decrypt (in buffer data, in long dataLen, out buffer result); */
     124                 : NS_IMETHODIMP nsSecretDecoderRing::Decrypt(unsigned char *data, PRInt32 dataLen, unsigned char **result NS_OUTPARAM, PRInt32 *_retval NS_OUTPARAM)
     125                 : {
     126                 :     return NS_ERROR_NOT_IMPLEMENTED;
     127                 : }
     128                 : 
     129                 : /* string encryptString (in string text); */
     130                 : NS_IMETHODIMP nsSecretDecoderRing::EncryptString(const char * text, char * *_retval NS_OUTPARAM)
     131                 : {
     132                 :     return NS_ERROR_NOT_IMPLEMENTED;
     133                 : }
     134                 : 
     135                 : /* string decryptString (in string crypt); */
     136                 : NS_IMETHODIMP nsSecretDecoderRing::DecryptString(const char * crypt, char * *_retval NS_OUTPARAM)
     137                 : {
     138                 :     return NS_ERROR_NOT_IMPLEMENTED;
     139                 : }
     140                 : 
     141                 : /* void changePassword (); */
     142                 : NS_IMETHODIMP nsSecretDecoderRing::ChangePassword()
     143                 : {
     144                 :     return NS_ERROR_NOT_IMPLEMENTED;
     145                 : }
     146                 : 
     147                 : /* void logout (); */
     148                 : NS_IMETHODIMP nsSecretDecoderRing::Logout()
     149                 : {
     150                 :     return NS_ERROR_NOT_IMPLEMENTED;
     151                 : }
     152                 : 
     153                 : /* void logoutAndTeardown (); */
     154                 : NS_IMETHODIMP nsSecretDecoderRing::LogoutAndTeardown()
     155                 : {
     156                 :     return NS_ERROR_NOT_IMPLEMENTED;
     157                 : }
     158                 : 
     159                 : /* End of implementation class template. */
     160                 : #endif
     161                 : 
     162                 : 
     163                 : /* starting interface:    nsISecretDecoderRingConfig */
     164                 : #define NS_ISECRETDECODERRINGCONFIG_IID_STR "01d8c0f0-0ccc-11d4-9fdd-000064657374"
     165                 : 
     166                 : #define NS_ISECRETDECODERRINGCONFIG_IID \
     167                 :   {0x01d8c0f0, 0x0ccc, 0x11d4, \
     168                 :     { 0x9f, 0xdd, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }}
     169                 : 
     170              65 : class NS_NO_VTABLE NS_SCRIPTABLE nsISecretDecoderRingConfig : public nsISupports {
     171                 :  public: 
     172                 : 
     173                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISECRETDECODERRINGCONFIG_IID)
     174                 : 
     175                 :   /* void setWindow (in nsISupports w); */
     176                 :   NS_SCRIPTABLE NS_IMETHOD SetWindow(nsISupports *w) = 0;
     177                 : 
     178                 : };
     179                 : 
     180                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsISecretDecoderRingConfig, NS_ISECRETDECODERRINGCONFIG_IID)
     181                 : 
     182                 : /* Use this macro when declaring classes that implement this interface. */
     183                 : #define NS_DECL_NSISECRETDECODERRINGCONFIG \
     184                 :   NS_SCRIPTABLE NS_IMETHOD SetWindow(nsISupports *w); 
     185                 : 
     186                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     187                 : #define NS_FORWARD_NSISECRETDECODERRINGCONFIG(_to) \
     188                 :   NS_SCRIPTABLE NS_IMETHOD SetWindow(nsISupports *w) { return _to SetWindow(w); } 
     189                 : 
     190                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     191                 : #define NS_FORWARD_SAFE_NSISECRETDECODERRINGCONFIG(_to) \
     192                 :   NS_SCRIPTABLE NS_IMETHOD SetWindow(nsISupports *w) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWindow(w); } 
     193                 : 
     194                 : #if 0
     195                 : /* Use the code below as a template for the implementation class for this interface. */
     196                 : 
     197                 : /* Header file */
     198                 : class nsSecretDecoderRingConfig : public nsISecretDecoderRingConfig
     199                 : {
     200                 : public:
     201                 :   NS_DECL_ISUPPORTS
     202                 :   NS_DECL_NSISECRETDECODERRINGCONFIG
     203                 : 
     204                 :   nsSecretDecoderRingConfig();
     205                 : 
     206                 : private:
     207                 :   ~nsSecretDecoderRingConfig();
     208                 : 
     209                 : protected:
     210                 :   /* additional members */
     211                 : };
     212                 : 
     213                 : /* Implementation file */
     214                 : NS_IMPL_ISUPPORTS1(nsSecretDecoderRingConfig, nsISecretDecoderRingConfig)
     215                 : 
     216                 : nsSecretDecoderRingConfig::nsSecretDecoderRingConfig()
     217                 : {
     218                 :   /* member initializers and constructor code */
     219                 : }
     220                 : 
     221                 : nsSecretDecoderRingConfig::~nsSecretDecoderRingConfig()
     222                 : {
     223                 :   /* destructor code */
     224                 : }
     225                 : 
     226                 : /* void setWindow (in nsISupports w); */
     227                 : NS_IMETHODIMP nsSecretDecoderRingConfig::SetWindow(nsISupports *w)
     228                 : {
     229                 :     return NS_ERROR_NOT_IMPLEMENTED;
     230                 : }
     231                 : 
     232                 : /* End of implementation class template. */
     233                 : #endif
     234                 : 
     235                 : 
     236                 : #endif /* __gen_nsISecretDecoderRing_h__ */

Generated by: LCOV version 1.7