#import <SpringBoard/SBDismissOnlyAlertItem.h>
#import <SpringBoard/SBStatusBarController.h>
+#include "SpringBoardAccess.h"
+
extern "C" void CoreSurfaceBufferFlushProcessorCaches(CoreSurfaceBufferRef buffer);
static size_t width_;
+ (void) removeStatusBarItem {
AshikaseSetEnabled(false, false);
- if ($SBStatusBarController != nil)
+ if (SBA_available())
+ SBA_removeStatusBarImage(const_cast<char *>("Veency"));
+ else if ($SBStatusBarController != nil)
[[$SBStatusBarController sharedStatusBarController] removeStatusBarItem:@"Veency"];
- else
- [[UIApplication sharedApplication] removeStatusBarImageNamed:@"Veency"];
+ else if (UIApplication *app = [UIApplication sharedApplication])
+ [app removeStatusBarImageNamed:@"Veency"];
}
+ (void) registerClient {
++clients_;
AshikaseSetEnabled(true, false);
- if ($SBStatusBarController != nil)
+ if (SBA_available())
+ SBA_addStatusBarImage(const_cast<char *>("Veency"));
+ else if ($SBStatusBarController != nil)
[[$SBStatusBarController sharedStatusBarController] addStatusBarItem:@"Veency"];
- else
- [[UIApplication sharedApplication] addStatusBarImageNamed:@"Veency"];
+ else if (UIApplication *app = [UIApplication sharedApplication])
+ [app addStatusBarImageNamed:@"Veency"];
}
+ (void) performSetup:(NSThread *)thread {
Version: 0.9.3379
Description: a VNC /server/ for the iPhone
Name: Veency
-Depends: mobilesubstrate (>= 0.9.2966-1), libvncserver, com.saurik.iphone.ske, preferenceloader, jp.ashikase.mousesupport | firmware (<< 3.0), libstatusbar | firmware (<< 4.0)
+Depends: mobilesubstrate (>= 0.9.2966-1), libvncserver, com.saurik.iphone.ske, preferenceloader, jp.ashikase.mousesupport | firmware (<< 3.0), libstatusbar | firmware (<< 4.0), firmware (<< 6.0) | ch.ringwald.springboardaccess
Author: Jay Freeman (saurik) <saurik@saurik.com>
Depiction: http://cydia.saurik.com/info/veency/
Tag: purpose::daemon, role::enduser
id := vncs
flags := -lvncserver -framework IOMobileFramebuffer -framework CoreSurface -framework IOKit -framework GraphicsServices -I/apl/inc/iPhoneOS-2.0 -framework QuartzCore -weak_reference_mismatches weak -framework UIKit -framework GraphicsServices
flags += -fvisibility=hidden
+flags += SpringBoardAccess.c
base := ../tweaks
include ../tweaks/tweak.mk