Removed the method for getting a FS add-on list. Changed the dialogCenter parameter for the partition methods from BPoint to BRect.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2800 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2003-02-22 23:51:33 +00:00
parent 6ba9af5a46
commit 1a10cbe033
2 changed files with 9 additions and 32 deletions
+3 -6
View File
@@ -9,7 +9,7 @@
#include <disk_scanner.h>
#include <Mime.h>
#include <ObjectList.h>
#include <Point.h>
#include <Rect.h>
#include <String.h>
class BDiskDevice;
@@ -56,17 +56,14 @@ public:
status_t GetInitializationParameters(const char *fileSystem,
BString *volumeName,
BString *parameters,
BPoint dialogCenter = BPoint(-1, -1),
BRect dialogCenter = BRect(),
bool *cancelled = NULL);
status_t Initialize(const char *fileSystem, const char *volumeName,
const char *parameters);
status_t Initialize(const char *fileSystem = "bfs",
BPoint dialogCenter = BPoint(-1, -1),
BRect dialogCenter = BRect(),
bool *cancelled = NULL);
// TODO: Return more info, e.g. the long name?
static status_t GetFileSystemList(BObjectList<BString> *list);
private:
BPartition();
BPartition(const BPartition &);
+6 -26
View File
@@ -378,8 +378,8 @@ BPartition::Unmount()
\param volumeName The volume name set by the user.
\param parameters Pointer to a pre-allocated BString to be set to the
parameters the user has specified.
\param dialogCenter The point at which to center the dialog. If omitted,
the dialog is displayed centered to the screen.
\param dialogCenter The rectangle over which to center the dialog. If
omitted, the dialog is displayed centered to the screen.
\param cancelled Pointer to a pre-allocated bool to be set to \c true, if
the dialog has been cancelled by the user, or to \c false
otherwise. May be \c NULL.
@@ -393,7 +393,7 @@ status_t
BPartition::GetInitializationParameters(const char *fileSystem,
BString *volumeName,
BString *parameters,
BPoint dialogCenter,
BRect dialogCenter,
bool *cancelled)
{
return B_ERROR; // not implemented
@@ -428,8 +428,8 @@ BPartition::Initialize(const char *fileSystem, const char *volumeName,
latter case \a cancelled is set to \c true, otherwise to \c false.
\param fileSystem The file system to be used for the initialization.
\param dialogCenter The point at which to center the dialog. If omitted,
the dialog is displayed centered to the screen.
\param dialogCenter The rectangle over which to center the dialog. If
omitted, the dialog is displayed centered to the screen.
\param cancelled Pointer to a pre-allocated bool to be set to \c true, if
the dialog has been cancelled by the user, or to \c false
otherwise. May be \c NULL.
@@ -441,32 +441,12 @@ BPartition::Initialize(const char *fileSystem, const char *volumeName,
- another error code
*/
status_t
BPartition::Initialize(const char *fileSystem, BPoint dialogCenter,
BPartition::Initialize(const char *fileSystem, BRect dialogCenter,
bool *cancelled)
{
return B_ERROR; // not implemented
}
// GetFileSystemList
/*! \brief Returns a list of all file systems that can be used for
initialization.
The names of the file systems are added as BString objects to the
supplied list. The caller takes over ownership of the return BString
objects and is responsible for deleteing them.
Any of returned names can be passed to Initialize().
\param list Pointer to a pre-allocated BObjectList the names of the
file systems shall be added to.
\return \c B_OK, if everything went fine, another error code otherwise.
*/
status_t
BPartition::GetFileSystemList(BObjectList<BString> *list)
{
return B_ERROR; // not implemented
}
// constructor
/*! \brief Creates an uninitialized BPartition object.
*/