Adjusted the SetSupportedTypes() doxygen comments to reflect knowledge gained from tests -- I hope, I understand the syncAll flag now.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@810 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -208,15 +208,23 @@ BAppFileInfo::GetSupportedTypes(BMessage *types) const
|
|||||||
The supported MIME types must be stored in a field "types" of type
|
The supported MIME types must be stored in a field "types" of type
|
||||||
\c B_STRING_TYPE in \a types.
|
\c B_STRING_TYPE in \a types.
|
||||||
|
|
||||||
|
The method informs the registrar about this news.
|
||||||
|
For each supported type the result of BMimeType::GetSupportingApps() will
|
||||||
|
afterwards include the signature of this application. That is, the
|
||||||
|
application file needs to have a signature set.
|
||||||
|
|
||||||
|
\a syncAll specifies whether the not longer supported types shall be
|
||||||
|
updated as well, i.e. whether this application shall be remove from the
|
||||||
|
lists of supporting applications.
|
||||||
|
|
||||||
\param types The supported types to be assigned to the file.
|
\param types The supported types to be assigned to the file.
|
||||||
May be \c NULL.
|
May be \c NULL.
|
||||||
\param syncAll ???
|
\param syncAll \c true to also synchronize the not longer supported
|
||||||
|
types, \c false otherwise.
|
||||||
\return
|
\return
|
||||||
- \c B_OK: Everything went fine.
|
- \c B_OK: Everything went fine.
|
||||||
- \c B_NO_INIT: The object is not properly initialized.
|
- \c B_NO_INIT: The object is not properly initialized.
|
||||||
- other error codes
|
- other error codes
|
||||||
|
|
||||||
\todo What does \a syncAll mean?
|
|
||||||
*/
|
*/
|
||||||
status_t
|
status_t
|
||||||
BAppFileInfo::SetSupportedTypes(const BMessage *types, bool syncAll)
|
BAppFileInfo::SetSupportedTypes(const BMessage *types, bool syncAll)
|
||||||
@@ -227,10 +235,8 @@ BAppFileInfo::SetSupportedTypes(const BMessage *types, bool syncAll)
|
|||||||
// SetSupportedTypes
|
// SetSupportedTypes
|
||||||
/*! \brief Sets the MIME types supported by the application.
|
/*! \brief Sets the MIME types supported by the application.
|
||||||
|
|
||||||
If \a types is \c NULL the application's supported types are unset.
|
This method is a short-hand for SetSupportedTypes(types, true).
|
||||||
|
\see SetSupportedType(const BMessage*, bool) for detailed information.
|
||||||
The supported MIME types must be stored in a field "types" of type
|
|
||||||
\c B_STRING_TYPE in \a types.
|
|
||||||
|
|
||||||
\param types The supported types to be assigned to the file.
|
\param types The supported types to be assigned to the file.
|
||||||
May be \c NULL.
|
May be \c NULL.
|
||||||
|
|||||||
Reference in New Issue
Block a user