From a65884dea97efe07888c8ba78a8de5c6ab0052a8 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Wed, 11 Nov 1998 00:20:59 +0000 Subject: [PATCH] Added sort state enum. --- widget/public/nsITreeColumn.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/widget/public/nsITreeColumn.h b/widget/public/nsITreeColumn.h index 37d6c2255541..62792a8e184e 100644 --- a/widget/public/nsITreeColumn.h +++ b/widget/public/nsITreeColumn.h @@ -27,13 +27,20 @@ #define NS_ITREECOLUMN_IID \ { 0xdd719481, 0x5d79, 0x11d2, { 0x96, 0xed, 0x0, 0x10, 0x4b, 0x7b, 0x7d, 0xeb } } +// Sort State enum +enum nsColumnSortState { + eUnsorted; + eAscending; + eDescending; +}; + class nsITreeColumn : public nsISupports { public: // Inspectors NS_IMETHOD GetPixelWidth(int& width) = 0; NS_IMETHOD GetDesiredPercentage(double& percentage) = 0; - NS_IMETHOD GetSortState(int& answer) = 0; + NS_IMETHOD GetSortState(nsColumnSortState& answer) = 0; NS_IMETHOD GetColumnName(nsString& name) = 0; // Setters