void K3b::Iso9660::debug() const { if( isOpen() ) { qDebug() << "System Id: " << primaryDescriptor().systemId; qDebug() << "Volume Id: " << primaryDescriptor().volumeId; qDebug() << "Volume Set Id: " << primaryDescriptor().volumeSetId; qDebug() << "Preparer Id: " << primaryDescriptor().preparerId; qDebug() << "Publisher Id: " << primaryDescriptor().publisherId; qDebug() << "Application Id: " << primaryDescriptor().applicationId; qDebug() << "Volume Set Size: " << primaryDescriptor().volumeSetSize; qDebug() << "Volume Set Number: " << primaryDescriptor().volumeSetNumber; if( firstIsoDirEntry() ) { qDebug() << "First ISO Dir entry:"; qDebug() << "----------------------------------------------"; debugEntry( firstIsoDirEntry(), 0 ); qDebug() << "----------------------------------------------"; } if( firstRRDirEntry() ) { qDebug() << "First RR Dir entry:"; qDebug() << "----------------------------------------------"; debugEntry( firstRRDirEntry(), 0 ); qDebug() << "----------------------------------------------"; } if( firstJolietDirEntry() ) { qDebug() << "First Joliet Dir entry:"; qDebug() << "----------------------------------------------"; debugEntry( firstJolietDirEntry(), 0 ); qDebug() << "----------------------------------------------"; } } }
void ProfileVerifierPassT<FType, BType>::CheckValue(bool Error, const char *Message, DetailedBlockInfo *DI) { if (Error) { DEBUG(debugEntry(DI)); dbgs() << "Block " << DI->BB->getNameStr() << " in Function " << DI->BB->getParent()->getNameStr() << ": "; ASSERTMESSAGE(Message); } return; }
void K3b::Iso9660::debugEntry( const K3b::Iso9660Entry* entry, int depth ) const { if( !entry ) { qDebug() << "(K3b::Iso9660::debugEntry) null entry."; return; } QString spacer; spacer.fill( ' ', depth*3 ); qDebug() << spacer << "- " << entry->name() << " (" << entry->isoName() << ")"; if( entry->isDirectory() ) { const K3b::Iso9660Directory* dir = dynamic_cast<const K3b::Iso9660Directory*>(entry); const QStringList entries = dir->entries(); for( QStringList::const_iterator it = entries.constBegin(); it != entries.constEnd(); ++it ) { debugEntry( dir->entry( *it ), depth+1 ); } } }
static const BString* SetDefaultAppForOneType(const BString* element, void* castToEntryRef) { const entry_ref* appRef = (const entry_ref*)castToEntryRef; // set entry as default handler for one mime string BMimeType mime(element->String()); if (!mime.IsInstalled()) return 0; // first set it's app signature as the preferred type BFile appFile(appRef, O_RDONLY); if (appFile.InitCheck() != B_OK) return 0; char appSignature[B_MIME_TYPE_LENGTH]; if (GetAppSignatureFromAttr(&appFile, appSignature) != B_OK) return 0; if (mime.SetPreferredApp(appSignature) != B_OK) return 0; // set the app hint on the metamime for this signature mime.SetTo(appSignature); #if xDEBUG status_t result = #endif mime.SetAppHint(appRef); #if xDEBUG BEntry debugEntry(appRef); BPath debugPath; debugEntry.GetPath(&debugPath); PRINT(("setting %s, sig %s as default app for %s, result %s\n", debugPath.Path(), appSignature, element->String(), strerror(result))); #endif return 0; }