Tweaks to the interfaces to make them internally consistent.

This commit is contained in:
hyatt%netscape.com 1998-11-10 23:44:53 +00:00
Родитель 39b0812f54
Коммит 63b488ce40
5 изменённых файлов: 10 добавлений и 16 удалений

Просмотреть файл

@ -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___ */

Просмотреть файл

@ -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___ */

Просмотреть файл

@ -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

Просмотреть файл

@ -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___ */

Просмотреть файл

@ -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