GetPreferredApp
status_t GetPreferredApp(char *signature,
status_t GetPreferredApp(char* signature, app_verb verb = B_OPEN) const;
status_t GetPreferredApp(char* signature,
status_t GetPreferredApp(const char* type,
if (type->GetPreferredApp(appSignature) == B_OK)
mimeType.GetPreferredApp(editorSig);
if (GetPreferredApp(buffer, B_OPEN) == B_OK)
if (GetPreferredApp(signature) == B_OK) {
if (!isDocument || appFileInfo.GetPreferredApp(preferredApp) != B_OK) {
if (nodeInfo.GetPreferredApp(preferredApp) == B_OK
superType.GetPreferredApp(secondarySignature);
if (type.GetPreferredApp(primarySignature) != B_OK) {
err = default_database_location()->GetPreferredApp(Type(), signature,
if (GetPreferredApp(signature) == B_OK) {
if (!success && nodeType.GetPreferredApp(signature) == B_OK) {
if (superType.GetPreferredApp(signature) == B_OK) {
mime.GetPreferredApp(appSignature.LockBuffer(B_MIME_TYPE_LENGTH));
status_t result = mime.GetPreferredApp(preferredAppSig);
if (mime.GetPreferredApp(preferredAppSig) != B_OK)
if (mimeType.GetPreferredApp(buffer) == B_OK
err = nodeInfo.GetPreferredApp(preferredApp);
err = mimeType.GetPreferredApp(preferredApp);
if (info.GetPreferredApp(type) == B_OK) {
if (!IsVolume() && !IsSymLink() && info.GetPreferredApp(type) == B_OK)
fHaveCommonPreferredApp = fIterator->GetPreferredApp(&fPreferredRef);
fHaveCommonPreferredApp = fIterator->GetPreferredApp(&fPreferredRef);
bool GetPreferredApp(entry_ref* ref) const;
if (nodeInfo.GetPreferredApp(preferredApp) == B_OK
|| mime.GetPreferredApp(tmp) != B_OK))) {
nodeInfo.GetPreferredApp(prefSignature);
if (info.GetPreferredApp(preferredApp) != B_OK)
if (type.GetPreferredApp(preferred) == B_OK) {
if (superType.GetPreferredApp(preferred) == B_OK) {
if (type.GetPreferredApp(preferred) == B_OK) {
if (superType.GetPreferredApp(preferred) == B_OK) {
return type.GetPreferredApp(preferredApp) == B_OK
if (type->GetPreferredApp(preferred) != B_OK)
if (nodeInfo.GetPreferredApp(preferred) != B_OK)
mimeType.GetPreferredApp(preferred);
= (textType.GetPreferredApp(preferredApp) == B_OK);
= (textType.GetPreferredApp(preferredApp) == B_OK);
CPPUNIT_ASSERT(mime.GetPreferredApp(str) != B_OK); // R5 == B_BAD_VALUE
CHK(mime.GetPreferredApp(str) != B_OK); // R5 == B_ENTRY_NOT_FOUND
CHK(mime.GetPreferredApp(str) == B_OK);
CHK(mime.GetPreferredApp(NULL) != B_OK); // R5 == B_ENTRY_NOT_FOUND
CHK(mime.GetPreferredApp(str) == B_ENTRY_NOT_FOUND);
CHK(mime.GetPreferredApp(NULL) != B_OK); // Haiku == B_BAD_VALUE
CHK(mime.GetPreferredApp(str) == B_OK);
CHK(mime.GetPreferredApp(str) != B_OK); // Haiku == B_ENTRY_NOT_FOUND
CHK(mime.GetPreferredApp(NULL) != B_OK); // R5 == B_BAD_ADDRESS
CHK(mime.GetPreferredApp(NULL) != B_OK); // R5 == B_BAD_ADDRESS
CHK(mime.GetPreferredApp(str) == B_OK);
CHK(mime.GetPreferredApp(str) != B_OK);
CHK(mime.GetPreferredApp(str) == B_ENTRY_NOT_FOUND); // R5 == B_ENTRY_NOT_FOUND
CHK(mime.GetPreferredApp(str) == B_OK);
CHK(mime.GetPreferredApp(str) == B_OK);
CHK(mime.GetPreferredApp(str) == B_ENTRY_NOT_FOUND);
CHK(mime.GetPreferredApp(str) == B_OK);
CHK(type.GetPreferredApp(preferredApp) == B_OK);
CHK(equals(nodeInfo.GetPreferredApp(NULL), B_BAD_ADDRESS,
CHK(nodeInfo.GetPreferredApp(signature) == B_NO_INIT);
CHK(nodeInfo.GetPreferredApp(signature) == B_ENTRY_NOT_FOUND);
CHK(nodeInfo.GetPreferredApp(signature) == B_OK);
CHK(nodeInfo.GetPreferredApp(signature) == B_OK);
CHK(nodeInfo.GetPreferredApp(signature) == B_ENTRY_NOT_FOUND);
CHK(nodeInfo.GetPreferredApp(signature) == B_OK);
CHK(nodeInfo.GetPreferredApp(signature) == B_ENTRY_NOT_FOUND);
if (mimeType.GetPreferredApp(preferredApp) == B_OK)