1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/content/xul/templates/src/nsXULTemplateResultStorage.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsXULTemplateResultStorage_h__ 1.10 +#define nsXULTemplateResultStorage_h__ 1.11 + 1.12 +#include "nsXULTemplateQueryProcessorStorage.h" 1.13 +#include "nsIRDFResource.h" 1.14 +#include "nsIXULTemplateResult.h" 1.15 +#include "nsAutoPtr.h" 1.16 +#include "mozilla/Attributes.h" 1.17 + 1.18 +/** 1.19 + * A single result of a query from mozstorage 1.20 + */ 1.21 +class nsXULTemplateResultStorage MOZ_FINAL : public nsIXULTemplateResult 1.22 +{ 1.23 +public: 1.24 + NS_DECL_ISUPPORTS 1.25 + 1.26 + NS_DECL_NSIXULTEMPLATERESULT 1.27 + 1.28 + nsXULTemplateResultStorage(nsXULTemplateResultSetStorage* aResultSet); 1.29 + 1.30 +protected: 1.31 + 1.32 + nsRefPtr<nsXULTemplateResultSetStorage> mResultSet; 1.33 + 1.34 + nsCOMArray<nsIVariant> mValues; 1.35 + 1.36 + nsCOMPtr<nsIRDFResource> mNode; 1.37 +}; 1.38 + 1.39 +#endif // nsXULTemplateResultStorage_h__