Implemented BPartition::_IsModified(), so that BDiskDevice::IsModified()

does actually work now.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22882 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2007-11-10 20:33:43 +00:00
parent 17fdd1f071
commit 54a5f0b731
3 changed files with 11 additions and 2 deletions

View File

@ -1598,6 +1598,5 @@ BPartition::_IsModified() const
if (!fDelegate)
return false;
// TODO: Implement!
return false;
return fDelegate->IsModified();
}

View File

@ -118,6 +118,14 @@ BPartition::Delegate::CountChildren() const
}
// IsModified
bool
BPartition::Delegate::IsModified() const
{
return fMutablePartition.ChangeFlags() != 0;
}
// SupportedOperations
uint32
BPartition::Delegate::SupportedOperations(uint32 mask)

View File

@ -33,6 +33,8 @@ public:
Delegate* ChildAt(int32 index) const;
int32 CountChildren() const;
bool IsModified() const;
uint32 SupportedOperations(uint32 mask);
uint32 SupportedChildOperations(Delegate* child,
uint32 mask);