Made some functions (inspectors) const.

This commit is contained in:
hyatt%netscape.com 1998-11-11 03:04:20 +00:00
Родитель d1f2b348ec
Коммит 5e7e2f7f8e
5 изменённых файлов: 21 добавлений и 23 удалений

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

@ -34,21 +34,19 @@ class nsIDMItem : public nsISupports
{
public:
// Inspectors
NS_IMETHOD GetIconImage(nsIImage*& pImage, nsIImageGroup* pGroup) = 0;
NS_IMETHOD GetOpenState(PRBool& answer) = 0;
NS_IMETHOD GetIconImage(nsIImage*& pImage, nsIImageGroup* pGroup) const = 0;
NS_IMETHOD GetOpenState(PRBool& answer) const = 0;
// Methods for iterating over children.
NS_IMETHOD GetChildCount(PRUint32& count) = 0;
NS_IMETHOD GetNthChild(nsIDMItem*& pItem, PRUint32 item) = 0;
NS_IMETHOD GetChildCount(PRUint32& count) const = 0;
NS_IMETHOD GetNthChild(nsIDMItem*& pItem, PRUint32 item) const = 0;
// Parent access
NS_IMETHOD GetParent(nsIDMItem*& pItem) = 0;
// Setters
NS_IMETHOD GetParent(nsIDMItem*& pItem) const = 0;
// Methods to query the data model for a specific item displayed within the widget.
NS_IMETHOD GetStringPropertyValue(nsString& value, const nsString& itemProperty) = 0;
NS_IMETHOD GetIntPropertyValue(PRInt32& value, const nsString& itemProperty) = 0;
NS_IMETHOD GetStringPropertyValue(nsString& value, const nsString& itemProperty) const = 0;
NS_IMETHOD GetIntPropertyValue(PRInt32& value, const nsString& itemProperty) const = 0;
};
#endif /* nsIDMItem_h___ */

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

@ -34,14 +34,14 @@ class nsIDataModel : public nsISupports
public:
// Inspectors
NS_IMETHOD GetDMWidget(nsIDMWidget*& pWidget) = 0;
NS_IMETHOD GetDMWidget(nsIDMWidget*& pWidget) const = 0;
// Setters
NS_IMETHOD SetDMWidget(nsIDMWidget* pWidget) = 0;
// Methods to query the data model for property values for an entire widget.
NS_IMETHOD GetStringPropertyValue(nsString& value, const nsString& property) = 0;
NS_IMETHOD GetIntPropertyValue(PRInt32& value, const nsString& property) = 0;
NS_IMETHOD GetStringPropertyValue(nsString& value, const nsString& property) const = 0;
NS_IMETHOD GetIntPropertyValue(PRInt32& value, const nsString& property) const = 0;
};
#endif /* nsIDataModel_h___ */

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

@ -38,10 +38,10 @@ class nsITreeColumn : public nsISupports
{
public:
// Inspectors
NS_IMETHOD GetPixelWidth(PRUint32& width) = 0;
NS_IMETHOD GetDesiredPercentage(double& percentage) = 0;
NS_IMETHOD GetSortState(nsColumnSortState& answer) = 0;
NS_IMETHOD GetColumnName(nsString& name) = 0;
NS_IMETHOD GetPixelWidth(PRUint32& width) const = 0;
NS_IMETHOD GetDesiredPercentage(double& percentage) const = 0;
NS_IMETHOD GetSortState(nsColumnSortState& answer) const = 0;
NS_IMETHOD GetColumnName(nsString& name) const = 0;
// Setters
NS_IMETHOD SetPixelWidth(PRUint32 newWidth) = 0;

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

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

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

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