LCOV - app.info - storage/src/Variant_inl.h

LCOV - code coverage report
| Current view: | directory - storage/src - Variant_inl.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 59 | 0 | 0.0 %
| Date: | 2012-06-02 | Functions: | 30 | 0 | 0.0 %

           1                 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
           2                 :  * vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ :
           3                 :  * ***** BEGIN LICENSE BLOCK *****
           4                 :  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
           5                 :  *
           6                 :  * The contents of this file are subject to the Mozilla Public License Version
           7                 :  * 1.1 (the "License"); you may not use this file except in compliance with
           8                 :  * the License. You may obtain a copy of the License at
           9                 :  * http://www.mozilla.org/MPL/
          10                 :  *
          11                 :  * Software distributed under the License is distributed on an "AS IS" basis,
          12                 :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
          13                 :  * for the specific language governing rights and limitations under the
          14                 :  * License.
          15                 :  *
          16                 :  * The Original Code is mozilla.org code.
          17                 :  *
          18                 :  * The Initial Developer of the Original Code is
          19                 :  * Mozilla Corporation
          20                 :  * Portions created by the Initial Developer are Copyright (C) 2008
          21                 :  * the Initial Developer. All Rights Reserved.
          22                 :  *
          23                 :  * Contributor(s):
          24                 :  *   Shawn Wilsher <me@shawnwilsher.com> (Original Author)
          25                 :  *
          26                 :  * Alternatively, the contents of this file may be used under the terms of
          27                 :  * either the GNU General Public License Version 2 or later (the "GPL"), or
          28                 :  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
          29                 :  * in which case the provisions of the GPL or the LGPL are applicable instead
          30                 :  * of those above. If you wish to allow use of your version of this file only
          31                 :  * under the terms of either the GPL or the LGPL, and not to allow others to
          32                 :  * use your version of this file under the terms of the MPL, indicate your
          33                 :  * decision by deleting the provisions above and replace them with the notice
          34                 :  * and other provisions required by the GPL or the LGPL. If you do not delete
          35                 :  * the provisions above, a recipient may use your version of this file under
          36                 :  * the terms of any one of the MPL, the GPL or the LGPL.
          37                 :  *
          38                 :  * ***** END LICENSE BLOCK ***** */
          39                 :
          40                 : /**
          41                 :  * Note: This file is included by Variant.h.
          42                 :  */
          43                 :
          44                 : #ifndef mozilla_storage_Variant_h__
          45                 : #error "Do not include this file directly!"
          46                 : #endif
          47                 :
          48                 : namespace mozilla {
          49                 : namespace storage {
          50                 :
          51                 : ////////////////////////////////////////////////////////////////////////////////
          52                 : //// Variant_base
          53                 :
          54               0 : inline NS_IMPL_THREADSAFE_ADDREF(Variant_base)
          55               0 : inline NS_IMPL_THREADSAFE_RELEASE(Variant_base)
          56               0 : inline NS_IMPL_THREADSAFE_QUERY_INTERFACE1(
          57                 :   Variant_base,
          58                 :   nsIVariant
          59                 : )
          60                 :
          61                 : ////////////////////////////////////////////////////////////////////////////////
          62                 : //// nsIVariant
          63                 :
          64                 : inline
          65                 : NS_IMETHODIMP
          66               0 : Variant_base::GetDataType(PRUint16 *_type)
          67                 : {
          68               0 :   NS_ENSURE_ARG_POINTER(_type);
          69               0 :   *_type = nsIDataType::VTYPE_VOID;
          70               0 :   return NS_OK;
          71                 : }
          72                 :
          73                 : inline
          74                 : NS_IMETHODIMP
          75               0 : Variant_base::GetAsInt32(PRInt32 *)
          76                 : {
          77               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
          78                 : }
          79                 :
          80                 : inline
          81                 : NS_IMETHODIMP
          82               0 : Variant_base::GetAsInt64(PRInt64 *)
          83                 : {
          84               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
          85                 : }
          86                 :
          87                 : inline
          88                 : NS_IMETHODIMP
          89               0 : Variant_base::GetAsDouble(double *)
          90                 : {
          91               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
          92                 : }
          93                 :
          94                 : inline
          95                 : NS_IMETHODIMP
          96               0 : Variant_base::GetAsAUTF8String(nsACString &)
          97                 : {
          98               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
          99                 : }
         100                 :
         101                 : inline
         102                 : NS_IMETHODIMP
         103               0 : Variant_base::GetAsAString(nsAString &)
         104                 : {
         105               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         106                 : }
         107                 :
         108                 : inline
         109                 : NS_IMETHODIMP
         110               0 : Variant_base::GetAsArray(PRUint16 *,
         111                 :                          nsIID *,
         112                 :                          PRUint32 *,
         113                 :                          void **)
         114                 : {
         115               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         116                 : }
         117                 :
         118                 : inline
         119                 : NS_IMETHODIMP
         120               0 : Variant_base::GetAsInt8(PRUint8 *)
         121                 : {
         122               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         123                 : }
         124                 :
         125                 : inline
         126                 : NS_IMETHODIMP
         127               0 : Variant_base::GetAsInt16(PRInt16 *)
         128                 : {
         129               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         130                 : }
         131                 :
         132                 : inline
         133                 : NS_IMETHODIMP
         134               0 : Variant_base::GetAsUint8(PRUint8 *)
         135                 : {
         136               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         137                 : }
         138                 :
         139                 : inline
         140                 : NS_IMETHODIMP
         141               0 : Variant_base::GetAsUint16(PRUint16 *)
         142                 : {
         143               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         144                 : }
         145                 :
         146                 : inline
         147                 : NS_IMETHODIMP
         148               0 : Variant_base::GetAsUint32(PRUint32 *)
         149                 : {
         150               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         151                 : }
         152                 :
         153                 : inline
         154                 : NS_IMETHODIMP
         155               0 : Variant_base::GetAsUint64(PRUint64 *)
         156                 : {
         157               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         158                 : }
         159                 :
         160                 : inline
         161                 : NS_IMETHODIMP
         162               0 : Variant_base::GetAsFloat(float *)
         163                 : {
         164               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         165                 : }
         166                 :
         167                 : inline
         168                 : NS_IMETHODIMP
         169               0 : Variant_base::GetAsBool(bool *)
         170                 : {
         171               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         172                 : }
         173                 :
         174                 : inline
         175                 : NS_IMETHODIMP
         176               0 : Variant_base::GetAsChar(char *)
         177                 : {
         178               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         179                 : }
         180                 :
         181                 : inline
         182                 : NS_IMETHODIMP
         183               0 : Variant_base::GetAsWChar(PRUnichar *)
         184                 : {
         185               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         186                 : }
         187                 :
         188                 : inline
         189                 : NS_IMETHODIMP
         190               0 : Variant_base::GetAsID(nsID *)
         191                 : {
         192               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         193                 : }
         194                 :
         195                 : inline
         196                 : NS_IMETHODIMP
         197               0 : Variant_base::GetAsDOMString(nsAString &)
         198                 : {
         199               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         200                 : }
         201                 :
         202                 : inline
         203                 : NS_IMETHODIMP
         204               0 : Variant_base::GetAsString(char **)
         205                 : {
         206               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         207                 : }
         208                 :
         209                 : inline
         210                 : NS_IMETHODIMP
         211               0 : Variant_base::GetAsWString(PRUnichar **)
         212                 : {
         213               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         214                 : }
         215                 :
         216                 : inline
         217                 : NS_IMETHODIMP
         218               0 : Variant_base::GetAsISupports(nsISupports **)
         219                 : {
         220               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         221                 : }
         222                 :
         223                 : inline
         224                 : NS_IMETHODIMP
         225               0 : Variant_base::GetAsInterface(nsIID **,
         226                 :                              void **)
         227                 : {
         228               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         229                 : }
         230                 :
         231                 : inline
         232                 : NS_IMETHODIMP
         233               0 : Variant_base::GetAsACString(nsACString &)
         234                 : {
         235               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         236                 : }
         237                 :
         238                 : inline
         239                 : NS_IMETHODIMP
         240               0 : Variant_base::GetAsStringWithSize(PRUint32 *,
         241                 :                                   char **)
         242                 : {
         243               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         244                 : }
         245                 :
         246                 : inline
         247                 : NS_IMETHODIMP
         248               0 : Variant_base::GetAsWStringWithSize(PRUint32 *,
         249                 :                                    PRUnichar **)
         250                 : {
         251               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         252                 : }
         253                 :
         254                 : inline
         255                 : NS_IMETHODIMP
         256               0 : Variant_base::GetAsJSVal(JS::Value *)
         257                 : {
         258               0 :   return NS_ERROR_CANNOT_CONVERT_DATA;
         259                 : }
         260                 :
         261                 : } // namespace storage
         262                 : } // namespace mozilla

Generated by: LCOV version 1.7