nsXULTemplateResultStorage.h 1004 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #ifndef nsXULTemplateResultStorage_h__
  6. #define nsXULTemplateResultStorage_h__
  7. #include "nsXULTemplateQueryProcessorStorage.h"
  8. #include "nsIRDFResource.h"
  9. #include "nsIXULTemplateResult.h"
  10. #include "mozilla/Attributes.h"
  11. /**
  12. * A single result of a query from mozstorage
  13. */
  14. class nsXULTemplateResultStorage final : public nsIXULTemplateResult
  15. {
  16. public:
  17. NS_DECL_ISUPPORTS
  18. NS_DECL_NSIXULTEMPLATERESULT
  19. explicit nsXULTemplateResultStorage(nsXULTemplateResultSetStorage* aResultSet);
  20. protected:
  21. ~nsXULTemplateResultStorage();
  22. RefPtr<nsXULTemplateResultSetStorage> mResultSet;
  23. nsCOMArray<nsIVariant> mValues;
  24. nsCOMPtr<nsIRDFResource> mNode;
  25. };
  26. #endif // nsXULTemplateResultStorage_h__