Added GetSupportingApps() message field constants
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@924 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -23,6 +23,7 @@ namespace Mime {
|
|||||||
|
|
||||||
// Database directory
|
// Database directory
|
||||||
extern const std::string kDatabaseDir;
|
extern const std::string kDatabaseDir;
|
||||||
|
extern const std::string kApplicationDatabaseDir;
|
||||||
|
|
||||||
// Attribute Prefixes
|
// Attribute Prefixes
|
||||||
extern const char *kMiniIconAttrPrefix;
|
extern const char *kMiniIconAttrPrefix;
|
||||||
@@ -57,8 +58,11 @@ extern const int32 kSnifferRuleType;
|
|||||||
extern const int32 kSupportedTypesType;
|
extern const int32 kSupportedTypesType;
|
||||||
|
|
||||||
// Message fields
|
// Message fields
|
||||||
extern const char *kTypesField;
|
extern const char *kApplicationsField;
|
||||||
extern const char *kSupertypesField;
|
extern const char *kSupertypesField;
|
||||||
|
extern const char *kSupportingAppsSubCountField;
|
||||||
|
extern const char *kSupportingAppsSuperCountField;
|
||||||
|
extern const char *kTypesField;
|
||||||
|
|
||||||
std::string type_to_filename(const char *type);
|
std::string type_to_filename(const char *type);
|
||||||
|
|
||||||
|
|||||||
@@ -37,8 +37,9 @@ namespace BPrivate {
|
|||||||
namespace Storage {
|
namespace Storage {
|
||||||
namespace Mime {
|
namespace Mime {
|
||||||
|
|
||||||
//const char* MimeDatabase::kDefaultDatabaseDir = "/boot/home/config/settings/beos_mime";
|
//const std::string kDatabaseDir = "/boot/home/config/settings/beos_mime";
|
||||||
const std::string kDatabaseDir = "/boot/home/config/settings/obos_mime";
|
const std::string kDatabaseDir = "/boot/home/config/settings/obos_mime";
|
||||||
|
const std::string kApplicationDatabaseDir = kDatabaseDir + "/application";
|
||||||
|
|
||||||
#define ATTR_PREFIX "META:"
|
#define ATTR_PREFIX "META:"
|
||||||
#define MINI_ICON_ATTR_PREFIX ATTR_PREFIX "M:"
|
#define MINI_ICON_ATTR_PREFIX ATTR_PREFIX "M:"
|
||||||
@@ -76,9 +77,11 @@ const int32 kSnifferRuleType = B_STRING_TYPE;
|
|||||||
const int32 kSupportedTypesType = B_MESSAGE_TYPE;
|
const int32 kSupportedTypesType = B_MESSAGE_TYPE;
|
||||||
|
|
||||||
// Message fields
|
// Message fields
|
||||||
const char *kTypesField = "types";
|
const char *kApplicationsField = "applications";
|
||||||
const char *kSupertypesField = "super_types";
|
const char *kSupertypesField = "super_types";
|
||||||
|
const char *kSupportingAppsSubCountField = "be:sub";
|
||||||
|
const char *kSupportingAppsSuperCountField = "be:super";
|
||||||
|
const char *kTypesField = "types";
|
||||||
|
|
||||||
// type_to_filename
|
// type_to_filename
|
||||||
//! Converts the given MIME type to an absolute path in the MIME database.
|
//! Converts the given MIME type to an absolute path in the MIME database.
|
||||||
|
|||||||
Reference in New Issue
Block a user