diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2008-12-10 07:17:44 +0000 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-09-30 07:09:08 +0000 |
commit | 59c011d87e67a2b7a44bf70576c7fa10e85698bc (patch) | |
tree | 3629f3d0ac28f172c0416159dff39ac83f22928c /Cydia.mm | |
parent | 092934d18a7bb1b3e1d768657293e99f432b5d0a (diff) |
Honest-to-goodness Storage data.
Diffstat (limited to 'Cydia.mm')
-rw-r--r-- | Cydia.mm | 30 |
1 files changed, 29 insertions, 1 deletions
@@ -79,6 +79,8 @@ #include <sys/types.h> #include <sys/stat.h> #include <sys/sysctl.h> +#include <sys/param.h> +#include <sys/mount.h> #include <notify.h> #include <dlfcn.h> @@ -264,7 +266,7 @@ extern NSString * const kCAFilterNearest; #define ForSaurik (1 && !ForRelease) #define IgnoreInstall (0 && !ForRelease) #define RecycleWebViews 0 -#define AlwaysReload (0 && !ForRelease) +#define AlwaysReload (1 && !ForRelease) /* Radix Sort {{{ */ @interface NSMutableArray (Radix) @@ -4753,6 +4755,30 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { @end /* }}} */ +/* Storage View {{{ */ +@interface StorageView : BrowserView { +} + +@end + +@implementation StorageView + +- (NSString *) title { + return @"Storage"; +} + +#if !AlwaysReload +- (id) _rightButtonTitle { + return nil; +} +#endif + +- (bool) _loading { + return false; +} + +@end +/* }}} */ /* Manage View {{{ */ @interface ManageView : BrowserView { } @@ -6732,6 +6758,8 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { if ([href isEqualToString:@"cydia://add-source"]) return [[[AddSourceView alloc] initWithBook:book_ database:database_] autorelease]; + else if ([href isEqualToString:@"cydia://storage"]) + return [self _pageForURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"storage" ofType:@"html"]] withClass:[StorageView class]]; else if ([href isEqualToString:@"cydia://sources"]) return [[[SourceTable alloc] initWithBook:book_ database:database_] autorelease]; else if ([href isEqualToString:@"cydia://packages"]) |