BAppFileInfo: Coding style update
Also remove doxygen comments.
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2006, Haiku, Inc. All Rights Reserved.
|
* Copyright 2002-2014, Haiku, Inc. All Rights Reserved.
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
#ifndef _APP_FILE_INFO_H
|
#ifndef _APP_FILE_INFO_H
|
||||||
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include <NodeInfo.h>
|
#include <NodeInfo.h>
|
||||||
|
|
||||||
|
|
||||||
class BBitmap;
|
class BBitmap;
|
||||||
class BFile;
|
class BFile;
|
||||||
class BMessage;
|
class BMessage;
|
||||||
@@ -44,83 +45,83 @@ enum version_kind {
|
|||||||
B_SYSTEM_VERSION_KIND
|
B_SYSTEM_VERSION_KIND
|
||||||
};
|
};
|
||||||
|
|
||||||
/*! \brief Executable meta information handling.
|
|
||||||
The BAppFileInfo class provides access to meta data that can be associated
|
|
||||||
with executables, libraries and add-ons.
|
|
||||||
|
|
||||||
\author <a href='[email protected]'>Ingo Weinhold</a>
|
|
||||||
\version 0.0.0
|
|
||||||
*/
|
|
||||||
class BAppFileInfo: public BNodeInfo {
|
class BAppFileInfo: public BNodeInfo {
|
||||||
public:
|
public:
|
||||||
BAppFileInfo();
|
BAppFileInfo();
|
||||||
BAppFileInfo(BFile *file);
|
BAppFileInfo(BFile* file);
|
||||||
virtual ~BAppFileInfo();
|
virtual ~BAppFileInfo();
|
||||||
|
|
||||||
status_t SetTo(BFile *file);
|
status_t SetTo(BFile* file);
|
||||||
|
|
||||||
virtual status_t GetType(char *type) const;
|
virtual status_t GetType(char* type) const;
|
||||||
virtual status_t SetType(const char *type);
|
virtual status_t SetType(const char* type);
|
||||||
|
|
||||||
status_t GetSignature(char *signature) const;
|
status_t GetSignature(char* signature) const;
|
||||||
status_t SetSignature(const char *signature);
|
status_t SetSignature(const char* signature);
|
||||||
|
|
||||||
status_t GetCatalogEntry(char *catalogEntry) const;
|
status_t GetCatalogEntry(char* catalogEntry) const;
|
||||||
status_t SetCatalogEntry(const char *catalogEntry);
|
status_t SetCatalogEntry(const char* catalogEntry);
|
||||||
|
|
||||||
status_t GetAppFlags(uint32 *flags) const;
|
status_t GetAppFlags(uint32* flags) const;
|
||||||
status_t SetAppFlags(uint32 flags);
|
status_t SetAppFlags(uint32 flags);
|
||||||
status_t RemoveAppFlags();
|
status_t RemoveAppFlags();
|
||||||
|
|
||||||
status_t GetSupportedTypes(BMessage *types) const;
|
status_t GetSupportedTypes(BMessage* types) const;
|
||||||
status_t SetSupportedTypes(const BMessage *types, bool syncAll);
|
status_t SetSupportedTypes(const BMessage* types,
|
||||||
status_t SetSupportedTypes(const BMessage *types);
|
bool syncAll);
|
||||||
bool IsSupportedType(const char *type) const;
|
status_t SetSupportedTypes(const BMessage* types);
|
||||||
bool Supports(BMimeType *type) const;
|
bool IsSupportedType(const char* type) const;
|
||||||
|
bool Supports(BMimeType* type) const;
|
||||||
|
|
||||||
virtual status_t GetIcon(BBitmap *icon, icon_size which) const;
|
virtual status_t GetIcon(BBitmap* icon, icon_size which) const;
|
||||||
virtual status_t SetIcon(const BBitmap *icon, icon_size which);
|
virtual status_t SetIcon(const BBitmap* icon, icon_size which);
|
||||||
|
|
||||||
status_t GetIcon(uint8** data, size_t* size) const;
|
status_t GetIcon(uint8** data, size_t* size) const;
|
||||||
status_t SetIcon(const uint8* data, size_t size);
|
status_t SetIcon(const uint8* data, size_t size);
|
||||||
|
|
||||||
status_t GetVersionInfo(version_info *info, version_kind kind) const;
|
status_t GetVersionInfo(version_info* info,
|
||||||
status_t SetVersionInfo(const version_info *info, version_kind kind);
|
version_kind kind) const;
|
||||||
|
status_t SetVersionInfo(const version_info* info,
|
||||||
|
version_kind kind);
|
||||||
|
|
||||||
status_t GetIconForType(const char *type, BBitmap *icon,
|
status_t GetIconForType(const char* type, BBitmap* icon,
|
||||||
icon_size which) const;
|
icon_size which) const;
|
||||||
status_t GetIconForType(const char *type, uint8** data,
|
status_t GetIconForType(const char* type, uint8** data,
|
||||||
size_t* size) const;
|
size_t* size) const;
|
||||||
status_t SetIconForType(const char *type, const BBitmap *icon,
|
status_t SetIconForType(const char* type,
|
||||||
icon_size which);
|
const BBitmap* icon, icon_size which);
|
||||||
status_t SetIconForType(const char *type, const uint8* data,
|
status_t SetIconForType(const char* type,
|
||||||
size_t size);
|
const uint8* data, size_t size);
|
||||||
|
|
||||||
void SetInfoLocation(info_location location);
|
void SetInfoLocation(info_location location);
|
||||||
bool IsUsingAttributes() const;
|
bool IsUsingAttributes() const;
|
||||||
bool IsUsingResources() const;
|
bool IsUsingResources() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
virtual void _ReservedAppFileInfo1();
|
virtual void _ReservedAppFileInfo1();
|
||||||
virtual void _ReservedAppFileInfo2();
|
virtual void _ReservedAppFileInfo2();
|
||||||
virtual void _ReservedAppFileInfo3();
|
virtual void _ReservedAppFileInfo3();
|
||||||
|
|
||||||
BAppFileInfo &operator=(const BAppFileInfo &);
|
BAppFileInfo& operator=(const BAppFileInfo&);
|
||||||
BAppFileInfo(const BAppFileInfo &);
|
BAppFileInfo(const BAppFileInfo&);
|
||||||
|
|
||||||
status_t GetMetaMime(BMimeType *meta) const;
|
status_t GetMetaMime(BMimeType* meta) const;
|
||||||
|
|
||||||
status_t _ReadData(const char *name, int32 id, type_code type,
|
status_t _ReadData(const char* name, int32 id,
|
||||||
void *buffer, size_t bufferSize,
|
type_code type, void* buffer,
|
||||||
size_t &bytesRead, void **allocatedBuffer = NULL) const;
|
size_t bufferSize, size_t& bytesRead,
|
||||||
status_t _WriteData(const char *name, int32 id, type_code type,
|
void** allocatedBuffer = NULL) const;
|
||||||
const void *buffer, size_t bufferSize,
|
status_t _WriteData(const char* name, int32 id,
|
||||||
bool findID = false);
|
type_code type, const void* buffer,
|
||||||
status_t _RemoveData(const char *name, type_code type);
|
size_t bufferSize, bool findID = false);
|
||||||
|
status_t _RemoveData(const char* name, type_code type);
|
||||||
|
|
||||||
BResources *fResources;
|
private:
|
||||||
info_location fWhere;
|
BResources* fResources;
|
||||||
uint32 _reserved[2];
|
info_location fWhere;
|
||||||
|
uint32 _reserved[2];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#endif // _APP_FILE_INFO_H
|
#endif // _APP_FILE_INFO_H
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user