зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
33c7ea853d
Коммит
7c4f01368a
|
@ -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);
|
||||
|
||||
//////////////////////////////////////////////////////////////////////
|
||||
|
|
Загрузка…
Ссылка в новой задаче