Tweaks to the interfaces to make them internally consistent.

git-svn-id: svn://10.0.0.236/trunk@14373 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt%netscape.com
1998-11-10 23:44:53 +00:00
parent 13dcb792a8
commit 3731b62f54
5 changed files with 10 additions and 16 deletions

View File

@@ -34,17 +34,14 @@ class nsIDMItem : public nsISupports
{
public:
// Inspectors
NS_IMETHOD GetIconImage(nsIImage** pImage, nsIImageGroup* pGroup) = 0;
NS_IMETHOD GetIconImage(nsIImage*& pImage, nsIImageGroup* pGroup) = 0;
NS_IMETHOD IsExpanded(PRBool& answer) = 0;
// Setters
// Methods to query the data model for a specific item displayed within the widget.
NS_IMETHOD GetStringPropertyValue(PRBool& answer, const nsString& itemProperty,
nsString& value) = 0;
NS_IMETHOD GetIntPropertyValue(PRBool& answer, const nsString& itemProperty,
int& value) = 0;
NS_IMETHOD GetStringPropertyValue(nsString& value, const nsString& itemProperty) = 0;
NS_IMETHOD GetIntPropertyValue(int& value, const nsString& itemProperty) = 0;
};
#endif /* nsIDMItem_h___ */

View File

@@ -38,10 +38,8 @@ public:
NS_IMETHOD SetDMWidget(nsIDMWidget* pWidget) = 0;
// Methods to query the data model for property values for an entire widget.
NS_IMETHOD GetStringPropertyValue(PRBool& answer,
const nsString& property, const nsString& value) = 0;
NS_IMETHOD GetIntPropertyValue(PRBool& answer,
const nsString& property, int& value) = 0;
NS_IMETHOD GetStringPropertyValue(nsString& value, const nsString& property) = 0;
NS_IMETHOD GetIntPropertyValue(int& value, const nsString& property) = 0;
};
#endif /* nsIDataModel_h___ */

View File

@@ -33,7 +33,7 @@ public:
// Inspectors
NS_IMETHOD GetPixelWidth(int& width) = 0;
NS_IMETHOD GetDesiredPercentage(double& percentage) = 0;
NS_IMETHOD IsSortColumn(PRBool& answer) = 0;
NS_IMETHOD GetSortState(int& answer) = 0;
NS_IMETHOD GetColumnName(nsString& name) = 0;
// Setters

View File

@@ -36,13 +36,12 @@ class nsITreeDataModel : public nsIDataModel
public:
// Column APIs
NS_IMETHOD GetVisibleColumnCount(int& count) = 0;
NS_IMETHOD GetNthColumn(nsITreeColumn** pColumn, int n) = 0;
NS_IMETHOD GetNthColumn(nsITreeColumn*& pColumn, int n) = 0;
// TreeItem APIs
NS_IMETHOD GetFirstVisibleItemIndex(int& index) = 0;
NS_IMETHOD GetNthTreeItem(nsITreeItem** pItem, int n) = 0;
NS_IMETHOD GetItemTextForColumn(nsITreeItem* pItem, nsITreeColumn* pColumn,
nsString& nodeText) = 0;
NS_IMETHOD GetNthTreeItem(nsITreeItem*& pItem, int n) = 0;
NS_IMETHOD GetItemTextForColumn(nsString& nodeText, nsITreeItem* pItem, nsITreeColumn* pColumn) = 0;
};
#endif /* nsITreeDataModel_h___ */

View File

@@ -34,7 +34,7 @@ class nsITreeItem : public nsIDMItem
{
public:
// Inspectors
NS_IMETHOD GetTriggerImage(nsIImage** pImage, nsIImageGroup* pGroup) = 0;
NS_IMETHOD GetTriggerImage(nsIImage*& pImage, nsIImageGroup* pGroup) = 0;
NS_IMETHOD GetIndentationLevel(int& indentation) = 0;
// Setters