-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
2,049 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ DerivedData | |
.idea/ | ||
*.dmg | ||
qlZipInfo-* | ||
devel/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
README | ||
------ | ||
|
||
qlZipInfo v1.1.10 | ||
By Sriranga Veeraraghavan <[email protected]> | ||
qlZipInfo v1.1.11 | ||
|
||
Homepage: | ||
|
||
|
@@ -14,8 +13,8 @@ Overview: | |
tar.gz (.tgz), tar.bz2 (.tbz2/.tbz), tar.Z (.tZ), xar | ||
(.xar, .pkg), debian (.deb), Redhat Package Manager | ||
(.rpm), 7zip (.7z), xz, Microsoft cabinet (.cab), gzip | ||
(.gz), lha, and Binhex 4.0 (.hqx) archives and ISO9660 | ||
(.iso, .cdr, .toast) images. | ||
(.gz), lha, Binhex 4.0 (.hqx), and StuffIf (.sit) | ||
archives and ISO9660 (.iso, .cdr, .toast) images. | ||
|
||
qlZipInfo relies on libarchive (https://libarchive.org/). | ||
|
||
|
@@ -80,6 +79,7 @@ Known Issues: | |
|
||
History: | ||
|
||
v1.1.11 - add support for some Stuffit files | ||
v1.1.10 - update to libarchive v.3.6.1 and lzma headers from | ||
xz v.5.2.5 | ||
v1.1.9 - add support for (some?) CD/DVD images created by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,25 @@ | ||
/* | ||
GeneratePreviewForURL.h - constants for qlZipInfo | ||
History: | ||
v. 0.1.0 (07/22/2021) - initial release | ||
v. 0.2.0 (11/13/2021) - add binhex support | ||
Copyright (c) 2021 Sriranga R. Veeraraghavan <[email protected]> | ||
v. 0.3.0 (08/01/2022) - add stuffit support | ||
Copyright (c) 2015-2022 Sriranga R. Veeraraghavan <[email protected]> | ||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software") to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject | ||
to the following conditions: | ||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
|
@@ -112,6 +113,8 @@ static const NSString *gFilePkgIcon = @"📦"; | |
/* unknown file name */ | ||
|
||
static const char *gFileNameUnavilable = "[Unavailable]"; | ||
static const NSString *gFileNameUnavilableStr = | ||
@"[Unavailable]"; | ||
|
||
/* default font style - sans serif */ | ||
|
||
|
@@ -132,7 +135,9 @@ static const char *gMacFileTypeSIT5 = "SIT5"; | |
/* UTIs for files that may require special handling */ | ||
|
||
static const CFStringRef gUTIGZip = CFSTR("org.gnu.gnu-zip-archive"); | ||
static const CFStringRef gUITBinHex = CFSTR("com.apple.binhex-archive"); | ||
static const CFStringRef gUTIBinHex = CFSTR("com.apple.binhex-archive"); | ||
static const CFStringRef gUTISIT1 = CFSTR("com.stuffit.archive.sit"); | ||
static const CFStringRef gUTISIT2 = CFSTR("com.allume.stuffit-archive"); | ||
|
||
/* structs */ | ||
|
||
|
@@ -154,6 +159,11 @@ static OSStatus GeneratePreviewForHQX(void *thisInterface, | |
CFURLRef url, | ||
CFStringRef contentTypeUTI, | ||
CFDictionaryRef options); | ||
static OSStatus GeneratePreviewForSIT(void *thisInterface, | ||
QLPreviewRequestRef preview, | ||
CFURLRef url, | ||
CFStringRef contentTypeUTI, | ||
CFDictionaryRef options); | ||
void CancelPreviewGeneration(void *thisInterface, | ||
QLPreviewRequestRef preview); | ||
static off_t getGZExpandedFileSize(const char *zipFileNameStr); | ||
|
Oops, something went wrong.