Add a function that returns true if a node has children.

This should probably be pushed down to the rdf module.
This commit is contained in:
slamm%netscape.com 1998-10-17 01:09:12 +00:00
Родитель 33c7ea853d
Коммит 7c4f01368a
2 изменённых файлов: 10 добавлений и 0 удалений

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

@ -196,6 +196,15 @@ XFE_RDFUtils::ht_FindPreviousItem(HT_Resource current)
}
//////////////////////////////////////////////////////////////////////////
/* static */ XP_Bool
XFE_RDFUtils::ht_FolderHasChildren(HT_Resource header)
{
XP_ASSERT( header != NULL );
XP_ASSERT( HT_IsContainer(header) );
return (HT_GetCountDirectChildren(header) > 0);
}
//////////////////////////////////////////////////////////////////////////
/* static */ XP_Bool
XFE_RDFUtils::ht_FolderHasFolderChildren(HT_Resource header)
{
XP_ASSERT( header != NULL );

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

@ -70,6 +70,7 @@ public:
static HT_Resource ht_FindNextItem (HT_Resource item);
static HT_Resource ht_FindPreviousItem (HT_Resource item);
static XP_Bool ht_FolderHasChildren (HT_Resource folder);
static XP_Bool ht_FolderHasFolderChildren (HT_Resource folder);
//////////////////////////////////////////////////////////////////////