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:
@@ -1598,6 +1598,5 @@ BPartition::_IsModified() const
|
|||||||
if (!fDelegate)
|
if (!fDelegate)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// TODO: Implement!
|
return fDelegate->IsModified();
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,6 +118,14 @@ BPartition::Delegate::CountChildren() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// IsModified
|
||||||
|
bool
|
||||||
|
BPartition::Delegate::IsModified() const
|
||||||
|
{
|
||||||
|
return fMutablePartition.ChangeFlags() != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// SupportedOperations
|
// SupportedOperations
|
||||||
uint32
|
uint32
|
||||||
BPartition::Delegate::SupportedOperations(uint32 mask)
|
BPartition::Delegate::SupportedOperations(uint32 mask)
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ public:
|
|||||||
Delegate* ChildAt(int32 index) const;
|
Delegate* ChildAt(int32 index) const;
|
||||||
int32 CountChildren() const;
|
int32 CountChildren() const;
|
||||||
|
|
||||||
|
bool IsModified() const;
|
||||||
|
|
||||||
uint32 SupportedOperations(uint32 mask);
|
uint32 SupportedOperations(uint32 mask);
|
||||||
uint32 SupportedChildOperations(Delegate* child,
|
uint32 SupportedChildOperations(Delegate* child,
|
||||||
uint32 mask);
|
uint32 mask);
|
||||||
|
|||||||
Reference in New Issue
Block a user