Searched refs:mimeType (Results 1 - 25 of 67) sorted by relevance

123

/haiku-fatelf/src/apps/text_search/
H A DFileIterator.cpp40 BMimeType mimeType;
47 if (BMimeType::GuessMimeType(path.Path(), &mimeType) != B_OK)
50 nodeInfo.SetType(mimeType.Type());
52 mimeType.SetTo(mimeTypeString);
55 if (mimeType.GetSupertype(&superType) == B_OK) {
/haiku-fatelf/src/tests/kits/storage/testapps/
H A Ddump_mime_types.cpp34 BMimeType mimeType; local
35 error = mimeType.SetTo(type);
43 if (mimeType.GetPreferredApp(preferredApp) == B_OK)
48 if (mimeType.GetShortDescription(shortDescription) == B_OK)
53 if (mimeType.GetLongDescription(longDescription) == B_OK)
58 if (mimeType.GetFileExtensions(&extensions) == B_OK) {
73 if (mimeType.GetSupportingApps(&supportingApps) == B_OK) {
88 if (mimeType.GetAttrInfo(&attrInfo) == B_OK) {
/haiku-fatelf/headers/build/os/storage/
H A DMimeType.h88 BMimeType(const char *mimeType);
91 status_t SetTo(const char *mimeType);
107 static bool IsValid(const char *mimeType);
110 status_t SetType(const char *mimeType);
118 BMimeType(const char *mimeType, const char *mimePath);
/haiku-fatelf/src/build/libbe/storage/
H A DMimeType.cpp50 \param mimeType The MIME string.
52 BMimeType::BMimeType(const char *mimeType) argument
56 SetTo(mimeType);
83 \param mimeType The MIME string.
90 BMimeType::SetTo(const char *mimeType) argument
92 if (!mimeType || !BMimeType::IsValid(mimeType)) {
96 fType = new(std::nothrow) char[strlen(mimeType)+1];
98 strcpy(fType, mimeType);
349 BMimeType::SetType(const char *mimeType) argument
[all...]
/haiku-fatelf/src/kits/tracker/
H A DMimeTypeList.cpp42 ShortMimeInfo::ShortMimeInfo(const BMimeType &mimeType) argument
45 fPrivateName = mimeType.Type();
50 if (mimeType.GetPreferredApp(buffer) == B_OK
55 if (mimeType.GetShortDescription(buffer) != B_OK || buffer[0] == 0)
H A DTemplatesMenu.cpp149 char mimeType[B_MIME_TYPE_LENGTH]; local
150 nodeInfo.GetType(mimeType);
152 BMimeType mime(mimeType);
/haiku-fatelf/headers/os/storage/
H A DMimeType.h76 BMimeType(const char *mimeType);
79 status_t SetTo(const char *mimeType);
120 static bool IsValid(const char *mimeType);
151 status_t SetType(const char *mimeType);
154 BMimeType(const char* mimeType, const char* mimePath);
H A DFilePanel.h26 struct stat_beos* stat, const char* mimeType) = 0;
/haiku-fatelf/src/preferences/filetypes/
H A DMimeTypeListView.cpp52 BMimeType mimeType(type);
53 _SetTo(mimeType);
93 BMimeType mimeType(fType.String());
94 status_t status = icon_for_type(mimeType, bitmap, B_MINI_ICON);
292 BMimeType mimeType(type);
294 bool isApp = mimetype_is_application_signature(mimeType);
298 MimeTypeItem* typeItem = new MimeTypeItem(mimeType, fShowIcons,
395 BMimeType mimeType(type);
396 bool isApp = mimetype_is_application_signature(mimeType);
397 if (fApplicationMode ^ isApp || !mimeType
[all...]
H A DPreferredAppMenu.cpp235 BMimeType mimeType(type);
236 mimeType.GetPreferredApp(preferred);
266 BMimeType mimeType(forType);
270 if (mimeType.GetSupportingApps(&applications) == B_OK
276 if (!found && mimeType.GetWildcardApps(&applications) == B_OK
H A DNewFileTypeWindow.cpp171 BMimeType mimeType(type.String());
172 if (mimeType.IsInstalled()) {
177 status_t status = mimeType.Install();
/haiku-fatelf/headers/build/os/app/
H A DRoster.h98 status_t FindApp(const char *mimeType, entry_ref *app) const;
114 status_t Launch(const char *mimeType, BMessage *initialMessage = 0,
116 status_t Launch(const char *mimeType, BList *messageList,
118 status_t Launch(const char *mimeType, int argc, char **args,
165 status_t xLaunchAppPrivate(const char *mimeType, const entry_ref *ref,
178 status_t translate_type(const char *mimeType, BMimeType *appMeta,
181 char *mimeType) const;
/haiku-fatelf/headers/os/app/
H A DRoster.h76 status_t FindApp(const char *mimeType, entry_ref *app) const;
91 status_t Launch(const char *mimeType, BMessage *initialMessage = 0,
93 status_t Launch(const char *mimeType, BList *messageList,
95 status_t Launch(const char *mimeType, int argc, char **args,
146 status_t _LaunchApp(const char *mimeType, const entry_ref *ref,
159 status_t _TranslateType(const char *mimeType, BMimeType *appMeta,
162 char *mimeType) const;
/haiku-fatelf/src/servers/print/
H A DSettings.h22 AppSettings(const char* mimeType, const char* printer = NULL);
69 AppSettings* FindAppSettings(const char* mimeType);
H A DSettings.cpp81 Settings::FindAppSettings(const char* mimeType) argument
84 if (strcmp(AppSettingsAt(i)->GetMimeType(), mimeType) == 0)
/haiku-fatelf/src/apps/processcontroller/
H A DIconMenuItem.cpp141 BMimeType mimeType(mime);
142 if (mimeType.GetIcon(fIcon, B_MINI_ICON) != B_OK)
/haiku-fatelf/src/kits/storage/
H A DAppFileInfo.cpp571 BMimeType mimeType; local
573 error = GetMetaMime(&mimeType);
613 if (error == B_OK && mimeType.IsInstalled())
614 error = mimeType.SetSupportedTypes(types, syncAll);
659 BMimeType mimeType; local
661 error = mimeType.SetTo(type);
670 || BMimeType(supportedType).Contains(&mimeType);
1211 BMimeType mimeType; local
1212 if (error == B_OK && GetMetaMime(&mimeType) == B_OK) {
1213 if (!mimeType
1273 BMimeType mimeType; local
[all...]
/haiku-fatelf/src/preferences/printers/
H A DJobListView.cpp179 BString mimeType; local
180 node.ReadAttrString(PSRV_SPOOL_ATTR_MIMETYPE, &mimeType);
183 if (fIcon == NULL && be_roster->FindApp(mimeType.String(), &ref) == B_OK) {
195 BMimeType type(mimeType.String());
/haiku-fatelf/src/servers/registrar/
H A DTextSnifferAddon.cpp12 BMimeType* mimeType);
125 file_ascmagic(const unsigned char *buf, size_t nbytes, BMimeType* mimeType) argument
327 mimeType->SetTo(subtypeMimeSpecific);
328 if (mimeType->IsInstalled())
332 mimeType->SetTo(subtypeMimeGeneric);
333 if (mimeType->IsInstalled())
337 mimeType->SetTo("text/plain");
/haiku-fatelf/src/kits/app/
H A DRoster.cpp872 \param mimeType The MIME type for which an application shall be found.
877 - \c B_BAD_VALUE: \c NULL \a mimeType or \a app.
889 BRoster::FindApp(const char* mimeType, entry_ref* app) const argument
891 if (mimeType == NULL || app == NULL)
894 return _ResolveApp(mimeType, NULL, app, NULL, NULL, NULL);
920 - \c B_BAD_VALUE: \c NULL \a mimeType or \a app.
1145 \param mimeType MIME type for which the application shall be launched.
1152 - \c B_BAD_VALUE: \c NULL \a mimeType
1168 BRoster::Launch(const char* mimeType, BMessage* initialMessage, argument
1171 if (mimeType
1211 Launch(const char* mimeType, BList* messageList, team_id* appTeam) const argument
1251 Launch(const char* mimeType, int argc, char** args, team_id* appTeam) const argument
2153 _LaunchApp(const char* mimeType, const entry_ref* ref, const BList* messageList, int argc, const char* const* args, team_id* _appTeam) const argument
2603 _TranslateType(const char* mimeType, BMimeType* appMeta, entry_ref* appRef, BFile* appFile) const argument
[all...]
/haiku-fatelf/headers/os/net/
H A DHttpForm.h63 const BString& mimeType);
117 const BString& mimeType);
/haiku-fatelf/src/add-ons/screen_savers/icons/
H A DIconsSaver.cpp71 BMimeType mimeType(type);
75 if (mimeType.GetIcon(&vectorData, &size) != B_OK || size == 0)
/haiku-fatelf/src/bin/
H A Dtranslate.cpp68 status_t GetMimeTypeFromCode(uint32 type, char *mimeType);
264 char mimeType[B_ATTR_NAME_LENGTH]; local
267 if (info.GetType(mimeType) != B_OK || !strcasecmp(mimeType, B_FILE_MIME_TYPE)) {
271 if (GetMimeTypeFromCode(fOutputFormat, mimeType) == B_OK)
272 info.SetType(mimeType);
455 Translator::GetMimeTypeFromCode(uint32 type, char *mimeType) argument
472 strcpy(mimeType, format[j].MIME);
/haiku-fatelf/src/apps/cortex/Persistence/
H A DXML.h172 const BMimeType mimeType; member in class:XML::DocumentType
/haiku-fatelf/src/apps/showimage/
H A DImageCache.h50 BString mimeType; member in struct:CacheEntry

Completed in 282 milliseconds

123