nsISHTransaction.idl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /* -*- Mode: IDL; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2. *
  3. * This Source Code Form is subject to the terms of the Mozilla Public
  4. * License, v. 2.0. If a copy of the MPL was not distributed with this
  5. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6. #include "nsISupports.idl"
  7. interface nsISHEntry;
  8. /**
  9. * The nsISHTransaction.
  10. */
  11. [scriptable, uuid(2EDF705F-D252-4971-9F09-71DD0F760DC6)]
  12. interface nsISHTransaction : nsISupports
  13. {
  14. /**
  15. * The nsISHEntry for the current transaction
  16. */
  17. attribute nsISHEntry sHEntry;
  18. /**
  19. * The parent of this transaction
  20. */
  21. attribute nsISHTransaction prev;
  22. /**
  23. * The legitimate child of this transaction
  24. */
  25. attribute nsISHTransaction next;
  26. /**
  27. * Specifies if this transaction should persist. If not it will be replaced
  28. * by new additions to the list.
  29. */
  30. attribute boolean persist;
  31. /**
  32. * Create a transaction with parent and History Entry
  33. */
  34. void create(in nsISHEntry aSHEntry, in nsISHTransaction aPrev);
  35. };
  36. %{ C++
  37. // {BFD1A792-AD9F-11d3-BDC7-0050040A9B44}
  38. #define NS_SHTRANSACTION_CID \
  39. {0xbfd1a792, 0xad9f, 0x11d3, {0xbd, 0xc7, 0x0, 0x50, 0x4, 0xa, 0x9b, 0x44}}
  40. #define NS_SHTRANSACTION_CONTRACTID \
  41. "@mozilla.org/browser/session-history-transaction;1"
  42. %}