LCOV - code coverage report
Current view: top level - dom/xul/templates - nsXULTemplateResultXML.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 3 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #ifndef nsXULTemplateResultXML_h__
       7             : #define nsXULTemplateResultXML_h__
       8             : 
       9             : #include "nsCOMPtr.h"
      10             : #include "nsIContent.h"
      11             : #include "nsIURI.h"
      12             : #include "nsIRDFResource.h"
      13             : #include "nsXULTemplateQueryProcessorXML.h"
      14             : #include "nsIXULTemplateResult.h"
      15             : #include "mozilla/Attributes.h"
      16             : 
      17             : /**
      18             :  * An single result of an query
      19             :  */
      20             : class nsXULTemplateResultXML final : public nsIXULTemplateResult
      21             : {
      22             : public:
      23             :     NS_DECL_ISUPPORTS
      24             : 
      25             :     NS_DECL_NSIXULTEMPLATERESULT
      26             : 
      27             :     nsXULTemplateResultXML(nsXMLQuery* aQuery,
      28             :                            nsIContent* aNode,
      29             :                            nsXMLBindingSet* aBindings);
      30             : 
      31           0 :     nsIContent* Node()
      32             :     {
      33           0 :         return mNode;
      34             :     }
      35             : 
      36             : protected:
      37             : 
      38           0 :     ~nsXULTemplateResultXML() {}
      39             : 
      40             :     // ID used for persisting data. It is constructed using the mNode's
      41             :     // base uri plus the node's id to form 'baseuri#id'. If the node has no
      42             :     // id, then an id of the form 'row<some number>' is generated. In the
      43             :     // latter case, persistence will not work as there won't be a unique id.
      44             :     nsAutoString mId;
      45             : 
      46             :     // query that generated the result
      47             :     nsCOMPtr<nsXMLQuery> mQuery;
      48             : 
      49             :     // context node in datasource
      50             :     nsCOMPtr<nsIContent> mNode;
      51             : 
      52             :     // assignments in query
      53             :     nsXMLBindingValues mRequiredValues;
      54             : 
      55             :     // extra assignments made by rules (<binding> tags)
      56             :     nsXMLBindingValues mOptionalValues;
      57             : };
      58             : 
      59             : #endif // nsXULTemplateResultXML_h__

Generated by: LCOV version 1.13