Update the style of the Haiku Book to resemble the User Guide.
If you have never seen this before you are in for a bit of a shock. Update the Doxyfile to 1.7.3 (the version that gets auto-generated). Update the book.dox front page with some nice introductory text. Add new documentation for the following classes: BCheckBox BClipboard BColorControl BControl BEntryList BView (preliminary) Remove redundant documentation from src/kits/storage/EntryList.cpp Minor documentation update for the following classes: BAlert BApplication BArchivable BBox BButton BCatalog BFindDirectory BHandler BUnarchiver BString git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43096 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -0,0 +1,132 @@
|
||||
/*
|
||||
* Copyright 2011, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*
|
||||
* Authors:
|
||||
* Erik Jaesler, [email protected]
|
||||
* John Scipione, [email protected]
|
||||
*
|
||||
* Corresponds to:
|
||||
* /trunk/headers/os/storage/EntryList.h rev 42794
|
||||
* /trunk/src/kits/storage/EntryList.cpp rev 42794
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\file EntryList.h
|
||||
\brief Defines the BEntryList class.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\class BEntryList
|
||||
\ingroup storage
|
||||
\ingroup libbe
|
||||
\brief Interface for iterating through a list of filesystem entries.
|
||||
|
||||
Defines a general interface for iterating through a list of entries
|
||||
i.e. files in a folder.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn BEntryList::BEntryList()
|
||||
\brief Creates a BEntryList object.
|
||||
|
||||
Does nothing at this time.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn BEntryList::~BEntryList()
|
||||
\brief Frees all resources associated with the BEntryList object.
|
||||
|
||||
Does nothing at this time.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn status_t BEntryList::GetNextEntry(BEntry *entry, bool traverse)
|
||||
\brief Returns the BEntryList's next entry as a BEntry.
|
||||
|
||||
Places the next entry in the list in \a entry, traversing symlinks if
|
||||
\a traverse is \c true.
|
||||
|
||||
\param entry a pointer to a BEntry to be initialized with the found entry.
|
||||
\param traverse specifies whether to follow it, if the found entry
|
||||
is a symbolic link.
|
||||
|
||||
\note The iterator used by this method is the same one used by
|
||||
GetNextRef(), GetNextDirents(), Rewind() and CountEntries().
|
||||
|
||||
\retval B_OK if successful
|
||||
\retval B_ENTRY_NOT_FOUND when at the end of the list
|
||||
\retval B_ERROR or another error code (depending on the implementation
|
||||
of the derived class).
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn status_t BEntryList::GetNextRef(entry_ref *ref)
|
||||
\brief Returns the BEntryList's next entry as an entry_ref.
|
||||
|
||||
Places an entry_ref to the next entry in the list into \a ref.
|
||||
|
||||
\param ref a pointer to an entry_ref to be filled in with the data of the
|
||||
found entry.
|
||||
|
||||
\note The iterator used by this method is the same one used by
|
||||
GetNextEntry(), GetNextDirents(), Rewind() and CountEntries().
|
||||
|
||||
\retval B_OK if successful
|
||||
\retval B_ENTRY_NOT_FOUND when at the end of the list
|
||||
\retval B_ERROR or another error code (depending on the implementation
|
||||
of the derived class).
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn int32 BEntryList::GetNextDirents(struct dirent *buf, size_t length,
|
||||
int32 count)
|
||||
\brief Returns the BEntryList's next entries as dirent structures.
|
||||
|
||||
Reads a number of entries into the array of dirent structures pointed
|
||||
to by \a buf. Reads as many but no more than \a count entries, as many
|
||||
entries as remain, or as many entries as will fit into the array at
|
||||
\a buf with given length \a length (in bytes), whichever is smallest.
|
||||
|
||||
\param buf A pointer to a buffer to be filled with dirent structures of
|
||||
the found entries.
|
||||
\param length The length of the \a buf array.
|
||||
\param count the maximum number of entries to be read.
|
||||
|
||||
\note The iterator used by this method is the same one used by
|
||||
GetNextEntry(), GetNextRef(), Rewind() and CountEntries().
|
||||
|
||||
\returns
|
||||
- The number of dirent structures stored in the buffer or 0 when
|
||||
there are no more entries to be read.
|
||||
- an error code (depending on the implementation of the derived class)
|
||||
if an error occurred.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn status_t BEntryList::Rewind()
|
||||
\brief Rewinds the list pointer to the beginning of the list.
|
||||
|
||||
\retval B_OK if successful
|
||||
\retval B_ERROR or another error code (depending on the implementation
|
||||
of the derived class).
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn int32 BEntryList::CountEntries()
|
||||
\brief Returns the number of entries in the list
|
||||
|
||||
\retval B_OK if successful
|
||||
\retval B_ENTRY_NOT_FOUND when at the end of the list
|
||||
\retval B_ERROR or another error code (depending on the implementation
|
||||
of the derived class).
|
||||
*/
|
||||
@@ -13,8 +13,8 @@
|
||||
/*!
|
||||
\file FindDirectory.h
|
||||
\ingroup storage
|
||||
\brief Provides the find_dirctory function.
|
||||
|
||||
\brief Provides the find_directory function.
|
||||
|
||||
Haiku provides a set of directories for applications to use. These can be
|
||||
accessed using the find_directory function. It is very important to use the
|
||||
function at runtime and not hardcode the path, as it may change in future
|
||||
@@ -26,6 +26,7 @@
|
||||
in ported applications.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\enum directory_which
|
||||
\brief Directory constants to use with find_directory.
|
||||
@@ -45,6 +46,7 @@
|
||||
settings.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\var directory_which B_DESKTOP_DIRECTORY
|
||||
The desktop for a given volume.
|
||||
@@ -162,6 +164,7 @@
|
||||
\var directory_which B_UTILITIES_DIRECTORY
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn status_t find_directory(directory_which which, dev_t volume, bool createIt, char* pathString, int32 length)
|
||||
\brief C interface to find_directory
|
||||
@@ -171,6 +174,7 @@
|
||||
set.
|
||||
*/
|
||||
|
||||
|
||||
/*!
|
||||
\fn status_t find_directory(directory_which which, BPath* path, bool createIt = false, BVolume* volume = NULL)
|
||||
\brief C++ interface to find_directory
|
||||
|
||||
Reference in New Issue
Block a user