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:
@@ -9,7 +9,7 @@
|
|||||||
#include <disk_scanner.h>
|
#include <disk_scanner.h>
|
||||||
#include <Mime.h>
|
#include <Mime.h>
|
||||||
#include <ObjectList.h>
|
#include <ObjectList.h>
|
||||||
#include <Point.h>
|
#include <Rect.h>
|
||||||
#include <String.h>
|
#include <String.h>
|
||||||
|
|
||||||
class BDiskDevice;
|
class BDiskDevice;
|
||||||
@@ -56,17 +56,14 @@ public:
|
|||||||
status_t GetInitializationParameters(const char *fileSystem,
|
status_t GetInitializationParameters(const char *fileSystem,
|
||||||
BString *volumeName,
|
BString *volumeName,
|
||||||
BString *parameters,
|
BString *parameters,
|
||||||
BPoint dialogCenter = BPoint(-1, -1),
|
BRect dialogCenter = BRect(),
|
||||||
bool *cancelled = NULL);
|
bool *cancelled = NULL);
|
||||||
status_t Initialize(const char *fileSystem, const char *volumeName,
|
status_t Initialize(const char *fileSystem, const char *volumeName,
|
||||||
const char *parameters);
|
const char *parameters);
|
||||||
status_t Initialize(const char *fileSystem = "bfs",
|
status_t Initialize(const char *fileSystem = "bfs",
|
||||||
BPoint dialogCenter = BPoint(-1, -1),
|
BRect dialogCenter = BRect(),
|
||||||
bool *cancelled = NULL);
|
bool *cancelled = NULL);
|
||||||
|
|
||||||
// TODO: Return more info, e.g. the long name?
|
|
||||||
static status_t GetFileSystemList(BObjectList<BString> *list);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
BPartition();
|
BPartition();
|
||||||
BPartition(const BPartition &);
|
BPartition(const BPartition &);
|
||||||
|
|||||||
@@ -378,8 +378,8 @@ BPartition::Unmount()
|
|||||||
\param volumeName The volume name set by the user.
|
\param volumeName The volume name set by the user.
|
||||||
\param parameters Pointer to a pre-allocated BString to be set to the
|
\param parameters Pointer to a pre-allocated BString to be set to the
|
||||||
parameters the user has specified.
|
parameters the user has specified.
|
||||||
\param dialogCenter The point at which to center the dialog. If omitted,
|
\param dialogCenter The rectangle over which to center the dialog. If
|
||||||
the dialog is displayed centered to the screen.
|
omitted, the dialog is displayed centered to the screen.
|
||||||
\param cancelled Pointer to a pre-allocated bool to be set to \c true, if
|
\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
|
the dialog has been cancelled by the user, or to \c false
|
||||||
otherwise. May be \c NULL.
|
otherwise. May be \c NULL.
|
||||||
@@ -393,7 +393,7 @@ status_t
|
|||||||
BPartition::GetInitializationParameters(const char *fileSystem,
|
BPartition::GetInitializationParameters(const char *fileSystem,
|
||||||
BString *volumeName,
|
BString *volumeName,
|
||||||
BString *parameters,
|
BString *parameters,
|
||||||
BPoint dialogCenter,
|
BRect dialogCenter,
|
||||||
bool *cancelled)
|
bool *cancelled)
|
||||||
{
|
{
|
||||||
return B_ERROR; // not implemented
|
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.
|
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 fileSystem The file system to be used for the initialization.
|
||||||
\param dialogCenter The point at which to center the dialog. If omitted,
|
\param dialogCenter The rectangle over which to center the dialog. If
|
||||||
the dialog is displayed centered to the screen.
|
omitted, the dialog is displayed centered to the screen.
|
||||||
\param cancelled Pointer to a pre-allocated bool to be set to \c true, if
|
\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
|
the dialog has been cancelled by the user, or to \c false
|
||||||
otherwise. May be \c NULL.
|
otherwise. May be \c NULL.
|
||||||
@@ -441,32 +441,12 @@ BPartition::Initialize(const char *fileSystem, const char *volumeName,
|
|||||||
- another error code
|
- another error code
|
||||||
*/
|
*/
|
||||||
status_t
|
status_t
|
||||||
BPartition::Initialize(const char *fileSystem, BPoint dialogCenter,
|
BPartition::Initialize(const char *fileSystem, BRect dialogCenter,
|
||||||
bool *cancelled)
|
bool *cancelled)
|
||||||
{
|
{
|
||||||
return B_ERROR; // not implemented
|
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
|
// constructor
|
||||||
/*! \brief Creates an uninitialized BPartition object.
|
/*! \brief Creates an uninitialized BPartition object.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user